DEV: Skip flakey network disconnected spec (#23087)

This commit is contained in:
Mark VanLandingham 2023-08-14 12:24:16 -05:00 committed by GitHub
parent 61571bee43
commit bd7a10d705
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 15 additions and 10 deletions

View File

@ -11,6 +11,10 @@ RSpec.describe "Network Disconnected", type: :system do
end end
it "NetworkConnectivity service adds class to DOM and displays offline indicator" do it "NetworkConnectivity service adds class to DOM and displays offline indicator" do
skip(<<~TEXT)
# In CI this test will randomly flake - timing issue with the offline indicator
# not being rendered soon enough after network conditions change
SiteSetting.enable_offline_indicator = true SiteSetting.enable_offline_indicator = true
visit("/c") visit("/c")
@ -18,12 +22,13 @@ RSpec.describe "Network Disconnected", type: :system do
expect(page).to have_no_css("html.network-disconnected") expect(page).to have_no_css("html.network-disconnected")
expect(page).to have_no_css(".offline-indicator") expect(page).to have_no_css(".offline-indicator")
with_network_disconnected do with_network_disconnected doskip(<<~TEXT)
# Message bus connectivity services adds the disconnected class to the DOM # Message bus connectivity services adds the disconnected class to the DOM
expect(page).to have_css("html.network-disconnected") expect(page).to have_css("html.network-disconnected")
# Offline indicator is rendered # Offline indicator is rendered
expect(page).to have_css(".offline-indicator") expect(page).to have_css(".offline-indicator")
end end
TEXT
end end
end end