End to end testing for OpenBoxes
- NPM 6.14.6
- Node 14.21.x
npm install
npx playwright install
To configure this project on your chosen instance of OpenBoxes, you need to set up the required environment variables in the .env
file.
For detailed information on the required environment variables, please refer to the Environment Variables documentation.
- 🗒️ Introduction (Tutorial)
- 🔠 Environment Variables
- 📂 Folder Structure
- ⚙️ Application Configuration
- 🛡️ User Authentication
- ⚓ Fixtures
- 📍 Locators
- 🧰 Data Setup
- 🚀 DCI/CD
For more information on available flags when running tests in playwright reffer to the documentation.
npm run test
To add a flag to the npm script, do the following eg. npm run test -- --headed
To check if there are any linter errors that require attention run the following command
npm run lint
If you wish to handle these errors automatically run
npm run lint-fix
To format your code run the following command
npm run format