Skip to content

Commit

Permalink
Hotfix: Attempt to address race in system test
Browse files Browse the repository at this point in the history
  • Loading branch information
krschacht committed Oct 19, 2024
1 parent 07610fd commit 63d2528
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/system/conversations/messages/edit_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,10 @@ class ConversationMessagesEditTest < ApplicationSystemTestCase
third.hover
assert_no_selector "##{third[:id]} [data-role='message-edit']"

first_message.hover
assert_selector "##{first_message[:id]} [data-role='message-edit']"
assert_true "First message has an edit icon" do
first_message.hover
page.all("##{first_message[:id]} [data-role='message-edit']").count == 1
end # Hitting a race condition when we do this one as an assert_selector, not sure why
end

test "edit icon shows a tooltip" do
Expand Down

0 comments on commit 63d2528

Please sign in to comment.