UI/API/Integration automation tests based on specification
GAD🦎 - Application for learning testing GUI and API (https://github.com/jaktestowac/gad-gui-api-demo)
- GUI
- API
- Tools
- Playwright
- Documentation
- Scripts
- VS Code
- Node.js
- GIT
- Prettier
- ESLint
- Husky
- VS Code
- Git
- Node.js (version >16)
- (optional) install VSC recommended plugins
- install dependencies:
npm install
- setup Playwright with:
npx playwright install --with-deps chromium
- setup husky with:
npx husky install
- prepare local env file:
cp .env-template .env
- copy application main URL as value of
BASE_URL
variable in.env
file
Run all tests:
npx playwright test
Run all tests with tags:
npx playwright test --grep "@GAD-R01-02"
Run all tests without tags:
npx playwright test --grep-invert "@GAD-R01"
For more usage cases look in package.json
scripts section.