From ad6c6a252d6ef89ab0cbfc847d1264538d45d0ff Mon Sep 17 00:00:00 2001 From: mattab <matthieu.aubry@gmail.com> Date: Fri, 7 Oct 2016 10:27:08 +1300 Subject: [PATCH] wait! --- tests/UI/specs/UIIntegration_spec.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tests/UI/specs/UIIntegration_spec.js b/tests/UI/specs/UIIntegration_spec.js index 3497d3089a..35769b7555 100644 --- a/tests/UI/specs/UIIntegration_spec.js +++ b/tests/UI/specs/UIIntegration_spec.js @@ -470,7 +470,7 @@ 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.load("?" + generalParams + "&module=CoreAdminHome&action=generalSettings"); - // angular might need a little to render after page has loaded + // angular might need a little to render after page has loaded page.wait(1000); page.evaluate(function () { $('textarea:eq(0)').trigger('focus'); @@ -508,7 +508,7 @@ describe("UIIntegrationTest", function () { // TODO: Rename to Piwik? page.load("?" + generalParams + "&module=CorePluginsAdmin&action=plugins"); }, done); }); - + it('should load the config file page correctly', function (done) { expect.screenshot('admin_diagnostics_configfile').to.be.captureSelector('.pageWrap', function (page) { page.load("?" + generalParams + "&module=Diagnostics&action=configfile"); @@ -707,6 +707,9 @@ describe("UIIntegrationTest", function () { // TODO: Rename to Piwik? page.mouseMove('table.dataTable tbody tr:first-child'); page.mouseMove('a.actionSegmentVisitorLog:visible'); // necessary to get popover to display page.click('a.actionSegmentVisitorLog:visible'); + + page.wait(1000); + }, done); }); -- GitLab