From 4caf93b74e0c9c44a6ab61ea9bac8df6bea55126 Mon Sep 17 00:00:00 2001 From: Martin Brennan Date: Fri, 4 Apr 2025 11:55:17 +1000 Subject: [PATCH] DEV: Tweak has_content? check https://github.com/discourse/discourse/pull/32145 in core changes the mentions a bit and introduces inline-flex, which means that part of the content is not visible according to capybara. Checking for `:all` fixes this. --- spec/system/page_objects/pages/topic.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/system/page_objects/pages/topic.rb b/spec/system/page_objects/pages/topic.rb index 81f0a0c..1622e7d 100644 --- a/spec/system/page_objects/pages/topic.rb +++ b/spec/system/page_objects/pages/topic.rb @@ -67,7 +67,7 @@ module PageObjects post_content.gsub!(%r{]*>(.*?)}, '\1') end - container.has_content?(post_content) + container.has_content?(:all, post_content) end end end