DEV: Fix flaky test when editing category logo image (#33961)

Introduced in 497bfec3a9.

This test was flaky due to the page having multiple uploaders on the same page, so the `have_css(".uploaded-image-preview.input-xxlarge")` check will always be true for the entire page. It would sometimes work correctly depending on if the uploader managed to finish quickly enough.
This commit is contained in:
Gary Pendergast
2025-07-30 13:33:41 +10:00
committed by GitHub
parent dd710bad2f
commit c53cf93225
+1 -1
View File
@@ -26,7 +26,7 @@ describe "Edit Category Images", type: :system do
)
expect(page).to have_content("uploaded successfully").or have_css(
".uploaded-image-preview.input-xxlarge",
".has-image .uploaded-image-preview.input-xxlarge",
)
upload = Upload.last