Skip to content
This repository was archived by the owner on Jul 14, 2025. It is now read-only.

Commit a3ce637

Browse files
DEV: Tweak has_content? check (#654)
discourse/discourse#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.
1 parent 812a33a commit a3ce637

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/system/page_objects/pages/topic.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def has_assignment_action?(args)
6767
post_content.gsub!(%r{<a[^>]*>(.*?)</a>}, '\1')
6868
end
6969

70-
container.has_content?(post_content)
70+
container.has_content?(:all, post_content)
7171
end
7272
end
7373
end

0 commit comments

Comments
 (0)