I am using playwright with typescript for limehome automation practice both Frontend and Api parts
System requirements:
- Node.js 18+
- Windows 10+, Windows Server 2016+ or Windows Subsystem for Linux (WSL).
- macOS 13 Ventura, or macOS 14 Sonoma.
- Debian 11, Debian 12, Ubuntu 20.04 or Ubuntu 22.04, Ubuntu 24.04, on x86-64 and arm64 architecture.
Prerequisites:
- Get npm and node installed on your machine. I recommend to use Node Version Manager https://github.com/nvm-sh/nvm
- Run
npm install
How to run all tests:
npm run test
OR
npx playwright test
OR
npm playwright test
OR
node ./node_modules/.bin/playwright test
How to validate Typescript:
npm run validate
How to fix and prettify Typescript:
npm run format
How to open Report:
npx playwright show-report