Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Thomas <nick@gitlab.com>2019-01-25 19:43:24 +0300
committerNick Thomas <nick@gitlab.com>2019-01-25 19:43:24 +0300
commit40bfa51e303377dd856c024f6e543937d2038a6b (patch)
tree1816410155b1d8c04f40d9e0e20400b4ddeb2a1e /spec/features/projects/settings/user_changes_default_branch_spec.rb
parent51441b97abdec1c37c96173b08c7b527f342b80f (diff)
Fix a JS race in a spec
Diffstat (limited to 'spec/features/projects/settings/user_changes_default_branch_spec.rb')
-rw-r--r--spec/features/projects/settings/user_changes_default_branch_spec.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/spec/features/projects/settings/user_changes_default_branch_spec.rb b/spec/features/projects/settings/user_changes_default_branch_spec.rb
index fcf05e04a5c..7dc18601f50 100644
--- a/spec/features/projects/settings/user_changes_default_branch_spec.rb
+++ b/spec/features/projects/settings/user_changes_default_branch_spec.rb
@@ -15,6 +15,9 @@ describe 'Projects > Settings > User changes default branch' do
let(:project) { create(:project, :repository, namespace: user.namespace) }
it 'allows to change the default branch', :js do
+ # Otherwise, running JS may overwrite our change to project_default_branch
+ wait_for_requests
+
select2('fix', from: '#project_default_branch')
page.within '#default-branch-settings' do