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.
This commit is contained in:
Martin Brennan 2025-04-04 11:55:17 +10:00
parent 812a33a085
commit 4caf93b74e
No known key found for this signature in database
GPG Key ID: BD981EFEEC8F5675
1 changed files with 1 additions and 1 deletions

View File

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