mirror of
https://github.com/discourse/discourse.git
synced 2025-06-04 10:24:39 +08:00
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:

committed by
GitHub

parent
3b045a2016
commit
2eb60c9713
@ -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
|
||||
|
Reference in New Issue
Block a user