mirror of
https://github.com/discourse/discourse.git
synced 2025-05-28 13:51:18 +08:00
UX: Add required indicator to fields with required
validation (#22096)
This commit is contained in:
@ -142,6 +142,12 @@ module PageObjects
|
||||
page.has_css?(".form-template-field[data-field-type='#{field}']")
|
||||
end
|
||||
|
||||
def has_form_template_field_required_indicator?(field)
|
||||
page.has_css?(
|
||||
".form-template-field[data-field-type='#{field}'] .form-template-field__required-indicator",
|
||||
)
|
||||
end
|
||||
|
||||
FORM_TEMPLATE_CHOOSER_SELECTOR = ".composer-select-form-template"
|
||||
|
||||
def has_no_form_template_chooser?
|
||||
|
Reference in New Issue
Block a user