DEV: fix flaky admin_customize_themes spec (#26798)

Because spec is searching for "5", we need to be sure that "Cool theme 5" is created.
This commit is contained in:
Krzysztof Kotlarek 2024-04-29 13:39:14 +10:00 committed by GitHub
parent da329d54af
commit 0bfa37eb2d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ describe "Admin Customize Themes", type: :system do
end
it "switching between themes and components tabs keeps the search visible only if both tabs have at least 10 items" do
6.times { Fabricate(:theme) }
(1..6).each { |number| Fabricate(:theme, component: false, name: "Cool theme #{number}") }
(1..5).each { |number| Fabricate(:theme, component: true, name: "Cool component #{number}") }
visit("/admin/customize/themes")