In the context of BDD
and php
, I've been looking for a way to check that all resources on a page are loaded.
I thought about using the status code but it looks like the only status code I can check using mink
is the status code of the page itself like this:
$session->getStatusCode()
I'm looking for a way to make sure that the requests made to get the resources on the page (javascript, css, images etc.) also return status codes of 200.
Any idea on how to do that?