Files
predavanja/Events-MVC/Tests/Events.Tests.UITests/README.md
2026-04-29 16:48:15 +02:00

974 B

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:

dotnet tool install --global Microsoft.Playwright.CLI

Install browser binaries:

playwright install

Running the UI Tests

Run the full UI test project:

dotnet test Events-MVC\Tests\Events.Tests.UITests\Events.Tests.UITests.csproj

Run a single test:

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 PostgreSQL test database on port 5433 from ConnectionStrings:EventsPostgres-Test
  • The browser is currently configured in headless mode