Skip to content

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

DEV: Fix flaky system test (#34743)

Alan Guo Xiang Tan568bf653ea83
diff --git a/spec/system/admin_customize_components_config_area_spec.rb b/spec/system/admin_customize_components_config_area_spec.rb
index e458fc301e0..c059d660d0a 100644
--- a/spec/system/admin_customize_components_config_area_spec.rb
+++ b/spec/system/admin_customize_components_config_area_spec.rb
@@ -326,7 +326,7 @@ describe "Admin Customize Themes Config Area Page", type: :system do
Fabricate.times(4, :theme, component: true)
stub_const(Admin::Config::CustomizeController, "PAGE_SIZE", 4) do
- resize_window(height: 800) do
+ resize_window(height: 400) do
config_area.visit
expect(config_area).to have_exactly_n_components(4)