Failure in browser_ui/3_create/repository/restrict_push_protected_branch_spec.rb | Create Restricted protected branch push and merge when only one user is allowed to merge and push to a protected branch behaves like
Full description
Create Restricted protected branch push and merge when only one user is allowed to merge and push to a protected branch behaves like
File path
./qa/specs/features/ee/browser_ui/3_create/repository/restrict_push_protected_branch_spec.rb
Stack trace
Failure/Error:
Resource::ProtectedBranch.fabricate_via_browser_ui! do |protected_branch|
protected_branch.branch_name = branch_name
protected_branch.project = project
protected_branch.allowed_to_merge = {
users: [user_developer]
}
protected_branch.allowed_to_push = {
users: [user_developer]
}
end
Capybara::ElementNotFound:
Unable to find link or button "gitlab-qa-user1" within #<Capybara::Node::Element tag="div" path="/HTML/BODY[1]/DIV[3]/DIV[1]/DIV[3]/MAIN[1]/DIV[3]/SECTION[1]/DIV[2]/FORM[1]/DIV[1]/DIV[2]/DIV[2]/DIV[1]/DIV[1]/DIV[1]/DIV[1]">
Shared Example Group: "unselected maintainer" called from ./qa/specs/features/ee/browser_ui/3_create/repository/restrict_push_protected_branch_spec.rb:66
# ./qa/page/project/settings/protected_branches.rb:54:in `block (2 levels) in select_allowed'
# ./qa/page/project/settings/protected_branches.rb:54:in `each'
# ./qa/page/project/settings/protected_branches.rb:54:in `block in select_allowed'
# ./qa/page/base.rb:377:in `within_element'
# ./qa/support/page/logging.rb:167:in `within_element'
# ./qa/page/project/settings/protected_branches.rb:52:in `select_allowed'
# ./qa/ee/page/project/settings/protected_branches.rb:36:in `select_allowed'
# ./qa/page/project/settings/protected_branches.rb:33:in `select_allowed_to_merge'
# ./qa/resource/protected_branch.rb:51:in `block (2 levels) in fabricate!'
# ./qa/scenario/actable.rb:16:in `perform'
# ./qa/page/project/settings/repository.rb:44:in `block in expand_protected_branches'
# ./qa/page/settings/common.rb:19:in `block in expand_content'
# ./qa/page/base.rb:377:in `within_element'
# ./qa/support/page/logging.rb:167:in `within_element'
# ./qa/page/settings/common.rb:11:in `expand_content'
# ./qa/page/project/settings/repository.rb:43:in `expand_protected_branches'
# ./qa/resource/protected_branch.rb:48:in `block in fabricate!'
# ./qa/scenario/actable.rb:16:in `perform'
# ./qa/resource/protected_branch.rb:47:in `fabricate!'
# ./qa/resource/base.rb:49:in `block (2 levels) in fabricate_via_browser_ui!'
# ./qa/resource/base.rb:96:in `log_and_record_fabrication'
# ./qa/resource/base.rb:49:in `block in fabricate_via_browser_ui!'
# ./qa/resource/base.rb:86:in `do_fabricate!'
# ./qa/resource/base.rb:48:in `fabricate_via_browser_ui!'
# ./qa/specs/features/ee/browser_ui/3_create/repository/restrict_push_protected_branch_spec.rb:54:in `block (4 levels) in <module:QA>'
# ./qa/specs/spec_helper.rb:120:in `block (2 levels) in <top (required)>'
# ./qa/specs/runner.rb:67:in `perform'
# ./qa/scenario/template.rb:10:in `block in perform'
# ./qa/scenario/template.rb:8:in `tap'
# ./qa/scenario/template.rb:8:in `perform'
# ./qa/scenario/template.rb:50:in `perform'
# ./qa/scenario/template.rb:10:in `block in perform'
# ./qa/scenario/template.rb:8:in `tap'
# ./qa/scenario/template.rb:8:in `perform'
# ./qa/scenario/bootable.rb:52:in `launch!'
First happened
Related test cases:
Edited by John McDonnell