mirror of
https://github.com/discourse/discourse.git
synced 2026-08-04 18:33:28 -05:00
A11Y: when adding custom sidebar link, first input of new row should get focus (#25920)
* A11Y: when adding custom sidebar links, ensure first input of new row gets focus * switch to afterRender decorator
This commit is contained in:
@@ -138,6 +138,10 @@ module PageObjects
|
||||
click_button(add_section_button_text)
|
||||
end
|
||||
|
||||
def click_add_link_button
|
||||
click_button(add_link_button_text)
|
||||
end
|
||||
|
||||
def has_no_add_section_button?
|
||||
page.has_no_button?(add_section_button_text)
|
||||
end
|
||||
@@ -183,6 +187,10 @@ module PageObjects
|
||||
def add_section_button_text
|
||||
I18n.t("js.sidebar.sections.custom.add")
|
||||
end
|
||||
|
||||
def add_link_button_text
|
||||
I18n.t("js.sidebar.sections.custom.links.add")
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user