This repository allows you to build a PlayWright Docker image and run it from Docker on BrowserStack
-
Download and install Docker Desktop from https://docs.docker.com/get-docker/ and open the application to start the Docker
-
Clone the repo
git clone https://github.com/SachinMNair/PL-BS-Docker.git
-
Build Docker image
docker build -t <docker_image_name> .
-
Check if the image is created
docker image ls
-
Run the docker image that will run PlayWright test on BrowserStack
docker run --env BROWSERSTACK_USERNAME=<BrowserStack_username> --env BROWSERSTACK_ACCESS_KEY=<BrowserStack_access_key> -it <docker_image_name>:latest npm run test
- Go to the Automate Dashboard to check the Automation test/build
http://automate.browserstack.com/