DEV: skips two flakey specs (#24044)

This commit is contained in:
Joffrey JAFFEUX 2023-10-22 18:50:04 +02:00 committed by GitHub
parent 53c23cf929
commit 7c057878e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 8 deletions

View File

@ -35,13 +35,12 @@ RSpec.describe "Channel - Info - Members page", type: :system do
channel_1.add(current_user)
channel_1.add(Fabricate(:user, username: "cat"))
98.times { channel_1.add(Fabricate(:user)) }
end
it "shows all members" do
Jobs.run_immediately!
channel_1.update!(user_count_stale: true)
Jobs::Chat::UpdateChannelUserCount.new.execute(chat_channel_id: channel_1.id)
end
xit "shows all members" do
chat_page.visit_channel_members(channel_1)
expect(page).to have_selector(".chat-channel-members__list-item", count: 60)
@ -57,10 +56,6 @@ RSpec.describe "Channel - Info - Members page", type: :system do
context "with filter" do
it "filters members" do
Jobs.run_immediately!
channel_1.update!(user_count_stale: true)
Jobs::Chat::UpdateChannelUserCount.new.execute(chat_channel_id: channel_1.id)
chat_page.visit_channel_members(channel_1)
find(".chat-channel-members__filter").fill_in(with: "cat")

View File

@ -131,7 +131,7 @@ RSpec.describe "Navigation", type: :system do
end
context "when opening a thread from the thread list" do
it "goes back to the thread list when clicking the back button" do
xit "goes back to the thread list when clicking the back button" do
skip("Flaky on CI") if ENV["CI"]
visit("/chat")