Acceptance Testing and Javascript (Part 2 of 2)

Following on from the previous episode, in this screencast we look at how we can use Codeception to run Acceptance tests against code where various elements in the page will only be visible at run time.

This will eliminate the issue whereby we get a false positive from the PhpBrowser, but introduce a new issue that we will need to address to ensure our tests run and return as expected.

This will also highlight an issue with Codeception (which may have been fixed by the time you read / watch this), that sometimes the error messages that are reported back are not entirely accurate. But don't worry, it will be all right on the night!

Code For This Course

Get the code for this course.

Code For This Video

Get the code for this video.