mirror of
https://github.com/discourse/discourse.git
synced 2025-06-04 23:36:11 +08:00
FEATURE: support a description attribute on form template fields (#23744)
* FEATURE: support a description attribute on form template fields
This commit is contained in:
@ -170,6 +170,14 @@ module PageObjects
|
||||
page.has_css?(".form-template-field__error", text: error)
|
||||
end
|
||||
|
||||
def has_form_template_field_label?(label)
|
||||
page.has_css?(".form-template-field__label", text: label)
|
||||
end
|
||||
|
||||
def has_form_template_field_description?(description)
|
||||
page.has_css?(".form-template-field__description", text: description)
|
||||
end
|
||||
|
||||
def composer_input
|
||||
find("#{COMPOSER_ID} .d-editor .d-editor-input")
|
||||
end
|
||||
|
Reference in New Issue
Block a user