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.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/UI/specs/UIIntegration_spec.js b/tests/UI/specs/UIIntegration_spec.js
index a1e43ead5c..a7d781ae69 100644
--- a/tests/UI/specs/UIIntegration_spec.js
+++ b/tests/UI/specs/UIIntegration_spec.js
@@ -399,9 +399,10 @@ describe("UIIntegrationTest", function () { // TODO: Rename to Piwik?
}, done);
});
- it('should not display API response in the content', function (done) {
- expect.screenshot('menu_apidisallowed').to.be.captureSelector('#content', function (page) {
- page.load("?" + urlBase + "#?" + generalParams + "&module=API&action=SitesManager.getImageTrackingCode");
+ it('should not display API response in the content and redirect to dashboard instead', function (done) {
+ expect.page().contains('#dashboardWidgetsArea', /*'menu_apidisallowed',*/ function (page) {
+ var url = "?" + urlBase + "#?" + generalParams + "&module=API&action=SitesManager.getImageTrackingCode";
+ page.load(url, 2000);
}, done);
});