DEV: Tweak has_content? check (#654)

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.
This commit is contained in:
Martin Brennan 2025-04-04 12:14:14 +10:00 committed by GitHub
parent 812a33a085
commit a3ce637f49
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -67,7 +67,7 @@ module PageObjects
post_content.gsub!(%r{<a[^>]*>(.*?)</a>}, '\1') post_content.gsub!(%r{<a[^>]*>(.*?)</a>}, '\1')
end end
container.has_content?(post_content) container.has_content?(:all, post_content)
end end
end end
end end