From aef29d00fea11938587dceeb7a9abb2cb6afa74f Mon Sep 17 00:00:00 2001 From: Eric Eastwood Date: Wed, 13 Jun 2018 17:09:50 -0500 Subject: [PATCH] Fix flakey move slash command with unauthorized project --- spec/features/issues/user_uses_slash_commands_spec.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/spec/features/issues/user_uses_slash_commands_spec.rb b/spec/features/issues/user_uses_slash_commands_spec.rb index dacca494755..17818beb947 100644 --- a/spec/features/issues/user_uses_slash_commands_spec.rb +++ b/spec/features/issues/user_uses_slash_commands_spec.rb @@ -226,7 +226,9 @@ feature 'Issues > User uses quick actions', :js do it 'does not move the issue' do add_note("/move #{project_unauthorized.full_path}") - expect(page).not_to have_content 'Commands applied' + wait_for_requests + + expect(page).to have_content 'Commands applied' expect(issue.reload).to be_open end end