FIX: Correctly set categoryId on Composer model (#23934)

This commit is contained in:
Jarek Radosz
2023-10-19 19:19:40 +02:00
committed by GitHub
parent f42f54d58f
commit e31859a33a
4 changed files with 89 additions and 5 deletions

View File

@ -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