diff options
author | Stefan Giehl <stefan@matomo.org> | 2020-11-06 14:18:55 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-06 14:18:55 +0300 |
commit | d74e547487be83ee0d727ef20b70c318fca56a39 (patch) | |
tree | c5d9250ac0cf6afadeb16c9323b92232fab6262e /plugins/SegmentEditor/tests | |
parent | 88535c7a0bbc2ab2147988cd18b985c8b8df1580 (diff) |
Fix UnprocessedSegment UI tests (#16676)
Diffstat (limited to 'plugins/SegmentEditor/tests')
-rw-r--r-- | plugins/SegmentEditor/tests/UI/UnprocessedSegment_spec.js | 18 |
1 files changed, 8 insertions, 10 deletions
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 @@ -16,16 +16,6 @@ describe("UnprocessedSegmentTest", function () { var url = '?module=CoreHome&action=index&' + generalParams + '#?' + generalParams + '&category=General_Visitors&subcategory=General_Overview'; before(async function () { - await testEnvironment.callApi('SegmentEditor.add', { - name: '<script>alert("testsegment");</script>', - definition: segment, - idSite: 1, - autoArchive: 1, - enableAllUsers: 1, - }); - }); - - before(async function () { testEnvironment.configOverride.General = { browser_archiving_disabled_enforce: '1', enable_browser_archiving_triggering: '0', @@ -34,6 +24,14 @@ describe("UnprocessedSegmentTest", function () { enableBrowserTriggerArchiving: '0', }; testEnvironment.save(); + + await testEnvironment.callApi('SegmentEditor.add', { + name: '<script>alert("testsegment");</script>', + definition: segment, + idSite: 1, + autoArchive: 1, + enableAllUsers: 1, + }); }); after(async function () { |