Skip to content

A platform for community discussion. Free, open, simple.

DEV: Unskip flaky editing sidebar nav menu categories on mobile test (#24412)

Alan Guo Xiang Tanc2295b9d5d30
diff --git a/spec/system/editing_sidebar_categories_navigation_spec.rb b/spec/system/editing_sidebar_categories_navigation_spec.rb
index c7cea8608b1..b7ae3bd0b98 100644
--- a/spec/system/editing_sidebar_categories_navigation_spec.rb
+++ b/spec/system/editing_sidebar_categories_navigation_spec.rb
@@ -24,7 +24,7 @@ RSpec.describe "Editing sidebar categories navigation", type: :system do
before { sign_in(user) }
shared_examples "a user can edit the sidebar categories navigation" do |mobile|
- xit "allows a user to edit the sidebar categories navigation", mobile: mobile do
+ it "allows a user to edit the sidebar categories navigation", mobile: mobile do
visit "/latest"
sidebar.open_on_mobile if mobile
diff --git a/spec/system/page_objects/components/navigation_menu/sidebar.rb b/spec/system/page_objects/components/navigation_menu/sidebar.rb
index 5c262651944..0be51b8d7aa 100644
--- a/spec/system/page_objects/components/navigation_menu/sidebar.rb
+++ b/spec/system/page_objects/components/navigation_menu/sidebar.rb
@@ -6,7 +6,7 @@ module PageObjects
class Sidebar < Base
def open_on_mobile
click_button("toggle-hamburger-menu")
- page.has_no_css?("div.menu-panel.animating")
+ wait_for_animation(find("div.menu-panel"))
end
def visible?