diff options
author | Matthieu Aubry <mattab@users.noreply.github.com> | 2017-09-20 14:06:08 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-20 14:06:08 +0300 |
commit | 4a18b35fb3f37189b999997bd90884aa0ceb6e75 (patch) | |
tree | 2020b521ec738402a0c522c081a10f4ef56ddbdb /tests/UI/specs/Dashboard_spec.js | |
parent | a54f62f55e500644372fa342738483a6fd3dfaa3 (diff) | |
parent | e4750236c6668b9126271cc6eef02256a64ec9f0 (diff) |
Merge pull request #12085 from piwik/3.x-dev3.1.1
Release Piwik 3.1.1
Diffstat (limited to 'tests/UI/specs/Dashboard_spec.js')
-rw-r--r-- | tests/UI/specs/Dashboard_spec.js | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/tests/UI/specs/Dashboard_spec.js b/tests/UI/specs/Dashboard_spec.js index 9378eecc57..1e2008c3a2 100644 --- a/tests/UI/specs/Dashboard_spec.js +++ b/tests/UI/specs/Dashboard_spec.js @@ -133,8 +133,8 @@ describe("Dashboard", function () { }); it("should open row evolution", function (done) { - expect.screenshot("rowevolution").to.be.capture(function (page) { - page.mouseMove('#widgetActionsgetPageUrls table.dataTable tbody tr:contains(thankyou)'); + expect.screenshot("rowevolution").to.be.captureSelector('.ui-dialog:visible', function (page) { + page.mouseMove('#widgetActionsgetPageUrls table.dataTable tbody tr:contains(thankyou) td:first-child', 100); page.mouseMove('a.actionRowEvolution:visible'); // necessary to get popover to display page.click('a.actionRowEvolution:visible', 2000); }, done); @@ -197,6 +197,11 @@ describe("Dashboard", function () { page.click('.dashboard-manager .title'); page.click('li[data-action=resetDashboard]'); page.click('.modal.open .modal-footer a:contains(Yes)', 4000); + page.evaluate(function(){ + $('#widgetReferrersgetReferrerType').hide(); + $('#widgetReferrersgetReferrerType').offsetHeight; + $('#widgetReferrersgetReferrerType').show(); + }, 100); page.mouseMove('.dashboard-manager'); }, done); }); |