Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/grandel-dsouza/percy-with-playwright-on-browserstack

This is a sample code repository prepared by grandEL for running percy with playwright on BrowserStack with a custom framework of importing URLS from a JSON file
https://github.com/grandel-dsouza/percy-with-playwright-on-browserstack

browserstack browserstack-automate grandel grandeldsouza percy playwright playwright-nodejs

Last synced: 4 days ago
JSON representation

This is a sample code repository prepared by grandEL for running percy with playwright on BrowserStack with a custom framework of importing URLS from a JSON file

Awesome Lists containing this project

README

        

# Percy-with-Playwright-on-BrowserStack

This is a sample code repository prepared by grandEL for running percy with playwright on BrowserStack with a custom framework of importing URLS from a JSON file

ode-js-playwright-browserstackThis 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/grandEL-dsouza/Percy-with-Playwright-on-BrowserStack/` and run `cd Percy-with-Playwright-on-BrowserStack`.
* Set `BROWSERSTACK_USERNAME` and `BROWSERSTACK_ACCESS_KEY` in `browserstack.yml` file.
* Run `npm i` to install the dependencies.
Run `npm fs`

Run `npm install --save @percy/cli`
Install the relevant SDK
`npm install @percy/playwright`
Create Percy token and export the token
export PERCY_TOKEN=""

## Running your tests
- To run the sample tests in parallel across the platforms specified in the `browserstack.yml`, run `npx percy exec -- npm run sample-test
`.