FIX: flakey spec due to autocomplete (#19598)

The autocomplete could show and hide the invite link causing the test to fail. Clicking the composer input forces the autocomplete disappear.
This commit is contained in:
Joffrey JAFFEUX 2022-12-23 01:35:02 +01:00 committed by GitHub
parent 2c295f76fe
commit f1e808153c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -37,6 +37,7 @@ RSpec.describe "JIT messages", type: :system, js: true do
it "displays a mention warning" do
chat.visit_channel(private_channel_1)
find(".chat-composer-input").fill_in(with: "hi @#{other_user.username}")
find(".chat-composer-input").click
find(".send-btn").click
expect(page).to have_content(