Fix click access token to adapt to superside bar
What does this MR do and why?
Fix the access token page
navigation failed when the Superside bar is enabled in JH e2e.
In JH e2e test, we use the click access token
method to navigate to access token
page, but when the Superside bar
is enabled, we need to use upstream method in superside bar module to navigate to the `access token page.
so I use super method when the Superside bar
is enabled:
def click_access_tokens
return super if QA::Runtime::Env.super_sidebar_enabled?
within_sidebar do
has_text?('访问令牌') ? click_link('访问令牌') : click_link('Access Tokens')
end
end
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
Before | After |
---|---|
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.
-
I have evaluated the MR acceptance checklist for this MR.
/cc @prajnamas
由 Wei Duan(Wilson) 编辑于