From c983e4fce1958cd6e42cec69f5a5056617353788 Mon Sep 17 00:00:00 2001
From: mattab <matthieu.aubry@gmail.com>
Date: Wed, 9 Sep 2015 15:38:53 +1200
Subject: [PATCH] Add 1second timeout to attempt to prevent random UI build
 issue eg. http://builds-artifacts.piwik.org/piwik/piwik/master/15244/

---
 tests/UI/specs/OptOutForm_spec.js | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/UI/specs/OptOutForm_spec.js b/tests/UI/specs/OptOutForm_spec.js
index f703eb4139..493b74b20c 100644
--- a/tests/UI/specs/OptOutForm_spec.js
+++ b/tests/UI/specs/OptOutForm_spec.js
@@ -53,6 +53,7 @@ describe("OptOutForm", function () {
             page.evaluate(function () {
                 $('iframe#optOutIframe').contents().find('input#trackVisits').click();
             });
+            page.wait(1000); // wait for iframe to reload
             page.load(siteUrl); // reload to check that cookie was set
         }, done);
     });
-- 
GitLab