diff options
author | Stefan Giehl <stefan@matomo.org> | 2021-04-14 12:55:44 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-14 12:55:44 +0300 |
commit | ea561b54613897b26d04cd25aafda92b66843b4b (patch) | |
tree | 1e3f2ad689c66f2312991a84ab1a9264e96b9b42 /plugins/IntranetMeasurable | |
parent | 086874bb001f22381916bee51de87ec41452782e (diff) |
Ensure correct no access message is shown (#17445)
* Ensure correct no access message is shown
* Add tests for access error messages
* fix ui tests
Diffstat (limited to 'plugins/IntranetMeasurable')
-rw-r--r-- | plugins/IntranetMeasurable/tests/UI/IntranetMeasurable_spec.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/IntranetMeasurable/tests/UI/IntranetMeasurable_spec.js b/plugins/IntranetMeasurable/tests/UI/IntranetMeasurable_spec.js index 0eb3f8c247..17357ab2ee 100644 --- a/plugins/IntranetMeasurable/tests/UI/IntranetMeasurable_spec.js +++ b/plugins/IntranetMeasurable/tests/UI/IntranetMeasurable_spec.js @@ -18,6 +18,11 @@ describe("IntranetMeasurable", function () { testEnvironment.save(); }); + after(async function () { + // ensure the newly created site is removed afterwards, so other tests reusing the fixture won't change results + await testEnvironment.callApi('SitesManager.deleteSite', { idSite: 64 }); + }); + it("should show intranet selection", async function () { await page.goto(url); await (await page.jQuery('.SitesManager .addSite:first')).click(); |