Asserts that variable associated with a given name satisfies the given constraint
Asserts that screenshot of the page matches already approved one
page.assertScreenshot advanced options
Makes HTTP/S request and asserts that the response satisfies the given constraint.
The method automatically assigns the response text data to template variable PUPPETRY_LAST_RESPONSE_TEXT
Asserts that the HTTP/S response satisfies the given constraint
Asserts there were (no) console messages sent to console to satisfy the given constraint
Asserts there was called a dialog (alert, beforeunload, confirm or prompt).
This assertion makes Puppetry to intercept HTTP requests. It compares the given limits to the encoded length of the requests. Note that the request length is considered 0 when request loaded from cache. So it makes sense to place this step next to the very first page.goto in the test suite.