Skip to content

mahi-kz72/playwrightProject

Repository files navigation

Description: Porpuse of this project is setting up the Playwright and its infrastructure.

Prerequisites:

  • Node.js and npm (or yarn) installed
  • Playwright installed: npm install playwright

Installation:

  1. Clone the repository
  2. Navigate to project directory: cd playwright-project
  3. Install dependencies: npm install

Commands: After installation complete, start testing using one of the following commands:

  1. Run tests in interactive UI mode, with a built-in watch mode : npm run ui
  2. Run tetst in headless: npx playwright test
  3. Run tests in headed browsers : npx playwright --headed
  4. Run in debug mode with Playwright Inspector: npx playwright debug
  5. See your test result with following command : npx playwright test-result

Project Structure:

playwright-project/
├── package.json
├── tests/
│   ├── pom/
│   │   ├── pricePages.js
│   │   └── ...
│   └── testData
│   ├── pricePage/
│   │   ├──price.spec.ts
│   └── ...
├── .gitignore
└── README.md
...

Husky, ESLint, and Prettier

We use a mix of Husky, ESLint and Prettier within our repository to help enforce consistent coding practices. Husky is a tool that will install a pre-commit hook to run the linter any time before you attempt to make a commit. This replaces the old pre-commit hook that was used before. to install the pre-commit hook you will need to run

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published