https://github.com/browserstack/node-js-playwright-browserstack
Creating a sample repo for different Playwright languages and runners
https://github.com/browserstack/node-js-playwright-browserstack
Last synced: 11 months ago
JSON representation
Creating a sample repo for different Playwright languages and runners
- Host: GitHub
- URL: https://github.com/browserstack/node-js-playwright-browserstack
- Owner: browserstack
- Created: 2022-12-08T06:52:37.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2025-02-27T10:50:51.000Z (about 1 year ago)
- Last Synced: 2025-04-22T21:06:28.234Z (11 months ago)
- Language: JavaScript
- Size: 256 KB
- Stars: 16
- Watchers: 10
- Forks: 40
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
# node-js-playwright-browserstack
This repo contains samples for running [Playwright](https://playwright.dev/docs/intro) tests on BrowserStack using the browserstack-node-sdk.

## Setup
* Clone the repo `git clone -b sdk https://github.com/browserstack/node-js-playwright-browserstack.git` and run `cd node-js-playwright-browserstack`.
* Set `BROWSERSTACK_USERNAME` and `BROWSERSTACK_ACCESS_KEY` as environment variables with your [BrowserStack Username and Access Key](https://www.browserstack.com/accounts/settings) or update the same in `browserstack.yml` file.
* Run `npm i` to install the dependencies.
## Running your tests
- To run the sample tests in parallel across the platforms specified in the `browserstack.yml`, run `npm run sample-test`.
- To run the sample local tests in parallel across the platforms specified in the `browserstack.yml`, run `npm run sample-local-test`.
## Notes
* You can view your test results on the [BrowserStack Automate dashboard](https://www.browserstack.com/automate)
* Understand how many parallel sessions you need by using our [Parallel Test Calculator](https://www.browserstack.com/automate/parallel-calculator?ref=github)