FIX: multiple delete themes spec fail in parallel (#23837)

We cannot rely on name in parallel execution as fabricators are adding number
This commit is contained in:
Krzysztof Kotlarek 2023-10-09 12:04:45 +11:00 committed by GitHub
parent 110197423b
commit 1d3b2d6bd4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -33,9 +33,9 @@ describe "Admin Customize Themes", type: :system do
admin_customize_themes_page.click_delete_themes_button
expect(delete_themes_confirm_modal).to have_theme("Cool theme 1")
expect(delete_themes_confirm_modal).to have_theme("Cool theme 2")
expect(delete_themes_confirm_modal).to have_theme("Cool theme 3")
expect(delete_themes_confirm_modal).to have_theme(theme.name)
expect(delete_themes_confirm_modal).to have_theme(theme_2.name)
expect(delete_themes_confirm_modal).to have_theme(theme_3.name)
delete_themes_confirm_modal.confirm
expect(admin_customize_themes_page).to have_no_inactive_themes