Failed in E2E `after(:context)` hook - RuntimeError: The test left the browser signed in.
Summary
Failed in Staging-ref https://ops.gitlab.net/gitlab-org/quality/staging-ref/-/jobs/6220619
Problem spec qa/specs/features/ee/browser_ui/4_verify/cancelling_merge_request_in_merge_train_spec.rb
Basically this test's examples are all quarantined but the top level described block is left out so it was still executed then exit when it gets to the example but the browser was launched and tried to get access token etc...
Stack trace
An error occurred in an `after(:context)` hook.
Failure/Error:
raise(
<<~ERROR
The test left the browser signed in.
Usually, Capybara prevents this from happening but some things can
interfere. For example, if it has an `after(:context)` block that logs
in, the browser will stay logged in and this will cause the next test
to fail.
Please make sure the test does not leave the browser signed in.
RuntimeError:
The test left the browser signed in.
Usually, Capybara prevents this from happening but some things can
interfere. For example, if it has an `after(:context)` block that logs
in, the browser will stay logged in and this will cause the next test
to fail.
Please make sure the test does not leave the browser signed in.
Possible fixes
Quarantine test at top level, and providing all related issues.