Events-MVC (example with htmx)

This commit is contained in:
Boris Milašinović
2026-04-25 22:21:35 +02:00
parent eb04483417
commit 0ee1b22f61
114 changed files with 7966 additions and 0 deletions

View File

@@ -0,0 +1,43 @@
# Events.Tests.UITests
This project contains Playwright-based UI tests for `Events-MVC`.
## Prerequisites
- .NET SDK 10.0
- Playwright CLI
- Playwright browser binaries
## Playwright Installation
Install the Playwright CLI once:
```powershell
dotnet tool install --global Microsoft.Playwright.CLI
```
Install browser binaries:
```powershell
playwright install
```
## Running the UI Tests
Run the full UI test project:
```powershell
dotnet test Events-MVC\Tests\Events.Tests.UITests\Events.Tests.UITests.csproj
```
Run a single test:
```powershell
dotnet test Events-MVC\Tests\Events.Tests.UITests\Events.Tests.UITests.csproj --filter HomeAndSportsPageTests.HomePageShouldDisplayEnglishDescription
```
## Notes
- The UI test harness starts the MVC application automatically
- UI tests connect the MVC application to the selected provider's test database from `ConnectionStrings:EventDB-Test`
- The browser is currently configured in headless mode