Skip to content
Snippets Groups Projects

E2E test: remove unnecessary login mr from fork test

Merged Jay McCure requested to merge jmc-mr-fork-e2e-test into master
All threads resolved!

What does this MR do and why?

Fixes #409194 (closed)

The merge_merge_request_from_fork_spec.rb E2E test has been recently de-quarantined and it has been occasionally failing when switching users immediately after creating an MR. There seems to be requests still running when the sign out button is clicked which means the token isn't cleared and then we get a 422, this seems to only occur due the speed of the actions of the automated test.

This MR waits for requests to complete before signing out. (Similar fix has been done here and here this fix greatly reduced the number of failures, but occasionally it still can occur)

It was also noticed that the test was logging out and in with the same user, so now we check that if the user is currently signed in, don't sign in again.

How to set up and validate locally

bundle exec rspec qa/specs/features/browser_ui/3_create/merge_request/suggestions/merge_merge_request_from_fork_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

Merged results pipeline #855282780 passed

Pipeline: GitLab

#855282810

    Pipeline: GitLab

    #855284841

      Pipeline: E2E Omnibus GitLab EE

      #855284847

        Merged results pipeline passed for 952a9ca6

        Merged by Ramya AuthappanRamya Authappan 1 year ago (May 10, 2023 4:20am UTC)

        Loading

        Pipeline #862490819 passed

        Pipeline passed for d6f169d7 on master

        10 environments impacted.

        Activity

        Filter activity
        • Approvals
        • Assignees & reviewers
        • Comments (from bots)
        • Comments (from users)
        • Commits & branches
        • Edits
        • Labels
        • Lock status
        • Mentions
        • Merge request status
        • Tracking
        Please register or sign in to reply
        Loading