diff options
author | Matthieu Aubry <mattab@users.noreply.github.com> | 2016-10-05 01:36:01 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-05 01:36:01 +0300 |
commit | 5262b7a05527f09a1a6b7fdac9bf1fb7bac37bad (patch) | |
tree | 598de602262e5a9a72a9ce77c55cd222699b5706 /tests/UI/specs | |
parent | 7e0cc29659aa797a2365499fc9edabae56433e65 (diff) |
Add new UI test for scheduled reports editor (#10676)
Diffstat (limited to 'tests/UI/specs')
-rw-r--r-- | tests/UI/specs/MultiSites_spec.js | 2 | ||||
-rw-r--r-- | tests/UI/specs/UIIntegration_spec.js | 11 |
2 files changed, 12 insertions, 1 deletions
diff --git a/tests/UI/specs/MultiSites_spec.js b/tests/UI/specs/MultiSites_spec.js index 6037a196ef..66d9945f68 100644 --- a/tests/UI/specs/MultiSites_spec.js +++ b/tests/UI/specs/MultiSites_spec.js @@ -41,12 +41,14 @@ describe("MultiSitesTest", function () { it('should load the all websites dashboard correctly', function (done) { expect.screenshot('all_websites').to.be.captureSelector(selector, function (page) { page.load("?" + generalParams + "&module=MultiSites&action=index"); + page.wait(1000); }, done); }); it('should load next page correctly', function (done) { expect.screenshot('all_websites_page_1').to.be.captureSelector(selector, function (page) { page.click('.paging .next'); + page.wait(1000); }, done); }); diff --git a/tests/UI/specs/UIIntegration_spec.js b/tests/UI/specs/UIIntegration_spec.js index 7edc7c067e..0f6d3866e2 100644 --- a/tests/UI/specs/UIIntegration_spec.js +++ b/tests/UI/specs/UIIntegration_spec.js @@ -469,10 +469,13 @@ describe("UIIntegrationTest", function () { // TODO: Rename to Piwik? it('should load the Settings > General Settings admin page correctly', function (done) { expect.screenshot('admin_settings_general').to.be.captureSelector('.pageWrap', function (page) { - page.click('.materialize-textarea'); page.load("?" + generalParams + "&module=CoreAdminHome&action=generalSettings"); // angular might need a little to render after page has loaded page.wait(1000); + page.evaluate(function () { + $('textarea:eq(0)').trigger('focus'); + }); + page.wait(1000); }, done); }); @@ -612,6 +615,12 @@ describe("UIIntegrationTest", function () { // TODO: Rename to Piwik? }, done); }); + it('should load the scheduled reports when Edit button is clicked', function (done) { + expect.screenshot('email_reports_editor').to.be.captureSelector('.pageWrap', function (page) { + page.click('.entityTable tr:nth-child(4) button[title=Edit]'); + }, done); + }); + it('should load the feedback form when the feedback form link is clicked', function (done) { expect.screenshot('feedback_form').to.be.captureSelector('.pageWrap', function (page) { |