Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Giehl <stefan@matomo.org>2021-04-14 12:55:44 +0300
committerGitHub <noreply@github.com>2021-04-14 12:55:44 +0300
commitea561b54613897b26d04cd25aafda92b66843b4b (patch)
tree1e3f2ad689c66f2312991a84ab1a9264e96b9b42 /plugins/IntranetMeasurable
parent086874bb001f22381916bee51de87ec41452782e (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.js5
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();