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:
authorStefan Giehl <stefan@piwik.org>2017-10-20 01:46:56 +0300
committerMatthieu Aubry <mattab@users.noreply.github.com>2017-10-20 01:46:56 +0300
commit7921d02123b8f0e471da39f2295a71f6a36e3cba (patch)
tree4c0eea7d12fb92ce4a29bf316112e6606d96359c /tests
parent016f0b272a0f9e5944b6fefd85d99c1710f59675 (diff)
Ensure segment param is always considered for widget urls (#12177)
* Ensure segment param is always considered for widget urls * Adds ui test for segmented dashboard
Diffstat (limited to 'tests')
-rw-r--r--tests/UI/expected-screenshots/Dashboard_segmented.png3
-rw-r--r--tests/UI/specs/Dashboard_spec.js6
2 files changed, 9 insertions, 0 deletions
diff --git a/tests/UI/expected-screenshots/Dashboard_segmented.png b/tests/UI/expected-screenshots/Dashboard_segmented.png
new file mode 100644
index 0000000000..d50eae29f1
--- /dev/null
+++ b/tests/UI/expected-screenshots/Dashboard_segmented.png
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:7b988a7e008b8c51af57347cca6151733a0eb966a89c4ed363a46fac78977aa1
+size 28975
diff --git a/tests/UI/specs/Dashboard_spec.js b/tests/UI/specs/Dashboard_spec.js
index 1e2008c3a2..25d0f743f3 100644
--- a/tests/UI/specs/Dashboard_spec.js
+++ b/tests/UI/specs/Dashboard_spec.js
@@ -239,6 +239,12 @@ describe("Dashboard", function () {
}, done);
});
+ it("should load segmented dashboard", function (done) {
+ expect.screenshot("segmented").to.be.capture(function (page) {
+ page.load(url + '&segment=' + encodeURIComponent("browserCode==FF"), 5000);
+ }, done);
+ });
+
it("should load correctly with token_auth", function (done) {
testEnvironment.testUseMockAuth = 0;
testEnvironment.save();