Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/josdem/playwright-vetlog
Visual and End-to-End testing for Vetlog
https://github.com/josdem/playwright-vetlog
github-actions nodejs playwright typescript
Last synced: 3 months ago
JSON representation
Visual and End-to-End testing for Vetlog
- Host: GitHub
- URL: https://github.com/josdem/playwright-vetlog
- Owner: josdem
- Created: 2023-09-24T13:20:31.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-16T16:17:53.000Z (3 months ago)
- Last Synced: 2024-11-16T16:28:26.443Z (3 months ago)
- Topics: github-actions, nodejs, playwright, typescript
- Language: TypeScript
- Homepage: https://vetlog.org
- Size: 358 KB
- Stars: 1
- Watchers: 2
- Forks: 2
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Playwright Vetlog
[![All Contributors](https://img.shields.io/badge/all_contributors-1-orange.svg?style=flat-square)](#contributors-)
[![Playwright](https://img.shields.io/badge/playwright-tests-brightgreen.svg)](https://github.com/josdem/playwright-vetlog/actions)
This is an end-to-end testing for [Vetlog](https://vetlog.org/) using [Playwright](https://playwright.dev/)
#### Requirements
- [NodeJS](https://nodejs.org/en/) version `v22.11.0`
**Note:** I recommed to use [NVM](https://github.com/nvm-sh/nvm) to manage NodeJS versions
#### To build the project
```bash
npm install
```#### To run end-to-end tests
```bash
npx playwright test e2e
```#### To see integrated reports
```bash
npx playwright show-report
``````bash
npx playwright test tests/e2e/${test-file-name}
```Where:
- `${test-file-name}` is the spec you want to run
#### Setting up environment
```bash
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:
```bash
$Env:VETLOG_USERNAME="VetlogUser"
$Env:VETLOG_PASSWORD="VetlogPassword"
```#### Linting and Code Formatting
To format the project:
```bash
npx prettier --write .
```To check for linting issues:
```bash
npm run lint
```To automatically fix linting issues:
```bash
npm run lint:fix
```[Reporters Wiki](https://github.com/josdem/playwright-vetlog/wiki#reporters)
## Contributors ✨
Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):
This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!