Log out before starting tests in gdk
What does this MR do and why?
Fixes: https://gitlab.com/gitlab-org/gitlab/-/jobs/4741155052
Root cause: !127611 (comment 1489843335)
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.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Sofia Vistas