Skip to content
代码片段 群组 项目
提交 6e6b869c 编辑于 作者: Heinrich Lee Yu's avatar Heinrich Lee Yu
浏览文件

Merge branch 'pl-spec-flaky-request-user-awards' into 'master'

Fix flaky feature specs for "user awards emoji"

See merge request gitlab-org/gitlab!91630
No related branches found
No related tags found
无相关合并请求
......@@ -11,27 +11,35 @@
describe 'logged in' do
before do
sign_in(user)
visit project_merge_request_path(project, merge_request)
visit project_merge_request_path(project, merge_request)
wait_for_requests
end
it 'adds award to merge request' do
first('[data-testid="award-button"]').click
wait_for_requests
expect(page).to have_selector('[data-testid="award-button"].selected')
expect(first('[data-testid="award-button"]')).to have_content '1'
visit project_merge_request_path(project, merge_request)
wait_for_requests
expect(first('[data-testid="award-button"]')).to have_content '1'
end
it 'removes award from merge request' do
first('[data-testid="award-button"]').click
wait_for_requests
expect(first('[data-testid="award-button"]')).to have_content '1'
find('[data-testid="award-button"].selected').click
wait_for_requests
expect(first('[data-testid="award-button"]')).to have_content '0'
visit project_merge_request_path(project, merge_request)
wait_for_requests
expect(first('[data-testid="award-button"]')).to have_content '0'
end
......@@ -62,6 +70,7 @@
describe 'logged out' do
before do
visit project_merge_request_path(project, merge_request)
wait_for_requests
end
it 'does not see award menu button' do
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册