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.js20
1 files changed, 15 insertions, 5 deletions
diff --git a/tests/UI/specs/Dashboard_spec.js b/tests/UI/specs/Dashboard_spec.js
index e585bc719f..9378eecc57 100644
--- a/tests/UI/specs/Dashboard_spec.js
+++ b/tests/UI/specs/Dashboard_spec.js
@@ -124,17 +124,27 @@ describe("Dashboard", function () {
page.mouseMove('.widgetpreview-categorylist>li:contains(Live!)'); // have to mouse move twice... otherwise Live! will just be highlighted
page.click('.widgetpreview-categorylist>li:contains(Live!)');
- page.mouseMove('.widgetpreview-categorylist>li:contains(Times):first');
- page.click('.widgetpreview-categorylist>li:contains(Times):first');
+ page.mouseMove('.widgetpreview-categorylist>li:contains(Actions):first');
+ page.click('.widgetpreview-categorylist>li:contains(Actions):first');
- page.mouseMove('.widgetpreview-widgetlist>li:contains(Visits per local time)');
- page.click('.widgetpreview-widgetlist>li:contains(Visits per local time)');
+ page.mouseMove('.widgetpreview-widgetlist>li:contains(Pages):first');
+ page.click('.widgetpreview-widgetlist>li:contains(Pages):first');
+ }, done);
+ });
+
+ it("should open row evolution", function (done) {
+ expect.screenshot("rowevolution").to.be.capture(function (page) {
+ page.mouseMove('#widgetActionsgetPageUrls table.dataTable tbody tr:contains(thankyou)');
+ page.mouseMove('a.actionRowEvolution:visible'); // necessary to get popover to display
+ page.click('a.actionRowEvolution:visible', 2000);
}, done);
});
it("should remove widget when remove widget icon is clicked", function (done) {
expect.screenshot("widget_move_removed").to.be.capture(function (page) {
- var widget = '[id="widgetVisitTimegetVisitInformationPerLocalTime"]';
+ page.click('.ui-dialog-titlebar-close:visible'); // close row evolution
+
+ var widget = '[id="widgetActionsgetPageUrls"]';
page.mouseMove(widget + ' .widgetTop');
page.click(widget + ' .button#close');