- $this->get('/login')->assertElementContains('footer a[href="https://example.com/link-a"]', 'My custom link');
- $this->asEditor()->get('/')->assertElementContains('footer a[href="https://example.com/link-b"]', 'Another link');
+ $resp = $this->get('/login');
+ $this->withHtml($resp)->assertElementContains('footer a[href="https://example.com/link-a"]', 'My custom link');
+
+ $resp = $this->asEditor()->get('/');
+ $this->withHtml($resp)->assertElementContains('footer a[href="https://example.com/link-b"]', 'Another link');