npm install
npm install -g playwright
playwright install
npm run test
npm run play-report
After each upgrade of Playwright, the project must be restarted locally with the command:
npm run reinstall
To download the latest versions of the Browsers.
To manually trigger a GitHub Actions workflow run, you can use cURL with the GitHub API. Follow the steps below:
-
Copy and paste the following cURL command into your terminal:
curl -H "Accept: application/vnd.github.everest-preview+json" \ -H "Authorization: token YOUR_PERSONAL_ACCESS_TOKEN" \ --request POST \ --data '{"event_type": "run"}' \ https://api.github.com/repos/YOUR_USERNAME/YOUR_REPOSITORY/dispatches
Make sure to replace
YOUR_PERSONAL_ACCESS_TOKEN
with your GitHub personal access token andYOUR_USERNAME/YOUR_REPOSITORY
with your GitHub username and repository name. -
Execute the cURL command in your terminal.
This command will trigger a GitHub Actions workflow run for the specified repository.