From 9d7f374c0f05c01d7fdb133949f14310c375d0a3 Mon Sep 17 00:00:00 2001 From: Penar Musaraj Date: Wed, 22 May 2024 11:59:47 -0400 Subject: [PATCH] DEV: Fix a flakey test, skip another one (#27132) --- spec/system/editing_sidebar_categories_navigation_spec.rb | 2 +- spec/system/user_tips_spec.rb | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/system/editing_sidebar_categories_navigation_spec.rb b/spec/system/editing_sidebar_categories_navigation_spec.rb index f9b9252a8ae..de53872afa9 100644 --- a/spec/system/editing_sidebar_categories_navigation_spec.rb +++ b/spec/system/editing_sidebar_categories_navigation_spec.rb @@ -246,7 +246,7 @@ RSpec.describe "Editing sidebar categories navigation", type: :system do end end - it "loads all the categories eventually" do + xit "loads all the categories eventually" do visit "/latest" expect(sidebar).to have_categories_section diff --git a/spec/system/user_tips_spec.rb b/spec/system/user_tips_spec.rb index db187c08c09..2d73155b7ea 100644 --- a/spec/system/user_tips_spec.rb +++ b/spec/system/user_tips_spec.rb @@ -40,9 +40,9 @@ describe "Homepage", type: :system do text: "Your first notification!", ) - find(".d-header").click + # Find an element with no action to simulate clicking outside the user tip + find("th.topic-list-data span", text: "Topic").click - # Clicking outside element dismisses the tip expect(page).to have_no_css( ".fk-d-tooltip__content .user-tip__title", text: "Your first notification!",