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:
Diffstat (limited to 'spec/support/shared_examples/features/protected_branches_access_control_ce_shared_examples.rb')
-rw-r--r--spec/support/shared_examples/features/protected_branches_access_control_ce_shared_examples.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/spec/support/shared_examples/features/protected_branches_access_control_ce_shared_examples.rb b/spec/support/shared_examples/features/protected_branches_access_control_ce_shared_examples.rb
index 8212f14d6be..81d548e000a 100644
--- a/spec/support/shared_examples/features/protected_branches_access_control_ce_shared_examples.rb
+++ b/spec/support/shared_examples/features/protected_branches_access_control_ce_shared_examples.rb
@@ -8,7 +8,7 @@ RSpec.shared_examples "protected branches > access control > CE" do
set_protected_branch_name('master')
find(".js-allowed-to-merge").click
- within('.rspec-allowed-to-merge-dropdown') do
+ within('[data-testid="allowed-to-merge-dropdown"]') do
expect(first("li")).to have_content("Roles")
find(:link, 'No one').click
end
@@ -35,13 +35,13 @@ RSpec.shared_examples "protected branches > access control > CE" do
set_protected_branch_name('master')
find(".js-allowed-to-merge").click
- within('.rspec-allowed-to-merge-dropdown') do
+ within('[data-testid="allowed-to-merge-dropdown"]') do
expect(first("li")).to have_content("Roles")
find(:link, 'No one').click
end
find(".js-allowed-to-push").click
- within('.rspec-allowed-to-push-dropdown') do
+ within('[data-testid="allowed-to-push-dropdown"]') do
expect(first("li")).to have_content("Roles")
find(:link, 'No one').click
end
@@ -83,7 +83,7 @@ RSpec.shared_examples "protected branches > access control > CE" do
end
find(".js-allowed-to-push").click
- within('.rspec-allowed-to-push-dropdown') do
+ within('[data-testid="allowed-to-push-dropdown"]') do
expect(first("li")).to have_content("Roles")
find(:link, 'No one').click
end
@@ -100,13 +100,13 @@ RSpec.shared_examples "protected branches > access control > CE" do
set_protected_branch_name('master')
find(".js-allowed-to-merge").click
- within('.rspec-allowed-to-merge-dropdown') do
+ within('[data-testid="allowed-to-merge-dropdown"]') do
expect(first("li")).to have_content("Roles")
find(:link, 'No one').click
end
find(".js-allowed-to-push").click
- within('.rspec-allowed-to-push-dropdown') do
+ within('[data-testid="allowed-to-push-dropdown"]') do
expect(first("li")).to have_content("Roles")
find(:link, 'No one').click
end