Add E2E test infrastructure with Playwright - #64
Merged
Conversation
- Create E2E test project with xUnit and Playwright - Add content-agnostic smoke tests for key pages (Home, Blog, About, Speaking) - Tests dynamically fetch first blog post to avoid hardcoded content dependencies - Configure tests to inherit project standards (ImplicitUsings disabled, Nullable enabled) - Fix .gitignore to allow .E2E directory (was matching *.e2e pattern) - Add test dependencies to Directory.Packages.props - Create separate GitHub Actions workflow for post-deployment testing - Tests run against production after successful deployment (60s wait) - Update CLAUDE.md with test and CI/CD documentation 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR adds comprehensive end-to-end testing infrastructure using Playwright and xUnit, with automated post-deployment smoke tests running against production.
- Adds E2E test project with Playwright for automated browser testing
- Creates smoke tests for all key pages (Home, Blog, About, Speaking) with content-agnostic validation
- Implements CI/CD integration that automatically runs tests after successful deployment
Reviewed Changes
Copilot reviewed 13 out of 14 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| tests/Goldfinch.Tests.E2E/Goldfinch.Tests.E2E.csproj | Test project configuration with Playwright and xUnit dependencies |
| tests/Goldfinch.Tests.E2E/PlaywrightTestBase.cs | Base class providing common browser setup and configuration |
| tests/Goldfinch.Tests.E2E/Pages/*.cs | Page-specific test classes for smoke testing key site functionality |
| tests/Goldfinch.Tests.E2E/README.md | Documentation for local testing and project structure |
| .github/workflows/e2e-tests.yml | GitHub Actions workflow for post-deployment testing |
| Goldfinch.sln | Updated solution file to include test project |
| Directory.Packages.props | Added test-related package versions |
| CLAUDE.md | Updated documentation with testing information |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds end-to-end testing infrastructure using Playwright and xUnit, with automated post-deployment smoke tests running against production.
Changes
Test Infrastructure
tests/Goldfinch.Tests.E2E/project with Playwright and xUnitCI/CD Integration
.github/workflows/e2e-tests.yml- separate workflow for post-deployment testingConfiguration
.gitignorepattern*.e2e→**/*.e2eto allow.E2EdirectoryDirectory.Packages.props:Documentation
CLAUDE.mdwith test commands and CI/CD informationtests/Goldfinch.Tests.E2E/README.mdwith local testing instructionsTest Coverage
All tests are structural checks (not content-specific):
Local Testing
Production Testing
After merging to
main:🤖 Generated with Claude Code