Playwright UI test suite (25 tests) #1

Merged
m038 merged 7 commits from experimental-polar-steps into main 2026-06-18 22:41:35 +02:00
Owner

Summary

  • 25 tests across auth (A1-A5), posting (P1-P5), validation (V1-V4), tracker (T1-T5), nav (N1-N5)
  • Uses storageState so login runs once per run; credentials via GRAV_TEST_USER/GRAV_TEST_PASS in .env
  • Replaces post-with-photo.spec.js with broader post.spec.js
  • auth.setup.js runs once as a setup project before all other specs
## Summary - 25 tests across auth (A1-A5), posting (P1-P5), validation (V1-V4), tracker (T1-T5), nav (N1-N5) - Uses storageState so login runs once per run; credentials via GRAV_TEST_USER/GRAV_TEST_PASS in .env - Replaces post-with-photo.spec.js with broader post.spec.js - auth.setup.js runs once as a setup project before all other specs
m038 added 7 commits 2026-06-18 22:40:20 +02:00
Adds section 1 to CLAUDE.md covering the current development mode
config (twig.cache: false), the production mode values to restore at
launch, and an explicit rule never to flip modes mid-development to
work around bugs.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
test-config: static YAML validator for post-form.md — checks that the
add-page-by-form action name, pageconfig/pagefrontmatter blocks, and all
required fields are correctly wired. Fast, no server needed. Catches the
class of bug that caused silent post failures.

test-post: end-to-end HTTP test — logs in, submits the form, verifies an
entry.md was created on disk, then cleans up. Requires GRAV_TEST_USER and
GRAV_TEST_PASS in .env (see .env.example).

  make test-config   # fast, no credentials needed
  make test-post     # full e2e, needs .env credentials
  make test          # both

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
25 tests across auth (A1-A5), posting (P1-P5), validation (V1-V4),
tracker (T1-T5), and nav (N1-N5). Uses storageState for single login
per run. Replaces post-with-photo.spec.js with post.spec.js.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
m038 merged commit edc232ae83 into main 2026-06-18 22:41:35 +02:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: m038/intotheeast-com#1