From 64971e5972488d089f80df8b40fd4646cd5485ba Mon Sep 17 00:00:00 2001 From: Joffrey JAFFEUX Date: Mon, 15 May 2023 07:52:02 +0200 Subject: [PATCH] DEV: attempts to fix flakey spec (#21547) The failure screenshot shows the message is on screen while the error is: ``` Failure/Error: example.run expected to find text "My favorite message" in "Community\nEverything\nMy Posts\nMore\nMessages\nInbox\nChannels\nPolitics 1\nPersonal chat\nPolitics 1". (However, it was found 1 time including non-visible text.) ``` I expect the arrow element might e slightly hiding the link, but not 100% sure of this. --- plugins/chat/spec/system/navigating_to_message_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/chat/spec/system/navigating_to_message_spec.rb b/plugins/chat/spec/system/navigating_to_message_spec.rb index c8a40988e89..41ede9af054 100644 --- a/plugins/chat/spec/system/navigating_to_message_spec.rb +++ b/plugins/chat/spec/system/navigating_to_message_spec.rb @@ -69,7 +69,7 @@ RSpec.describe "Navigating to message", type: :system, js: true do click_button(class: "chat-scroll-to-bottom") - expect(page).to have_content(link) + expect(page).to have_content(link, visible: :all) click_link(link)