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:
authorPeter Zhang <peter@innocraft.com>2022-06-09 03:58:24 +0300
committerGitHub <noreply@github.com>2022-06-09 03:58:24 +0300
commit9697bbb5a883bf50838023e7eb3970d32016c37c (patch)
tree333f75271dc5e7cf0045560b73abe2c5ebfb9110 /plugins/Dashboard
parent2c4bc9e22a851bc2bc277b448f9f5b78b11492c8 (diff)
[CSS] add scroll to live visits table (#19273)
* add scroll to live table add scroll to live table * add tests add tests * update tests update tests * update tests update tests * Update Dashboard_spec.js show full image * update tests update tests * add timeout and screenshots add timeout and screenshots * update scroll bar update scroll bar * update screenshot update screenshot * Rerun UI tests * Increase UI screenshot delay to fix random failure * update ui update ui Co-authored-by: sgiehl <stefan@matomo.org> Co-authored-by: Ben <ben.burgess@innocraft.com>
Diffstat (limited to 'plugins/Dashboard')
-rw-r--r--plugins/Dashboard/tests/UI/DashboardManager_spec.js8
-rw-r--r--plugins/Dashboard/tests/UI/Dashboard_spec.js2
-rw-r--r--plugins/Dashboard/tests/UI/expected-screenshots/DashboardManager_small_screen.png3
3 files changed, 13 insertions, 0 deletions
diff --git a/plugins/Dashboard/tests/UI/DashboardManager_spec.js b/plugins/Dashboard/tests/UI/DashboardManager_spec.js
index fe6e1d7b13..157c6bac0d 100644
--- a/plugins/Dashboard/tests/UI/DashboardManager_spec.js
+++ b/plugins/Dashboard/tests/UI/DashboardManager_spec.js
@@ -99,6 +99,14 @@ describe("DashboardManager", function () {
expect(await page.screenshot({ fullPage: true })).to.matchImage('create_new');
});
+
+ it("should load widgets on smaller screen", async function(){
+ await page.webpage.setViewport({ width: 815, height: 512 });
+ await page.waitForTimeout(500);
+ expect(await page.screenshot({ fullPage: true })).to.matchImage('small_screen');
+ });
+
+
it("should remove dashboard when remove dashboard process completed", async function() {
await page.click('.dashboard-manager .title');
await page.click('li[data-action="removeDashboard"]');
diff --git a/plugins/Dashboard/tests/UI/Dashboard_spec.js b/plugins/Dashboard/tests/UI/Dashboard_spec.js
index 2140504911..a4b27f95e0 100644
--- a/plugins/Dashboard/tests/UI/Dashboard_spec.js
+++ b/plugins/Dashboard/tests/UI/Dashboard_spec.js
@@ -299,6 +299,7 @@ describe("Dashboard", function () {
expect(await page.screenshot({ fullPage: true })).to.matchImage('create_new');
});
+
it("should load segmented dashboard", async function() {
await removeAllExtraDashboards();
await page.goto(url + '&segment=' + encodeURIComponent("browserCode==FF"));
@@ -326,4 +327,5 @@ describe("Dashboard", function () {
expect(await page.screenshot({ fullPage: true })).to.matchImage('invalid_token_auth');
});
+
});
diff --git a/plugins/Dashboard/tests/UI/expected-screenshots/DashboardManager_small_screen.png b/plugins/Dashboard/tests/UI/expected-screenshots/DashboardManager_small_screen.png
new file mode 100644
index 0000000000..31f26f3197
--- /dev/null
+++ b/plugins/Dashboard/tests/UI/expected-screenshots/DashboardManager_small_screen.png
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:c8200a233b30a708b15d95ad1266d3b02b8571858c4056f809a183cbd15b2ce6
+size 240977