Skip to content

Playwright Setup - #166

Open
danieltmbr wants to merge 9 commits into
mainfrom
qa-playwright
Open

Playwright Setup#166
danieltmbr wants to merge 9 commits into
mainfrom
qa-playwright

Conversation

@danieltmbr

Copy link
Copy Markdown
Owner

No description provided.

danieltmbr and others added 2 commits May 28, 2026 13:00
Setup:
- package.json with @playwright/test devDependency
- playwright.config.ts targeting localhost:8080, serial execution, Tests/E2E/

Tests:
- auth.spec.ts: unauthenticated redirects to /signin for albums/posts/notes
- catalogue-editor.spec.ts: form fields, create flow, artwork state (set/clear),
  notes, draft persistence, duplicate alert, resource input add/remove,
  metadata 4xx error shows specific reason, note textarea checkbox bounds
- helpers/auth.ts: session cookie injection (Apple Sign In can't be headless)
- README.md: setup instructions + how to get a session cookie from browser

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
danieltmbr and others added 7 commits May 28, 2026 14:00
Swift 6.0.3 open-source Linux build crashes (SIGSEGV) emitting IR for
complex generic specialisations; 6.1 avoids the bug.

AuthProvider.refresher was typed as optional despite the init never
accepting nil — Xcode 16.2 enforces the unwrap at the call site.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
The Linux Swift frontend crashes (Signal 11, null CreateCast) when
emitting IR for a chained expression that existential-boxes a generic
Command in a single pass. Affects both 6.0.3 and 6.1.

Fix: break the chain into two explicit let steps and replace Self with
the concrete type so the compiler resolves each piece independently.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Switch backend-tests and e2e-tests to -c release to avoid a Linux Swift
compiler SIGSEGV (null CreateCast) that only triggers in debug builds of
complex cross-module generic expressions. Revert the AlbumSearch workaround
that broke the original code, and add -DVAPOR_TESTING to the e2e build so
the /__test/login route is compiled into the release binary without requiring
#if DEBUG.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Delete Tests/AppTests/AppTests.swift — it was the Vapor project template
with Todo/TodoDTO references that never applied to this codebase.

Make Notifications.configure catch VAPID_CONFIG errors instead of
propagating them. Without VAPID_CONFIG in CI the server crashed at
startup (swift_errorInMain → SIGILL), blocking both migrate and serve.
Push notifications are optional; missing config now logs a warning and
the app continues without them.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Add a changes detection job (dorny/paths-filter) that runs only on
pull_request events. Each test job now has an if: condition so it is
skipped on PRs that don't touch its relevant paths:

  backend-tests + e2e-tests → tmbr-web/** or .github/workflows/**
  api-kit-tests             → api-kit/**  or .github/workflows/**

Pushes to main always run all jobs regardless of paths, so the main
branch is always fully verified after a merge.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant