Skip to content

Fix impersonation token e2e spec

Sanad Liaquat requested to merge qa-shl-fix-impersonation-token-e2e-spec into master

What does this MR do and why?

Fixes browser_ui/1_manage/user/impersonation_token_spec.rb on live environments where the GITLAB_QA_ACCESS_TOKEN is different that GITLAB_QA_ADMIN_ACCESS_TOKEN and the former was being used on reload.

This MR ensures we use the admin api client (and so GITLAB_QA_ADMIN_ACCESS_TOKEN) for fetching the user's impersonation token which is only available to admins.

Fixes #369601 (closed)

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

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 Sanad Liaquat

Merge request reports