DEV: more resilient scroll to bottom spec (#21467)
The spec now checks we are in the state we expect to be before clicking bottom button. The bottom button could show while it's still loading and on slow systems cause failures.
This commit is contained in:
parent
17603794b5
commit
7a84fc3d9d
|
@ -62,7 +62,15 @@ RSpec.describe "Navigating to message", type: :system, js: true do
|
|||
chat_page.visit_channel(channel_1)
|
||||
|
||||
click_link(link)
|
||||
|
||||
expect(page).to have_css(
|
||||
".chat-message-container.highlighted[data-id='#{first_message.id}']",
|
||||
)
|
||||
|
||||
click_button(class: "chat-scroll-to-bottom")
|
||||
|
||||
expect(page).to have_content(link)
|
||||
|
||||
click_link(link)
|
||||
|
||||
expect(page).to have_css(
|
||||
|
|
Loading…
Reference in New Issue