Commit d578c95a authored by Stan Hu's avatar Stan Hu

Merge branch 'improve-flaky-tests' into 'master'

Improve flaky tests that asserted on flash notice

See merge request gitlab-org/gitlab!60309
parents c62a65ec 32617a53
...@@ -163,7 +163,8 @@ RSpec.describe 'Projects > Settings > User manages merge request settings' do ...@@ -163,7 +163,8 @@ RSpec.describe 'Projects > Settings > User manages merge request settings' do
click_on('Save changes') click_on('Save changes')
end end
find('.flash-notice') wait_for_requests
radio = find_field('project_project_setting_attributes_squash_option_default_on') radio = find_field('project_project_setting_attributes_squash_option_default_on')
expect(radio).to be_checked expect(radio).to be_checked
...@@ -178,7 +179,8 @@ RSpec.describe 'Projects > Settings > User manages merge request settings' do ...@@ -178,7 +179,8 @@ RSpec.describe 'Projects > Settings > User manages merge request settings' do
click_on('Save changes') click_on('Save changes')
end end
find('.flash-notice') wait_for_requests
radio = find_field('project_project_setting_attributes_squash_option_always') radio = find_field('project_project_setting_attributes_squash_option_always')
expect(radio).to be_checked expect(radio).to be_checked
...@@ -193,7 +195,8 @@ RSpec.describe 'Projects > Settings > User manages merge request settings' do ...@@ -193,7 +195,8 @@ RSpec.describe 'Projects > Settings > User manages merge request settings' do
click_on('Save changes') click_on('Save changes')
end end
find('.flash-notice') wait_for_requests
radio = find_field('project_project_setting_attributes_squash_option_never') radio = find_field('project_project_setting_attributes_squash_option_never')
expect(radio).to be_checked expect(radio).to be_checked
...@@ -220,7 +223,8 @@ RSpec.describe 'Projects > Settings > User manages merge request settings' do ...@@ -220,7 +223,8 @@ RSpec.describe 'Projects > Settings > User manages merge request settings' do
click_on('Save changes') click_on('Save changes')
end end
find('.flash-notice') wait_for_requests
radio = find_field('project_project_setting_attributes_mr_default_target_self_true') radio = find_field('project_project_setting_attributes_mr_default_target_self_true')
expect(radio).to be_checked expect(radio).to be_checked
......
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