An open API service indexing awesome lists of open source software.

https://github.com/browserstack/typescript-playwright-browserstack

Creating a sample repo for different Playwright languages and runners
https://github.com/browserstack/typescript-playwright-browserstack

Last synced: 21 days ago
JSON representation

Creating a sample repo for different Playwright languages and runners

Awesome Lists containing this project

README

          

# typescript-playwright-browserstack
Creating a sample repo for different Playwright languages and runners

[Playwright](https://playwright.dev/docs/intro) Integration with BrowserStack.

![BrowserStack Logo](https://d98b8t1nnulk5.cloudfront.net/production/images/layout/logo-header.png?1469004780)

## Setup

* Clone the repo and run `cd typescript-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)
* Run `npm i`

## Running your tests

- To run a sample test, run `npm run sample-test`

## Run tests on locally hosted websites
* Run a website on http://localhost:5500
* Run `npm run sample-local-test`

Understand how many parallel sessions you need by using our [Parallel Test Calculator](https://www.browserstack.com/automate/parallel-calculator?ref=github)

## Notes
* You can view your test results on the [BrowserStack Automate dashboard](https://www.browserstack.com/automate)