DEV: Switch sidebar section link identifier to data attribute (#21051)

Data attribute is less restrictive than relying on the class attribute
This commit is contained in:
Alan Guo Xiang Tan
2023-04-12 15:52:10 +08:00
committed by GitHub
parent 3b045a2016
commit 2eb60c9713
17 changed files with 207 additions and 198 deletions

View File

@ -31,10 +31,7 @@ module PageObjects
end
def click_everything_link
page.click_link(
I18n.t("js.sidebar.sections.community.links.everything.content"),
class: "sidebar-section-link-everything",
)
find(".sidebar-section-link[data-link-name='everything']").click
end
def click_toggle_to_desktop_view_button