Wait a little to ensure attachments have loaded

This commit is contained in:
David Heinemeier Hansson
2025-11-02 08:19:22 +01:00
parent 8e48167774
commit 3bba72bf19
+2 -2
View File
@@ -61,8 +61,8 @@ class SmokeTest < ApplicationSystemTestCase
def assert_image_figure_attachment(content_type: "image/png", caption:)
assert_figure_attachment(content_type: content_type) do
assert_selector("img[src*='/rails/active_storage']")
assert_selector "figcaption input[placeholder='#{caption}']"
assert_selector "img[src*='/rails/active_storage']", wait: 5
assert_selector "figcaption input[placeholder='#{caption}']", wait: 5
end
end
end