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:
Diffstat (limited to 'tests/UI/specs/UIIntegration_spec.js')
-rw-r--r--tests/UI/specs/UIIntegration_spec.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/UI/specs/UIIntegration_spec.js b/tests/UI/specs/UIIntegration_spec.js
index 8aa3bc2ad0..fff2f3f7a3 100644
--- a/tests/UI/specs/UIIntegration_spec.js
+++ b/tests/UI/specs/UIIntegration_spec.js
@@ -817,4 +817,13 @@ describe("UIIntegrationTest", function () { // TODO: Rename to Piwik?
page.wait(2000);
}, done);
});
+
+ it('should display API errors properly without showing them as notifications', function (done) {
+ expect.screenshot("api_error").to.be.captureSelector('.pageWrap', function (page) {
+ var url = "?" + generalParams + "&module=CoreHome&action=index#?" + generalParams + "&category=%7B%7Bconstructor.constructor(%22_x(45)%22)()%7D%7D&subcategory=%7B%7Bconstructor.constructor(%22_x(48)%22)()%7D%7D&forceError=1";
+ var adminUrl = "?" + generalParams + "&module=CoreAdminHome&action=home";
+ page.load(url, 1000);
+ page.load(adminUrl, 1000);
+ }, done);
+ });
});