DEV: quit session asap (#26009)

This commit is contained in:
Joffrey JAFFEUX 2024-03-04 11:50:13 +01:00 committed by GitHub
parent 3be5daae37
commit 7a6ba47e7b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -40,7 +40,7 @@ RSpec.describe "Reply to message - smoke", type: :system do
expect(thread_page.messages).to have_message(text: "user1reply")
end
using_session(:user_2) do
using_session(:user_2) do |session|
expect(thread_page.messages).to have_message(text: "user1reply")
expect(channel_page.message_thread_indicator(original_message)).to have_reply_count(1)
@ -49,6 +49,8 @@ RSpec.describe "Reply to message - smoke", type: :system do
expect(thread_page.messages).to have_message(text: "user1reply")
expect(thread_page.messages).to have_message(text: "user2reply")
expect(channel_page.message_thread_indicator(original_message)).to have_reply_count(2)
session.quit
end
using_session(:user_1) do