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

Facilitating automation with browser-specific configuration #10823

Open
jugglinmike opened this issue May 3, 2018 · 1 comment
Open

Facilitating automation with browser-specific configuration #10823

jugglinmike opened this issue May 3, 2018 · 1 comment

Comments

@jugglinmike
Copy link
Contributor

jugglinmike commented May 3, 2018

In gh-10742 web-platform-tests/results-collection#552, @jgraham wrote:

In general I wish we would put these flags in wptrunner directly rather than having special configuration here.

Since this will expose less authentic behavior, I presume the functionality should be opt-in. Two implementations come to mind:

  • Enable all known automation-enabling flags (regardless of the test being executed) via a new command-line option (e.g. wpt run --max-automation firefox)
  • Via per-test metadata (e.g. <meta name="automation" content="autoplay,usermedia">)

The latter will be less ergonomic to write and slower to execute, and it likely requires more infrastructural change. Still, it's appealing because it improves the descriptive quality of each test and it allows us to run tests in the most authentic configuration as is possible.

We could also combine the two solutions, requiring per-test metadata but only honoring it in the presence of a new CLI option.

@jugglinmike
Copy link
Contributor Author

On second thought, this functionality may not be sufficiently distinct from the feature being discussed at gh-10452. I've asked folks there to help decide.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants