panther icon indicating copy to clipboard operation
panther copied to clipboard

Provide a higher level API for asserting against browser console log

Open dkarlovi opened this issue 1 year ago • 0 comments

See https://github.com/symfony/panther/issues/339#issuecomment-757772947

  1. works only on Chrome currently (not sure if that's state of the art)
  2. needs a nice way to request the capabilities when creating the client (maybe can be auto-requested?)
  3. 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');

dkarlovi avatar Mar 02 '23 13:03 dkarlovi