Skip to content

PecodeAutomation/POC_Example

Repository files navigation

POC_Example

Automated e2e tests

POC is created with:

  • Playwright/TypeScript
  • Page Object pattern

How do I get set up?

npm install

Directory structure

  • tests - contains e2e test files
  • pages - contains the page selectors and uses them to create methods such as create something new, edit something, delete something etc.
  • fixtures - allows to put reusable behavior such as custom commands or global overrides to extended test function that you want applied and available to all of your tests
  • playwright.config.ts - This file is used to store any configuration values you supply.

Run the Application

  • Run all tests with an open browser

"npm run pw:headed",

  • Run all tests without a browser

"npm run pw:headless"

  • Run tests in UI mode

"npm run pw:ui"

  • Run all tests on a desktop browser in headed mode

"pw:headed:chromium"

  • Run all tests on a desktop browser in headless mode

"pw:headless:chromium"

  • Run all tests on a browser with mobile viewport in headed mode

"pw:headed:mobile"

  • Run all tests on a browser with mobile viewport in headless mode

"pw:headless:mobile"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published