Commit 56aa67fc authored by Sean McGivern's avatar Sean McGivern

Merge branch...

Merge branch '222518-flaky-test-in-ee-spec-features-promotion_spec-rb-314-promotions-for-issue-weight-is-removed' into 'master'

Improve a flaky test in ee/spec/features/promotion_spec.rb:314

Closes #222518

See merge request gitlab-org/gitlab!34616
parents 8cebaaae 6216f194
...@@ -315,8 +315,10 @@ RSpec.describe 'Promotions', :js do ...@@ -315,8 +315,10 @@ RSpec.describe 'Promotions', :js do
visit project_issue_path(project, issue) visit project_issue_path(project, issue)
wait_for_requests wait_for_requests
find('.btn-link.js-toggle-button.js-weight-sidebar-callout').click within 'div.js-weight-sidebar-callout' do
find('.js-weight-sidebar-callout .js-close-callout').click find('.btn-link.js-toggle-button.js-weight-sidebar-callout').click
click_link "Don't show me this again"
end
expect(page).not_to have_selector('.js-weight-sidebar-callout') expect(page).not_to have_selector('.js-weight-sidebar-callout')
end end
......
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