Thanks to visit codestin.com
Credit goes to github.com

Skip to content

ardc-brazil/datamap-e2e

Repository files navigation

Datamap E2E

This project is a end-to-end testing for Datamap Data Platform.

Playwright

We're using Playwright to create test cases for:

Coverage

Keep the list of test cases up to date.

Development

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 pretest to type checking with typescript and other stuffs.

npm run test

Lint 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=15

In this case, we'll run each test case 15 times.

To run with UI

npx playwright test --ui

To run with trace

npx playwright test --trace on

To generate new tests

npx playwright codegen

To check the report results

npx playwright show-report

Page Object Model

Each new test must use Page Object Model. Check more in https://playwright.dev/docs/pom.

Env Vars

You have to create a .env file in the project root.

Copy the file .env.template and replace with valid values.

VisualStudio Code

We have a list of recommended vs code extension at .vscode/extensions.json.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published