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
path: root/tests
diff options
context:
space:
mode:
authordiosmosis <benaka@piwik.pro>2015-10-08 02:03:45 +0300
committerdiosmosis <benaka@piwik.pro>2015-10-08 19:54:11 +0300
commit99e84a563a610d2dfd0587e6d2d04e4cbaaf89b0 (patch)
tree3546428e9f3d108912c3254b375fcbade7a774fe /tests
parentecdf19cd57ee12b3549718979d6aaee2cf4ff9e8 (diff)
Re-add backwards compatibility for URLs using old UserSettings plugin + add test coverage so BC break will be detected in the future.
Diffstat (limited to 'tests')
-rw-r--r--tests/UI/specs/ImageGraph_spec.js2
-rw-r--r--tests/UI/specs/UIIntegration_spec.js6
2 files changed, 7 insertions, 1 deletions
diff --git a/tests/UI/specs/ImageGraph_spec.js b/tests/UI/specs/ImageGraph_spec.js
index 570ebabe5b..057f7306e0 100644
--- a/tests/UI/specs/ImageGraph_spec.js
+++ b/tests/UI/specs/ImageGraph_spec.js
@@ -23,7 +23,7 @@ describe("ImageGraph", function () {
it("should render horizontal bar graphs correctly", function (done) {
expect.screenshot('horizontal_bar').to.be.similar(.95).to.capture(function (page) {
- page.load(getImageGraphUrl('DevicesDetection', 'getBrowsers', 'horizontalBar', 'year', '2012-01-01'));
+ page.load(getImageGraphUrl('UserSettings', 'getBrowser', 'horizontalBar', 'year', '2012-01-01'));
}, done);
});
diff --git a/tests/UI/specs/UIIntegration_spec.js b/tests/UI/specs/UIIntegration_spec.js
index ab5a5ec6aa..ddb7bf6456 100644
--- a/tests/UI/specs/UIIntegration_spec.js
+++ b/tests/UI/specs/UIIntegration_spec.js
@@ -110,6 +110,12 @@ describe("UIIntegrationTest", function () { // TODO: Rename to Piwik?
}, done);
});
+ it('should redirect the old UserSettings index to visitors > software', function (done) {
+ expect.screenshot('usersettings_index').to.be.captureSelector('.pageWrap,.expandDataTableFooterDrawer', function (page) {
+ page.load("?" + urlBase + "#" + generalParams + "&module=UserSettings&action=index");
+ }, done);
+ });
+
it('should load the visitors > times page correctly', function (done) {
expect.screenshot("visitors_times").to.be.captureSelector('.pageWrap,.expandDataTableFooterDrawer', function (page) {
page.load("?" + urlBase + "#" + generalParams + "&module=VisitTime&action=index");