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

https://github.com/advait0511/playwrighttests

Automated end‑to‑end tests using NUnit and Playwright (.NET 8). Covers login, asset creation, assignment, and validation workflows on the Snipe‑IT demo site, showcasing Page Object Model design and modern test automation practices.
https://github.com/advait0511/playwrighttests

automated-testing dotnet end-to-end-testing integration-testing nunit page-object-model playwright playwright-automation qa snipe-it software-testing test-automation

Last synced: 6 months ago
JSON representation

Automated end‑to‑end tests using NUnit and Playwright (.NET 8). Covers login, asset creation, assignment, and validation workflows on the Snipe‑IT demo site, showcasing Page Object Model design and modern test automation practices.

Awesome Lists containing this project

README

          

# PlaywrightTests

## Overview
NUnit + Playwright .NET tests that:
- log into https://demo.snipeitapp.com/login
- create a Macbook Pro 13 asset Ready to Deploy and assign random user
- search for the asset and validate details + history

## Prerequisites
- .NET 8 SDK (LTS)
- Git
- Playwright browsers (installation step below)

## Quick start
1. clone repo
2. `cd PlaywrightTests`
3. `dotnet add package Microsoft.Playwright.NUnit`
4. `dotnet build`
5. Install browsers:
- `dotnet tool install --global Microsoft.Playwright.CLI`
`playwright install`
OR
- `pwsh ./bin/Debug/net8.0/playwright.ps1 install`
6. Run tests:
- `dotnet test`
- For headed mode: `HEADED=1 dotnet test`
OR
`$env:HEADED="1"`
`dotnet test`

## Notes
- Uses Microsoft.Playwright 1.55.0
- Tests use Page Object Model.
- If the demo site changes, update selectors in `Pages/*`.