DEV: Skip flakey network disconnected spec (#23087)
This commit is contained in:
parent
61571bee43
commit
bd7a10d705
|
@ -11,19 +11,24 @@ 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
|
||||||
SiteSetting.enable_offline_indicator = true
|
skip(<<~TEXT)
|
||||||
|
# In CI this test will randomly flake - timing issue with the offline indicator
|
||||||
|
# not being rendered soon enough after network conditions change
|
||||||
|
|
||||||
visit("/c")
|
SiteSetting.enable_offline_indicator = true
|
||||||
|
|
||||||
expect(page).to have_no_css("html.network-disconnected")
|
visit("/c")
|
||||||
expect(page).to have_no_css(".offline-indicator")
|
|
||||||
|
|
||||||
with_network_disconnected do
|
expect(page).to have_no_css("html.network-disconnected")
|
||||||
# Message bus connectivity services adds the disconnected class to the DOM
|
expect(page).to have_no_css(".offline-indicator")
|
||||||
expect(page).to have_css("html.network-disconnected")
|
|
||||||
|
|
||||||
# Offline indicator is rendered
|
with_network_disconnected doskip(<<~TEXT)
|
||||||
expect(page).to have_css(".offline-indicator")
|
# Message bus connectivity services adds the disconnected class to the DOM
|
||||||
end
|
expect(page).to have_css("html.network-disconnected")
|
||||||
|
|
||||||
|
# Offline indicator is rendered
|
||||||
|
expect(page).to have_css(".offline-indicator")
|
||||||
|
end
|
||||||
|
TEXT
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue