8000 GitHub - saasaa831/playwright-github-action: GitHub Action for running Playwright tests in CI/CD workflows
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

saasaa831/playwright-github-action

 
 

Repository files navigation

playwright-github-action

  • Integrate Playwright tests with GitHub Actions workflows to easily run API and end-to-end tests across multiple browsers and platforms.

  • Page Object Model (POM) is used in test automation to reduce code duplication and improve test maintenance.

  • Several useful commands to run locally:

    1. Runs the end-to-end tests: npx playwright test
    2. Starts the interactive UI mode: npx playwright test --ui
    3. Runs the tests only on Desktop Chrome: npx playwright test --project=chromium
    4. Runs the tests in a specific file: npx playwright test example
    5. Runs the tests in debug mode: npx playwright test --debug
    6. Auto generate tests with Codegen: npx playwright codegen
  • On the workflow details page, click the “Run workflow” button in the dialog box to start the workflow manually

📗 Here's saucedemo-tests, which tests login, checkout, etc.

npx playwright test tests/saucedemo-tests

Saucedemo Tests

About

GitHub Action for running Playwright tests in CI/CD workflows

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 100.0%
0