Skip to content

josdem/playwright-vetlog

Repository files navigation

Playwright Vetlog

All Contributors

Playwright

This is an end-to-end testing for Vetlog using Playwright

Requirements

Note: I recommed to use NVM to manage NodeJS versions

To build the project

npm install

To run end-to-end tests

npx playwright test e2e

To see integrated reports

npx playwright show-report

To run admin end-to-end test

npx playwright test tests/e2e/admin

To run a single end-to-end test

npx playwright test tests/e2e/${test-file-name}

Where:

  • ${test-file-name} is the spec you want to run

Setting up environment

export VETLOG_USERNAME=${USERNAME}
export VETLOG_PASSWORD=${PASSWORD}

where:

  • ${USERNAME} is your Vetlog username
  • ${PASSWORD} is your Vetlog password

Note

If you are using Windows based platform:

$Env:VETLOG_USERNAME="VetlogUser"
$Env:VETLOG_PASSWORD="VetlogPassword"

Linting and Code Formatting

To format the project:

npx prettier --write .

To check for linting issues:

npm run lint

To automatically fix linting issues:

npm run lint:fix

Reporters Wiki

Contributors ✨

Thanks goes to these wonderful people (emoji key):

Ahmed Halac
Ahmed Halac

💻 🚇 👀
T.H(kaminuma)
T.H(kaminuma)

👀

This project follows the all-contributors specification. Contributions of any kind welcome!