Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide a higher level API for asserting against browser console log #591

Open
dkarlovi opened this issue Mar 2, 2023 · 0 comments
Open

Comments

@dkarlovi
Copy link

dkarlovi commented Mar 2, 2023

See #339 (comment)

  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');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant