Skip to content

GitTestingPat/Playwright_tests

Repository files navigation

Playwright Tests

This project contains automated tests using Playwright for various web workflows.

Project Structure

  • tests/: Main tests organized by functionality.
    • AutomatiostorePage/: Tests for https://automationteststore.com/
      • login.spec.ts: Login test.
      • email-already-registered.spec.ts: Registration test with an already-registered email.
    • example.spec.ts: Example Playwright tests.
  • tests-examples/: Additional test examples.
    • demo-todo-app.spec.ts: Tests for the TodoMVC demo app.
  • playwright.config.ts: Playwright configuration file.
  • .github/workflows/playwright.yml: Continuous integration setup using GitHub Actions.
  • playwright-report/: HTML reports generated by Playwright.
  • test-results/: Test execution results.
  • .gitignore: Files and directories ignored by Git.
  • package.json: Project dependencies and metadata.

Installation

  1. Clone the repository:
    git clone <repository-url>
    cd Playwright_tests
  2. Install dependencies:
    npm install
  3. Install Playwright browsers:
    npx playwright install --with-deps

Running Tests

To run all tests:

npx playwright test

To run a specific test:

npx playwright test tests/AutomatiostorePage/login.spec.ts

HTML reports are generated in the playwright-report/ folder.

Continuous Integration

Tests are automatically executed in GitHub Actions using the workflow defined in .github/workflows/playwright.yml.

Resources


Author:
This project was created for example automated testing purposes.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published