Events-MVC (example with htmx)
This commit is contained in:
43
Events-MVC/Tests/Events.Tests.UITests/README.md
Normal file
43
Events-MVC/Tests/Events.Tests.UITests/README.md
Normal 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
|
||||
Reference in New Issue
Block a user