Skip to content

Commit 14112c0

Browse files
committed
clear test data after each
1 parent 1b1c8bf commit 14112c0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

dev/tests/js/jasmine/tests/app/code/Magento/Theme/view/frontend/web/js/cookie-status.test.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
/**
32
* Copyright © Magento, Inc. All rights reserved.
43
* See COPYING.txt for license details.
@@ -16,9 +15,11 @@ define([
1615
navigator;
1716

1817
beforeEach(function () {
19-
$(document.body).append(htmlContainer);
2018
widget = new Cookie();
2119
navigator = window.navigator;
20+
$('.modal-popup').remove();
21+
$('#cookie-status').remove();
22+
$(document.body).append(htmlContainer);
2223
});
2324

2425
afterEach(function () {

0 commit comments

Comments
 (0)