Skip to content

A platform for community discussion. Free, open, simple.

DEV: Fix flake in category_templates_spec (#35274)

David Taylor0c254ba501ef
diff --git a/spec/system/composer/category_templates_spec.rb b/spec/system/composer/category_templates_spec.rb
index 8c1446b1fd1..2e6a573edf5 100644
--- a/spec/system/composer/category_templates_spec.rb
+++ b/spec/system/composer/category_templates_spec.rb
@@ -543,7 +543,7 @@ describe "Composer Form Templates", type: :system do
expect(find(".d-editor-preview")).to have_content(message)
attach_file("5-uploader", "#{Rails.root}/spec/fixtures/images/logo.png", make_visible: true)
- expect(find(".d-editor-preview")).to have_css("img")
+ expect(page).to have_css(".d-editor-preview img")
end
context "when using tagchooser" do