Skip to content

Retry revert button click in MR E2E test

Jay McCure requested to merge jmc-js-click-revert-mr-e2e-test into master

What does this MR do and why?

Created this MR to prevent #366336 (closed)

There is a transient failure in the revert MR E2E test. Clicking the Revert button does not always open the Revert modal. This cannot be reproduced manually, but the screenshots indicate that the click has been performed, but the onClick event hasn't been fired and the modal has not been opened. It tends to occur more often when using large_test_setup which utilises a large MR.

The onClick listener may not be loading in time for the Capybara click. This MR changes it to retry the revert button if the modal does not open.

How to set up and validate locally

bundle exec rspec qa/specs/features/browser_ui/3_create/merge_request/revert/reverting_merge_request_spec.rb

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Jay McCure

Merge request reports

Loading