it'locks a file and tries to push as a second user',testcase: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/558'do
sign_out_and_sign_in_asuser: user_one
go_to_file
click_lock
expect_error_on_pushas_user: user_two
expect_no_error_on_pushas_user: user_one
end
it'checks file locked by other user to be disabled',testcase: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/556'do
go_to_file
click_lock
sign_out_and_sign_in_asuser: user_one
go_to_file
Page::File::Show.performdo|show|
expect(show).tohave_lock_button_disabled
end
end
it'creates a merge request and fails to merge',quarantine: {issue: 'https://gitlab.com/gitlab-org/gitlab/issues/40125',type: :bug},testcase: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/1852'do