Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/grandel-dsouza/percy-with-playwright-on-browserstack
- Owner: grandEL-dsouza
- Created: 2024-09-12T15:31:04.000Z (about 2 months ago)
- Default Branch: main
- Last Pushed: 2024-09-12T15:46:38.000Z (about 2 months ago)
- Last Synced: 2024-11-02T17:06:17.088Z (4 days ago)
- Topics: browserstack, browserstack-automate, grandel, grandeldsouza, percy, playwright, playwright-nodejs
- Language: JavaScript
- Homepage:
- Size: 70.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
`.