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.rbindex 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 dobefore { 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 dovisit "/latest"sidebar.open_on_mobile if mobilediff --git a/spec/system/page_objects/components/navigation_menu/sidebar.rb b/spec/system/page_objects/components/navigation_menu/sidebar.rbindex 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 PageObjectsclass Sidebar < Basedef open_on_mobileclick_button("toggle-hamburger-menu")- page.has_no_css?("div.menu-panel.animating")+ wait_for_animation(find("div.menu-panel"))enddef visible?