This project is a end-to-end testing for Datamap Data Platform.
We're using Playwright to create test cases for:
- Datamap Web Portal -- main web app for the data platform
- Gatekeeper API Gateway -- the public web API used by the web portal
- Datamap Home Page -- The public access for Datamap (home page)
Keep the list of test cases up to date.
The execution of the test cases depends on the platform running locally. To start the platform, use the Docker Compose scripts from the Gatekeeper and Datamap Web Portal.
To run quicker to check if everything is good during new test cases development.
This command also runs a
pretestto type checking with typescript and other stuffs.
npm run testLint only
npm run lint
# or
npx eslint .You can set the repeat parameter to repeat each test case many times. This is importante to get flaky tests.
npx playwright test --repeat-each=15In this case, we'll run each test case 15 times.
To run with UI
npx playwright test --uiTo run with trace
npx playwright test --trace onTo generate new tests
npx playwright codegenTo check the report results
npx playwright show-reportEach new test must use Page Object Model. Check more in https://playwright.dev/docs/pom.
You have to create a .env file in the project root.
Copy the file .env.template and replace with valid values.
We have a list of recommended vs code extension at .vscode/extensions.json.