This project contains automated tests for ONLYOFFICE DocSpace using Playwright test framework.
- Node.js (latest LTS version recommended)
- npm (comes with Node.js)
- Playwright Test Framework
- Clone the repository
- Install dependencies:
npm install
- Create a
.env
file in the root directory of the project - Contact the repository maintainers to obtain the required environment variables and their values
- Add these variables to your
.env
file
These commands will run tests locally on your machine:
- Run all tests:
npm test
- Run UI tests only:
npm run test:ui
- Run API tests only:
npm run test:api
- Run tests in EU region:
npm run test:eu
- Run tests in US region:
npm run test:us
- Run production tests:
npm run test:prod
Run linting:
npm run lint
-
Update your main branch:
git checkout main
git pull origin main
-
Create a new branch:
git switch -c your-branch-name
-
Make your changes and stage them:
git add .
-
Commit your changes with a descriptive message:
git commit -m "type: brief description of changes"
-
Push your branch:
git push origin your-branch-name
-
Create a pull request