This commit is contained in:
Joffrey JAFFEUX 2022-12-13 21:22:27 +01:00
parent f43dd753ba
commit f5ca3a9b14
2 changed files with 5 additions and 2 deletions

View File

@ -137,7 +137,8 @@ RSpec.describe "Quoting chat message transcripts", type: :system, js: true do
within(".d-editor-preview") { expect(page).to have_css(".chat-transcript", count: 2) }
expect(page).to have_content("Originally sent in #{chat_channel_1.name}")
find("#reply-control .save-or-cancel .create").click
# find("#reply-control .save-or-cancel .create").click
topic_page.send_reply
selector = topic_page.post_by_number_selector(2)
expect(page).to have_css(selector)

View File

@ -106,7 +106,9 @@ module PageObjects
end
def send_reply
within("#reply-control") { find(".save-or-cancel .create").click }
within("#reply-control") do |reply_control|
reply_control.find(".save-or-cancel .create").click
end
end
def fill_in_composer_title(title)