panther
panther copied to clipboard
Provide a higher level API for asserting against browser console log
See https://github.com/symfony/panther/issues/339#issuecomment-757772947
- works only on Chrome currently (not sure if that's state of the art)
- needs a nice way to request the capabilities when creating the client (maybe can be auto-requested?)
- needs an API to assert against the console content, which is
list<array{level: "INFO"|"WARNING"|"SEVERE", message: string, source: "console-api", timestamp: int}>
Initial API proposal
$this->assertBrowserConsoleSevereLogIsEmpty();
$this->assertBrowserConsoleInfoLogContains('hello world');