A platform for community discussion. Free, open, simple.
DEV: Skip flaky network disconnected test (#21945)
Alan Guo Xiang Tan5af2f4b888ab
diff --git a/spec/system/network_disconnected_spec.rb b/spec/system/network_disconnected_spec.rbindex df658088a4d..4cd675cd725 100644--- a/spec/system/network_disconnected_spec.rb+++ b/spec/system/network_disconnected_spec.rb@@ -3,13 +3,23 @@RSpec.describe "Network Disconnected", type: :system, js: true dofab!(: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_disconnectedpage.driver.browser.network_conditions = { offline: true }yieldpage.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" doSiteSetting.enable_offline_indicator = truevisit("/c")