Commit 8e20d23c authored by Coung Ngo's avatar Coung Ngo

Attempt to fix flaky test in `user_views_iteration_spec.rb`

Attempts to fix the flaky test by adding `wait_for_requests`
to wait for a REST API call then a GraphQL API call.

https://gitlab.com/gitlab-org/gitlab/-/issues/323731
parent 33702b3f
......@@ -81,7 +81,7 @@ RSpec.describe 'User views iteration' do
end
end
context 'when grouping by label', quarantine: 'https://gitlab.com/gitlab-org/gitlab/-/issues/323731' do
context 'when grouping by label' do
before do
sign_in(user)
......
......@@ -64,7 +64,7 @@ RSpec.describe 'User views iteration' do
it_behaves_like 'render iteration page'
context 'when grouping by label', quarantine: 'https://gitlab.com/gitlab-org/gitlab/-/issues/323731' do
context 'when grouping by label' do
it_behaves_like 'iteration report group by label'
end
......
......@@ -6,8 +6,10 @@ RSpec.shared_examples 'iteration report group by label' do
# Select label `label1` from the labels dropdown picker
click_button 'Label'
wait_for_requests
click_link label1.title
send_keys(:escape)
wait_for_requests
end
it 'groups by label', :aggregate_failures do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment