Skip to content

E2E: Fix contributors navigation method to adapt to superside bar

What does this MR do and why?

Fix the contributor statistics page navigation failed when the Superside bar is enabled in JH e2e.

In JH e2e test, we use the go_to_repository_contributors method to navigate to Contributor statistics page, but when the Superside bar is enabled, we need to use a new method (go_to_contributor_statistics) to navigate to the Contributor statistics page.

So I expect the following adjustments to be made:

update the go_to_contributor_statistics method to ensure that the Contributor statistics page can be navigated regardless of whether the Superside bar is enabled or disabled

return go_to_contributor_statistics if Runtime::Env.super_sidebar_enabled?

/cc @prajnamas

Screenshots or screen recordings

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

Before After
image image

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 Wei Duan

Merge request reports