From b3cab456ed1915ec7022d128aad1c18dd265fd36 Mon Sep 17 00:00:00 2001
From: Thomas Steur <tsteur@users.noreply.github.com>
Date: Fri, 2 Sep 2016 08:56:02 +1200
Subject: [PATCH] trying to fix ui tests by waiting a little for page to render

---
 tests/UI/specs/UIIntegration_spec.js | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tests/UI/specs/UIIntegration_spec.js b/tests/UI/specs/UIIntegration_spec.js
index 205e5425a7..1f45163877 100644
--- a/tests/UI/specs/UIIntegration_spec.js
+++ b/tests/UI/specs/UIIntegration_spec.js
@@ -463,6 +463,8 @@ 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 
+            page.wait(1000);
         }, done);
     });
 
-- 
GitLab