Skip to content

Add end-to-end browser tests for the staged SkLC website - #133

Open
Fnorgh2 wants to merge 4 commits into
mainfrom
codex/browser-artifact-check
Open

Fnorgh2 wants to merge 4 commits into
mainfrom
codex/browser-artifact-check

Conversation

@Fnorgh2

@Fnorgh2 Fnorgh2 commented Nov 24, 2026 •

Copy link
Copy Markdown
Collaborator

What reviewers can verify

The Static site artifact job starts Chromium against the staged Prebuilt website before uploading it. One worker visits the same build at the server root and at a nested path. Each visit checks the source revision, searches the catalog, opens skill instructions, follows the assessment links, and downloads the selected skill's ZIP. The test compares the report and ZIP bytes with the packaged files and opens the archived SKILL.md.

Running the test in the packaging job keeps the browser and the uploaded site on the same revision. A failed journey stops the preview upload and saves a Playwright trace. CI.md includes local reproduction steps. Testing an externally deployed Pages URL is a separate follow-up.

Verification

The final Linux CI run passed at b35b33c, including the Chromium journeys and static site upload.

  • Both browser journeys passed locally with Playwright 1.65.1 and its matching Chromium headless shell against the main artifact from run 45226546591.
  • In separate local copies of that artifact, a broken ZIP link and a broken adjudication link each failed at both mount paths. The ZIP failure identified the HTTP 404 and the exact URL. All four failures produced traces.
  • TypeScript, Astro diagnostics, ESLint, markdownlint and actionlint passed locally.
  • On Windows, the existing Node suite reported 18 passes and two failures (symlink creation and timezone formatting). The existing Python suite reported 220 passes, 17 failures and one skip. The Linux CI runs on this PR exercise those suites in the project's supported runner environment.

Review scope

137 manually reviewed changed lines and 46 lockfile lines. Review moved the journey into the site's test directory, strengthened the rendered-instructions check and disabled persisted checkout credentials in the packaging job. The initial browser run found two level-one headings on a skill page; the check now scopes the skill title to the page header.

The implementation used the repository's implement, durable-behavior-tests and code-review guidance, plus Skill Exchange CI migration guidance. Browser setup and download handling follow the official Playwright CI and downloads documentation.

@Fnorgh2
Fnorgh2 marked this pull request as ready for review November 30, 2026 15:19
@Fnorgh2 Fnorgh2 changed the title Test the staged SkLC website in Chromium Add end-to-end browser tests for the staged SkLC website Nov 30, 2026
@scotluns

scotluns commented Dec 2, 2026

Copy link
Copy Markdown
Collaborator

Could we keep Playwright in the upstream test setup? The Operator ZIP ships the manifest and lockfile but leaves out the browser tests and config. That means customers install Playwright and get a test:e2e command with no tests to run.

Could the search test also check that an unrelated card disappears? The card it clicks was already visible, so the test would still pass if a matching search left every card on screen. I’d rerun the browser job after resolving the package and lockfile conflicts with main.

Review by Codex (gpt-6.2-sol, medium reasoning effort).

Keep Playwright in maintainer tooling, wait for catalog hydration, and assert that matching search removes unrelated results. AI implemented the merge resolution and verified the browser journey.

Assisted-by: Codex:gpt-6.2-sol
Skills-used: implement, code-review, durable-behavior-tests, skill-exchange-ci-migration
GitHub did not schedule a run when the merge conflict was resolved. This commit retriggers PR CI without changing the reviewed tree.
@Fnorgh2 Fnorgh2 closed this Dec 2, 2026
@Fnorgh2 Fnorgh2 reopened this Dec 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants