Repository navigation
Add Playwright e2e smoke tests to CI - #35
Merged
Merged
Conversation
Wire the existing 9 Playwright smoke tests (tests/e2e/tests/smoke/) into GitHub Actions as a new e2e job that runs in parallel with the build job after lint passes. Uploads the HTML report as an artifact on any outcome for easy failure debugging.
Deploying simplemodule-website with
|
| Latest commit: |
cc8067f
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://b4e0b102.simplemodule-website.pages.dev |
| Branch Preview URL: | https://claude-recursing-satoshi.simplemodule-website.pages.dev |
The dotnet run command in CI needs to compile and run first-time startup tasks (migrations, seeding) which exceeds the 60s timeout.
CI runners don't have an ASP.NET dev certificate, so HTTPS fails silently causing the webServer health check to time out. Use http://localhost:5000 in CI while keeping https://localhost:5001 for local development.
dotnet run uses the https launch profile by default, which overrides ASPNETCORE_URLS and requires a dev certificate. CI runners don't have one, so the server starts on HTTPS but can't serve — causing login redirects to https://localhost:5001 which times out. Use the existing http launch profile in CI instead.
Firefox fails with NS_ERROR_NET_EMPTY_RESPONSE on unauthenticated redirect tests when the server runs HTTP-only (UseHttpsRedirection tries to redirect to a non-existent HTTPS listener). Since these are smoke tests verifying app functionality rather than cross-browser compatibility, Chromium-only is sufficient for CI.
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
e2ejob to the CI workflow that runs the existing 9 Playwright smoke tests (tests/e2e/tests/smoke/)buildjob (both depend onlint) to minimize pipeline wall-clock timeTest plan
e2ejob appears in the CI workflow rune2eandbuildjobs run in parallel afterlint