From beb91e1707179d138018787e855089b7775e4020 Mon Sep 17 00:00:00 2001 From: Alan Guo Xiang Tan Date: Tue, 18 Jul 2023 07:26:12 +0800 Subject: [PATCH] DEV: Skip two flaky system tests (#22651) Why this change? These tests have shown to be flaky and are being skipped for now while we look into it. --- plugins/chat/spec/system/thread_tracking/drawer_spec.rb | 6 ++++++ spec/system/category_topics_spec.rb | 7 +++++++ 2 files changed, 13 insertions(+) diff --git a/plugins/chat/spec/system/thread_tracking/drawer_spec.rb b/plugins/chat/spec/system/thread_tracking/drawer_spec.rb index e8a565b78a0..b07cea73578 100644 --- a/plugins/chat/spec/system/thread_tracking/drawer_spec.rb +++ b/plugins/chat/spec/system/thread_tracking/drawer_spec.rb @@ -53,6 +53,12 @@ describe "Thread tracking state | drawer", type: :system do end it "shows unread indicators for the header icon and the list when a new unread arrives" do + skip(<<~TEXT) + Flaky at the following assertion: + + expected `#.has_unread_item?(2)` to be truthy, got false + TEXT + thread.membership_for(current_user).update!(last_read_message_id: message_2.id) visit("/") chat_page.open_from_header diff --git a/spec/system/category_topics_spec.rb b/spec/system/category_topics_spec.rb index 1544ac27cdc..d058ffcb272 100644 --- a/spec/system/category_topics_spec.rb +++ b/spec/system/category_topics_spec.rb @@ -7,6 +7,13 @@ describe "Viewing top topics on categories page", type: :system, js: true do fab!(:topic) { Fabricate(:topic, category: category) } it "displays and updates new counter" do + skip(<<~TEXT) + Flaky at the following step: + + expect(category_list).to have_no_new_posts_badge + expected `#.has_no_new_posts_badge?` to be truthy, got false + TEXT + sign_in(user) visit("/categories")