From 30c2d5d9ac7825e3a4c70a01418da4c3c0e80c34 Mon Sep 17 00:00:00 2001
From: flaburgan <flaburgan@geexxx.fr>
Date: Thu, 23 Mar 2017 12:58:08 +0100
Subject: [PATCH] Close popovers before submitting the publisher to avoid
 random failures

closes #7384
---
 features/desktop/signs_up.feature | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/features/desktop/signs_up.feature b/features/desktop/signs_up.feature
index 55c124b861..d68c58f194 100644
--- a/features/desktop/signs_up.feature
+++ b/features/desktop/signs_up.feature
@@ -48,7 +48,9 @@ Feature: new user registration
     When I confirm the alert after I follow "awesome_button"
     Then I should be on the stream page
     And the publisher should be expanded
-    When I submit the publisher
+    When I wait for the popovers to appear
+    And I click close on all the popovers
+    And I submit the publisher
     Then "Hey everyone, I’m #newhere." should be post 1
 
   Scenario: new user with some tags posts first status message
@@ -59,6 +61,8 @@ Feature: new user registration
     And I follow "awesome_button"
     Then I should be on the stream page
     And the publisher should be expanded
+    When I wait for the popovers to appear
+    And I click close on all the popovers
     And I submit the publisher
     Then "Hey everyone, I’m #newhere. I’m interested in #rockstar." should be post 1
 
-- 
GitLab