Repository navigation
main/production - #127
Merged
Merged
main/production#127
Conversation
The site runs the CSP build of Alpine (@alpinejs/csp), which refuses the x-html directive: on every page with a markdown field (the internship application) the browser logged "Using the x-html directive is prohibited in the CSP build" four times and the preview dialog stayed empty. The new Pest browser tests caught it. The preview element is now an x-ref and render() writes the HTML that renderMarkdown() already escapes into it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…n forms Company rule since 2026-10-23: every repository has Pest browser tests (pestphp/pest-plugin-browser with Playwright). The site runs with a strict CSP and the Alpine CSP build, which HTTP tests cannot check; these drive a real Chromium: - every public page renders its heading without JavaScript errors or console messages (CSP violations included), / redirects to /de-ch, unknown paths show the error page - the language links switch to the localized slug, the mobile menu opens, navigates and closes with Escape, the language suggestion appears for an English browser arriving through / and not for a German one - the network profile link request, and the internship flow from the email form to the signed application page with autosave, plus the markdown preview tests/Pest.php already applies TestCase, RefreshDatabase and the roles seeder to every test directory. phpunit.xml.dist gets a Browser testsuite; the pest and coverage lanes list their directories explicitly and do not run it. Failure screenshots are ignored by git. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
New lane "pull-request | ci pest browser" on ubuntu-latest (public repository, so no self-hosted runners) with the PHP, Nova credentials and .env setup of the pest lane and a PostgreSQL 17 service on a Docker-assigned port. It builds the assets, installs Playwright's Chromium and runs tests/Browser; on failure it uploads the logs and the failure screenshots. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
test: add Pest browser tests (Playwright)
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.
No description provided.