A platform for community discussion. Free, open, simple.
DEV: fix flaky admin_customize_themes spec (#26842)
Krzysztof Kotlarek3c4a15a35f39
diff --git a/spec/system/admin_customize_themes_spec.rb b/spec/system/admin_customize_themes_spec.rbindex 1ef231e9553..28932e06c4c 100644--- a/spec/system/admin_customize_themes_spec.rb+++ b/spec/system/admin_customize_themes_spec.rb@@ -2,7 +2,7 @@describe "Admin Customize Themes", type: :system dofab!(:color_scheme)- fab!(:theme)+ fab!(:theme) { Fabricate(:theme, name: "Cool theme 1") }fab!(:admin) { Fabricate(:admin, locale: "en") }let(:admin_customize_themes_page) { PageObjects::Pages::AdminCustomizeThemes.new }@@ -10,8 +10,8 @@ describe "Admin Customize Themes", type: :system dobefore { sign_in(admin) }describe "when visiting the page to customize themes" do- fab!(:theme_2) { Fabricate(:theme) }- fab!(:theme_3) { Fabricate(:theme) }+ fab!(:theme_2) { Fabricate(:theme, name: "Cool theme 2") }+ fab!(:theme_3) { Fabricate(:theme, name: "Cool theme 3") }let(:delete_themes_confirm_modal) { PageObjects::Modals::DeleteThemesConfirm.new }it "should allow admin to bulk delete inactive themes" do