mirror of
https://github.com/discourse/discourse.git
synced 2025-06-04 20:34:50 +08:00
FIX: Correctly set categoryId on Composer model (#23934)
This commit is contained in:
@ -10,6 +10,10 @@ module PageObjects
|
||||
page.has_css?("#{COMPOSER_ID}.open")
|
||||
end
|
||||
|
||||
def closed?
|
||||
page.has_css?("#{COMPOSER_ID}.closed", visible: :all)
|
||||
end
|
||||
|
||||
def open_composer_actions
|
||||
find(".composer-action-title .btn").click
|
||||
self
|
||||
@ -30,6 +34,12 @@ module PageObjects
|
||||
self
|
||||
end
|
||||
|
||||
def append_content(content)
|
||||
current_content = composer_input.value
|
||||
composer_input.set(current_content + content)
|
||||
self
|
||||
end
|
||||
|
||||
def fill_form_template_field(field, content)
|
||||
form_template_field(field).fill_in(with: content)
|
||||
self
|
||||
@ -90,6 +100,10 @@ module PageObjects
|
||||
find("#{COMPOSER_ID} .d-editor-preview-wrapper")
|
||||
end
|
||||
|
||||
def has_discard_draft_modal?
|
||||
page.has_css?(".discard-draft-modal")
|
||||
end
|
||||
|
||||
def has_emoji_autocomplete?
|
||||
has_css?(AUTOCOMPLETE_MENU)
|
||||
end
|
||||
|
Reference in New Issue
Block a user