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/Dashboard_spec.js')
-rw-r--r--tests/UI/specs/Dashboard_spec.js24
1 files changed, 12 insertions, 12 deletions
diff --git a/tests/UI/specs/Dashboard_spec.js b/tests/UI/specs/Dashboard_spec.js
index e6918417d4..f17e9f4258 100644
--- a/tests/UI/specs/Dashboard_spec.js
+++ b/tests/UI/specs/Dashboard_spec.js
@@ -84,7 +84,7 @@ describe("Dashboard", function () {
});
it("should refresh widget when widget refresh icon clicked", function (done) {
- expect.screenshot("widget_move").to.be.capture("widget_refresh", function (page) {
+ expect.screenshot("widget_move_refresh").to.be.capture(function (page) {
page.mouseMove('.widgetTop');
page.click('.button#refresh');
page.mouseMove('.dashboard-manager'); // let widget top hide again
@@ -99,7 +99,7 @@ describe("Dashboard", function () {
});
it("should unminimise widget when widget maximise icon is clicked after being minimised", function (done) {
- expect.screenshot("widget_move").to.be.capture("widget_unminimised", function (page) {
+ expect.screenshot("widget_move_unminimised").to.be.capture(function (page) {
page.mouseMove('.widgetTop');
page.click('.button#maximise');
page.mouseMove('.dashboard-manager'); // let widget top hide again
@@ -114,7 +114,7 @@ describe("Dashboard", function () {
});
it("should close maximise dialog when minimise icon is clicked", function (done) {
- expect.screenshot("widget_move").to.be.capture("widget_unmaximise", function (page) {
+ expect.screenshot("widget_move_unmaximise").to.be.capture(function (page) {
page.mouseMove('.widgetTop');
page.click('.button#minimise');
page.mouseMove('.dashboard-manager'); // let widget top hide again
@@ -123,7 +123,7 @@ describe("Dashboard", function () {
it("should add a widget when a widget is selected in the dashboard manager", function (done) {
expect.screenshot("widget_add_widget").to.be.capture(function (page) {
- page.click('.dashboard-manager');
+ page.click('.dashboard-manager .title');
page.mouseMove('.widgetpreview-categorylist>li:contains(Live!)'); // have to mouse move twice... otherwise Live! will just be highlighted
page.mouseMove('.widgetpreview-categorylist>li:contains(Visits Summary)');
@@ -135,7 +135,7 @@ describe("Dashboard", function () {
});
it("should remove widget when remove widget icon is clicked", function (done) {
- expect.screenshot("widget_move").to.be.capture("widget_removed", function (page) {
+ expect.screenshot("widget_move_removed").to.be.capture(function (page) {
page.mouseMove('#widgetVisitTimegetVisitInformationPerLocalTime .widgetTop');
page.click('#widgetVisitTimegetVisitInformationPerLocalTime .button#close');
page.click('.ui-dialog button>span:contains(Yes)');
@@ -145,7 +145,7 @@ describe("Dashboard", function () {
it("should change dashboard layout when new layout is selected", function (done) {
expect.screenshot("change_layout").to.be.capture(function (page) {
- page.click('.dashboard-manager');
+ page.click('.dashboard-manager .title');
page.click('li[data-action=showChangeDashboardLayoutDialog]');
page.click('div[layout=50-50]');
page.click('.ui-dialog button>span:contains(Save)', 3000);
@@ -154,7 +154,7 @@ describe("Dashboard", function () {
it("should rename dashboard when dashboard rename process completed", function (done) {
expect.screenshot("rename").to.be.capture(function (page) {
- page.click('.dashboard-manager');
+ page.click('.dashboard-manager .title');
page.click('li[data-action=renameDashboard]');
page.evaluate(function () {
$('#newDashboardName:visible').val('newname'); // don't use sendKeys or click, since in this test it appears to trigger a seg fault on travis
@@ -165,7 +165,7 @@ describe("Dashboard", function () {
it("should copy dashboard successfully when copy dashboard process completed", function (done) {
expect.screenshot("copied").to.be.capture(function (page) {
- page.click('.dashboard-manager');
+ page.click('.dashboard-manager .title');
page.click('li[data-action=copyDashboardToUser]');
page.evaluate(function () {
$('#copyDashboardName').val('');
@@ -182,7 +182,7 @@ describe("Dashboard", function () {
it("should reset dashboard when reset dashboard process completed", function (done) {
expect.screenshot("reset").to.be.capture(function (page) {
- page.click('.dashboard-manager');
+ page.click('.dashboard-manager .title');
page.click('li[data-action=resetDashboard]');
page.click('.ui-dialog button>span:contains(Yes)', 10000);
page.mouseMove('.dashboard-manager');
@@ -191,7 +191,7 @@ describe("Dashboard", function () {
it("should remove dashboard when remove dashboard process completed", function (done) {
expect.screenshot("removed").to.be.capture(function (page) {
- page.click('.dashboard-manager');
+ page.click('.dashboard-manager .title');
page.click('li[data-action=removeDashboard]');
page.click('.ui-dialog[aria-describedby=removeDashboardConfirm] button>span:contains(Yes)');
page.mouseMove('.dashboard-manager');
@@ -204,7 +204,7 @@ describe("Dashboard", function () {
it("should not fail when default widget selection changed", function (done) {
expect.screenshot("default_widget_selection_changed").to.be.capture(function (page) {
page.load(url);
- page.click('.dashboard-manager');
+ page.click('.dashboard-manager .title');
page.click('li[data-action=setAsDefaultWidgets]');
page.click('.ui-dialog button>span:contains(Yes)');
}, done);
@@ -212,7 +212,7 @@ describe("Dashboard", function () {
it("should create new dashboard with new default widget selection when create dashboard process completed", function (done) {
expect.screenshot("create_new").to.be.capture(function (page) {
- page.click('.dashboard-manager');
+ page.click('.dashboard-manager .title');
page.click('li[data-action=createDashboard]');
page.sendKeys('#createDashboardName', 'newdash2');
page.click('.ui-dialog[aria-describedby=createDashboardConfirm] button>span:contains(Yes)');