Debugging tests can often be a pain, but using those snippets it's possible to get a lot of informations when using BrowserTestBase
or JavascriptTestBase
.
Sometimes you'll want to inspect the HTML of the page or a specific element. There is no official method for this yet but the following works:
$this->assertEquals('', $this->getSession()->getPage()->getHTML());