mirror of
https://github.com/discourse/discourse.git
synced 2026-08-07 11:45:21 -05:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user