demo-bank-tests

Test Automation training form jaktestowac.pl

Links

Commands

  • check NodeJS version
    node -v
  • new project with Playwright:
    npm init playwright@latest
  • record tests for given site
    npx playwright codegen https://demo-bank.vercel.app/
  • run tests without browser GUI:
    npx playwright test
  • run test with browser GUI:
    npx playwright test --headed
  • viewing report
    npx playwright show-report

Playwright Config modifications

  • config file playwright.config.ts
  • disabling browsers, i.e. Firefox:
    // {
    //   name: 'firefox',
    //   use: {
    //     ...devices['Desktop Firefox'],
    //   },
    // },