Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: CI

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
test:
runs-on: ubuntu-latest
env:
# SauceDemo's password is public; injected here the same way a real CI secret would be.
TestSettings__Password: secret_sauce
steps:
- uses: actions/checkout@v4

- name: Setup .NET 10
uses: actions/setup-dotnet@v4
with:
dotnet-version: '10.0.x'

- name: Restore
run: dotnet restore

- name: Build
run: dotnet build --no-restore --configuration Release

- name: Install Playwright browsers and OS dependencies
run: pwsh PlaywrightFramework.Tests/bin/Release/net10.0/playwright.ps1 install --with-deps chromium

- name: Test
run: dotnet test --no-build --configuration Release --logger "trx;LogFileName=test-results.trx"

- name: Upload test results
if: always()
uses: actions/upload-artifact@v4
with:
name: test-results
path: '**/*.trx'
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# playwright-dotnet-framework

[![CI](https://github.com/SnoxSoft/playwright-dotnet-framework/actions/workflows/ci.yml/badge.svg)](https://github.com/SnoxSoft/playwright-dotnet-framework/actions/workflows/ci.yml)

A small but production-shaped UI test-automation framework in **C# / .NET 10** with **Playwright** and **MSTest**. It shows how I structure a maintainable suite — page objects, component objects, isolated fixtures, layered configuration, and proper secret handling — rather than a flat pile of tests.

System under test: [SauceDemo](https://www.saucedemo.com), a stable public demo shop chosen deliberately so the suite stays reliable and CI-green.
Expand Down
Loading