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.
This commit is contained in:
Joffrey JAFFEUX 2023-05-15 07:52:02 +02:00 committed by GitHub
parent 53d99d1a26
commit 64971e5972
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -69,7 +69,7 @@ RSpec.describe "Navigating to message", type: :system, js: true do
click_button(class: "chat-scroll-to-bottom") click_button(class: "chat-scroll-to-bottom")
expect(page).to have_content(link) expect(page).to have_content(link, visible: :all)
click_link(link) click_link(link)