mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 03:40:00 +08:00
DEV: Skip flaky network disconnected test (#21945)
Follow up to c574d7c555
. Skipping the
entire file because both tests are flaky.
This commit is contained in:
parent
a98d2a8086
commit
5af2f4b888
|
@ -3,13 +3,23 @@
|
|||
RSpec.describe "Network Disconnected", type: :system, js: true do
|
||||
fab!(:current_user) { Fabricate(:user) }
|
||||
|
||||
before { skip(<<~TEXT) }
|
||||
This group of tests is flaky and needs to be fixed. Example of error:
|
||||
|
||||
Failures:
|
||||
|
||||
1) Network Disconnected Doesn't show the offline indicator when the site setting isn't present
|
||||
Failure/Error: expect(page).to have_css("html.message-bus-offline")
|
||||
expected to find css "html.message-bus-offline" but there were no matches
|
||||
TEXT
|
||||
|
||||
def with_network_disconnected
|
||||
page.driver.browser.network_conditions = { offline: true }
|
||||
yield
|
||||
page.driver.browser.network_conditions = { offline: false }
|
||||
end
|
||||
|
||||
xit "Message bus connectivity service adds class to DOM and displays offline indicator" do
|
||||
it "Message bus connectivity service adds class to DOM and displays offline indicator" do
|
||||
SiteSetting.enable_offline_indicator = true
|
||||
|
||||
visit("/c")
|
||||
|
|
Loading…
Reference in New Issue
Block a user