Codeception's default acceptance testing module - the PhpBrowser - will not actually test our webpages using a proper browser. So, whilst it will be happily able to browse your webpages, it won't truthfully be a real world / human viewing your site type experience.
The inverse of this situation will throw the unexpected error. That is, if the text is hidden by your CSS stylesheet, and you ask Codeception to ensure it does not see:
Then it will confusingly still see it, because the text is there in the HTML. Codeception's PhpBrowser doesn't truly use your web page like a human.
Of course, I wouldn't be telling you all this if we didn't have a handy fix for this problem, so watch on to find out exactly how we can work round this.