diff options
author | Alfredo Sumaran <alfredo@gitlab.com> | 2016-08-01 16:08:36 -0500 |
---|---|---|
committer | Alfredo Sumaran <alfredo@gitlab.com> | 2016-08-05 17:19:01 -0500 |
commit | 1ac953dab437b3f2eaeca0ae39b80e40f8a09848 (patch) | |
tree | 3b08bb0153afd0d27bd6e547eb053623cbe94b24 /spec/features/protected_branches_spec.rb | |
parent | d4f06e4907b5154fa864634eb67cb74427a31dd6 (diff) | |
download | gitlab-ce-1ac953dab437b3f2eaeca0ae39b80e40f8a09848.tar.gz |
Update layout and JS for create protected branch.
Also updates protect branch list
Diffstat (limited to 'spec/features/protected_branches_spec.rb')
-rw-r--r-- | spec/features/protected_branches_spec.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/features/protected_branches_spec.rb b/spec/features/protected_branches_spec.rb index 57734b33a44..2a6f3b3bb1c 100644 --- a/spec/features/protected_branches_spec.rb +++ b/spec/features/protected_branches_spec.rb @@ -90,7 +90,7 @@ feature 'Projected Branches', feature: true, js: true do visit namespace_project_protected_branches_path(project.namespace, project) set_protected_branch_name('master') within('.new_protected_branch') do - find(".allowed-to-push").click + find(".js-allowed-to-push").click within(".dropdown.open .dropdown-menu") { click_on access_type_name } end click_on "Protect" @@ -107,7 +107,7 @@ feature 'Projected Branches', feature: true, js: true do expect(ProtectedBranch.count).to eq(1) within(".protected-branches-list") do - find(".allowed-to-push").click + find(".js-allowed-to-push").click within('.dropdown-menu.push') { click_on access_type_name } end @@ -121,7 +121,7 @@ feature 'Projected Branches', feature: true, js: true do visit namespace_project_protected_branches_path(project.namespace, project) set_protected_branch_name('master') within('.new_protected_branch') do - find(".allowed-to-merge").click + find(".js-allowed-to-merge").click within(".dropdown.open .dropdown-menu") { click_on access_type_name } end click_on "Protect" @@ -138,7 +138,7 @@ feature 'Projected Branches', feature: true, js: true do expect(ProtectedBranch.count).to eq(1) within(".protected-branches-list") do - find(".allowed-to-merge").click + find(".js-allowed-to-merge").click within('.dropdown-menu.merge') { click_on access_type_name } end |