Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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)):



Ahmed Halac
Ahmed Halac

💻 🚇 👀

This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!