From d74e547487be83ee0d727ef20b70c318fca56a39 Mon Sep 17 00:00:00 2001 From: Stefan Giehl Date: Fri, 6 Nov 2020 12:18:55 +0100 Subject: Fix UnprocessedSegment UI tests (#16676) --- .../SegmentEditor/tests/UI/UnprocessedSegment_spec.js | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) (limited to 'plugins/SegmentEditor/tests') diff --git a/plugins/SegmentEditor/tests/UI/UnprocessedSegment_spec.js b/plugins/SegmentEditor/tests/UI/UnprocessedSegment_spec.js index 5125dfc376..f434389c0c 100644 --- a/plugins/SegmentEditor/tests/UI/UnprocessedSegment_spec.js +++ b/plugins/SegmentEditor/tests/UI/UnprocessedSegment_spec.js @@ -15,16 +15,6 @@ describe("UnprocessedSegmentTest", function () { var customSegment = 'languageCode==fr'; var url = '?module=CoreHome&action=index&' + generalParams + '#?' + generalParams + '&category=General_Visitors&subcategory=General_Overview'; - before(async function () { - await testEnvironment.callApi('SegmentEditor.add', { - name: '', - definition: segment, - idSite: 1, - autoArchive: 1, - enableAllUsers: 1, - }); - }); - before(async function () { testEnvironment.configOverride.General = { browser_archiving_disabled_enforce: '1', @@ -34,6 +24,14 @@ describe("UnprocessedSegmentTest", function () { enableBrowserTriggerArchiving: '0', }; testEnvironment.save(); + + await testEnvironment.callApi('SegmentEditor.add', { + name: '', + definition: segment, + idSite: 1, + autoArchive: 1, + enableAllUsers: 1, + }); }); after(async function () { -- cgit v1.2.3