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:
parent
812a33a085
commit
a3ce637f49
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue