-
Notifications
You must be signed in to change notification settings - Fork 146
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
Add playwright to js-environments #624
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some remarks mostly on grammar. LGTM otherwise.
doc/project/js-environments.md
Outdated
@@ -69,6 +69,51 @@ jsEnv := PhantomJSEnv(args = Seq("arg1", "arg2")).value | |||
For more options of the PhantomJS environment, see | |||
[the Scaladoc of `PhantomJSEnv`]({{ site.production_url }}/api/sbt-scalajs-env-phantomjs/1.0.0/org/scalajs/jsenv/phantomjs/sbtplugin/PhantomJSEnvPlugin$$autoImport$.html). | |||
|
|||
## Playwright | |||
[Playwright](https://playwright.dev/) is a comprehensive testing library, enabling automation of Chromium, Firefox, and WebKit browsers. It supports multiple platforms and languages, including Mobile Web, making it an optimal choice for testing JavaScript in real browser environments. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We keep one sentence per line for easier diffs later on:
[Playwright](https://playwright.dev/) is a comprehensive testing library, enabling automation of Chromium, Firefox, and WebKit browsers. It supports multiple platforms and languages, including Mobile Web, making it an optimal choice for testing JavaScript in real browser environments. | |
[Playwright](https://playwright.dev/) is a comprehensive testing library, enabling automation of Chromium, Firefox, and WebKit browsers. | |
It supports multiple platforms and languages, including Mobile Web, making it an optimal choice for testing JavaScript in real browser environments. |
doc/project/js-environments.md
Outdated
## Playwright | ||
[Playwright](https://playwright.dev/) is a comprehensive testing library, enabling automation of Chromium, Firefox, and WebKit browsers. It supports multiple platforms and languages, including Mobile Web, making it an optimal choice for testing JavaScript in real browser environments. | ||
|
||
[`scala-js-env-playwright`](https://github.com/gmkumar2005/scala-js-env-playwright) is an independent project that offers jsEnv and employs Playwright for JavaScript execution. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[`scala-js-env-playwright`](https://github.com/gmkumar2005/scala-js-env-playwright) is an independent project that offers jsEnv and employs Playwright for JavaScript execution. | |
[`scala-js-env-playwright`](https://github.com/gmkumar2005/scala-js-env-playwright) is an independent project that offers a `JSEnv` that uses Playwright for JavaScript execution. |
doc/project/js-environments.md
Outdated
jsEnv := new PWEnv( | ||
browserName = "chrome", | ||
headless = true, | ||
showLogs = true | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
jsEnv := new PWEnv( | |
browserName = "chrome", | |
headless = true, | |
showLogs = true | |
) | |
jsEnv := new PWEnv( | |
browserName = "chrome", | |
headless = true, | |
showLogs = true | |
) |
doc/project/js-environments.md
Outdated
|
||
[`scala-js-env-playwright`](https://github.com/gmkumar2005/scala-js-env-playwright) is an independent project that offers jsEnv and employs Playwright for JavaScript execution. | ||
|
||
The playwright based `jsEnv` can be enabled by adding following settings in build.sbt |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The playwright based `jsEnv` can be enabled by adding following settings in build.sbt | |
The playwright-based `jsEnv` can be enabled by adding the following settings in `build.sbt` |
doc/project/js-environments.md
Outdated
showLogs = true | ||
) | ||
``` | ||
Addtionally it requires following line in `project/plugins.sbt`: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Addtionally it requires following line in `project/plugins.sbt`: | |
Addtionally it requires the following line in `project/plugins.sbt`: |
doc/project/js-environments.md
Outdated
libraryDependencies += "io.github.gmkumar2005" %% "scala-js-env-playwright" % "0.1.8" | ||
``` | ||
|
||
The `browserName` parameter accepts `chrome` , `chromium` , `firefox`, and `webkit` as possible options. Please be aware that webkit support is currently in an experimental stage. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The `browserName` parameter accepts `chrome` , `chromium` , `firefox`, and `webkit` as possible options. Please be aware that webkit support is currently in an experimental stage. | |
The `browserName` parameter accepts `chrome` , `chromium` , `firefox`, and `webkit` as possible options. | |
Please be aware that webkit support is currently in an experimental stage. |
doc/project/js-environments.md
Outdated
The `browserName` parameter accepts `chrome` , `chromium` , `firefox`, and `webkit` as possible options. Please be aware that webkit support is currently in an experimental stage. | ||
|
||
### In browser debugging | ||
To maintain the browser window open post-execution, simply incorporate the `withKeepAlive` option into the environment. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"simply" never adds real meaning to a sentence; it should be removed:
To maintain the browser window open post-execution, simply incorporate the `withKeepAlive` option into the environment. | |
To maintain the browser window open post-execution, add the `withKeepAlive` option into the environment. |
doc/project/js-environments.md
Outdated
|
||
``` | ||
### Headless Usage | ||
Running in headless mode is crucial for operations within Docker containers and build servers. By default, `scala-js-env-playwright` operates in headless mode. However, for debugging purposes, you can set headless to `false`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Running in headless mode is crucial for operations within Docker containers and build servers. By default, `scala-js-env-playwright` operates in headless mode. However, for debugging purposes, you can set headless to `false`. | |
Running in headless mode is crucial for operations within Docker containers and build servers. | |
By default, `scala-js-env-playwright` operates in headless mode. | |
However, for debugging purposes, you can set headless to `false`. |
All recommendations done |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
Adding details of Playwright based js environment.