test(e2e): verify the imported catalog end to end #35

Merged
martin merged 2 commits from test/verify-catalog-23 into main 2026-11-17 19:58:29 +00:00
Owner

Summary

Adds automated end-to-end verification of the imported catalog and fixes the catalog data it exposed.

  • packages/app/e2e-tests/catalog-api.test.ts signs in through the guest provider and checks representative Forgejo components for project slug, ownership, system membership, and links, plus the recurring-events OpenAPI definition and its providesApi relation.
  • packages/app/e2e-tests/catalog-browser.test.ts covers component links and navigation from the API list to the rendered definition.
  • Checks run against controlled fixtures in packages/app/e2e-tests/fixtures/catalog, loaded through the new CATALOG_DIR override in app-config.yaml. No Forgejo token or live data is required; E2E_CATALOG_DIR points the suite at another catalog.
  • The Nix dev shell provides Chromium and exports PLAYWRIGHT_CHROMIUM_EXECUTABLE_PATH, so Playwright does not use a downloaded browser that cannot run on NixOS.
  • Catalog data corrected: enrichment is keyed by repository name instead of full name (repositories moved from martin/* to Personal/*), owners use user:default/martin instead of the nonexistent martin group, and OpenAPI links use Personal/recurring-events on main.

Validation

Run in nix develop:

  • yarn prettier:check
  • yarn lint:all
  • yarn tsc
  • yarn test:ci --runInBand
  • yarn build:backend
  • yarn test:e2e --reporter=line — 5 passed (app, 2 API, 2 browser)

Closes #23

## Summary Adds automated end-to-end verification of the imported catalog and fixes the catalog data it exposed. - `packages/app/e2e-tests/catalog-api.test.ts` signs in through the guest provider and checks representative Forgejo components for project slug, ownership, system membership, and links, plus the recurring-events OpenAPI definition and its `providesApi` relation. - `packages/app/e2e-tests/catalog-browser.test.ts` covers component links and navigation from the API list to the rendered definition. - Checks run against controlled fixtures in `packages/app/e2e-tests/fixtures/catalog`, loaded through the new `CATALOG_DIR` override in `app-config.yaml`. No Forgejo token or live data is required; `E2E_CATALOG_DIR` points the suite at another catalog. - The Nix dev shell provides Chromium and exports `PLAYWRIGHT_CHROMIUM_EXECUTABLE_PATH`, so Playwright does not use a downloaded browser that cannot run on NixOS. - Catalog data corrected: enrichment is keyed by repository name instead of full name (repositories moved from `martin/*` to `Personal/*`), owners use `user:default/martin` instead of the nonexistent `martin` group, and OpenAPI links use `Personal/recurring-events` on `main`. ## Validation Run in `nix develop`: - `yarn prettier:check` - `yarn lint:all` - `yarn tsc` - `yarn test:ci --runInBand` - `yarn build:backend` - `yarn test:e2e --reporter=line` — 5 passed (app, 2 API, 2 browser) Closes #23
Repositories moved from the `martin` user to the `Personal` organization,
so enrichment keyed by full name stopped matching. Key it by repository
name instead, and reset the OpenAPI links to the default `main` branch.

Ownership also resolved to a nonexistent `martin` group. Use the explicit
`user:default/martin` reference and regenerate the catalog.

Co-authored-by: OpenCode <opencode@anoma.ly>
test(e2e): verify the imported catalog end to end
Some checks failed
ci/woodpecker/pr/pr-review Pipeline was canceled
6e92765169
Add Playwright checks for the authenticated catalog API and the browser
UI. They read controlled fixtures rather than live Forgejo data: the
catalog locations take a CATALOG_DIR override and the Playwright
webServer points it at packages/app/e2e-tests/fixtures/catalog.

The API checks assert project slugs, ownership, system membership, and
links for representative components, plus the recurring-events OpenAPI
definition and its provider relation. The browser checks cover component
links and navigation from the API list to the rendered definition.

Run the Nix-managed Chromium in the dev shell so Playwright does not try
to use a downloaded browser that cannot run on NixOS, and document the
automated and optional live verification procedures.

Closes #23

Co-authored-by: OpenCode <opencode@anoma.ly>
martin force-pushed test/verify-catalog-23 from 6e92765169
Some checks failed
ci/woodpecker/pr/pr-review Pipeline was canceled
to 72946eb681
Some checks failed
ci/woodpecker/pr/pr-review Pipeline was canceled
2026-11-17 19:57:51 +00:00
Compare
martin merged commit 7758c2efc0 into main 2026-11-17 19:58:29 +00:00
martin deleted branch test/verify-catalog-23 2026-11-17 19:58:29 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Personal/backstage!35
No description provided.