This course is Master Playwright V1.41 + Docker, Cucumber, Jenkins - FEB'24

Run:

  1. Run 3 workers in parallel mode:
  • npx playwright test --workers 3 alt text
  1. Run specific test at specific browser
  • npx playwright test --headed --project=chromium
  1. Run specific test

    • npx playwright test hookTests.spec.ts --project=chromium --headed
  2. Install Luxon (https://www.npmjs.com/package/luxon)

    • npm install -D luxon
  3. Run test on smoke folder

    • In playwright config.ts : testDir: "./tests/smoke",
    • Run test: npx playwright test --headed --project=chromium
    • npx allure generate ./allure-results/ --clean
    • npx allure open ./allure-report/
  4. Clone project

    • Install dependency: npm install
    • Run test: npm run test