fix: isolate CHRNX seed lifecycle tests
This commit is contained in:
10 files changed
+277
-316
No files matched your search
@@ -6,7 +6,7 @@
|
||||
|
||||
**Goal:** Make local WordPress fixtures, Playwright scenarios, show archive links, and image rebuild checks deterministic, isolated, reversible, and safe.
|
||||
|
||||
**Architecture:** Browser readers run in three dependency roots while a serial Chromium scenario project mutates the local database only after all roots finish. The local seeder owns fixture records, snapshots environment options once, merges unrelated sticky posts, and restores exact original option values explicitly. Show archive routing derives only from validated archive context. Responsive image rebuilds accept the committed destination or one canonical direct child of the system temporary directory.
|
||||
**Architecture:** Browser readers run in three dependency roots while a serial Chromium scenario project mutates the local database only after all roots finish. Snapshot and restore lifecycle tests execute only in the isolated WordPress PHPUnit database; automated tests never run a destructive lifecycle harness against the development E2E database. The local seeder owns fixture records, merges unrelated sticky posts, and restores exact original option bytes explicitly.
|
||||
|
||||
**Tech Stack:** WordPress PHP, WP-CLI/wp-env on Colima, Playwright, Node test runner, POSIX shell.
|
||||
|
||||
@@ -23,12 +23,12 @@
|
||||
|
||||
## Task 2: Restore local WordPress configuration exactly
|
||||
|
||||
**Files:** `scripts/seed-test-content.php`, `scripts/seed-test-content.sh`, `tests/php/SeedStateTest.php`, `README.md`
|
||||
**Files:** `scripts/seed-test-content.php`, `scripts/lib/fixture-environment.php`, `tests/php/FixtureEnvironmentTest.php`, `README.md`
|
||||
|
||||
- [ ] Write adversarial WP/PHP integration tests for snapshot, sticky merge, scenarios, and exact restore.
|
||||
- [ ] Run the tests and record the expected RED failure.
|
||||
- [ ] Add versioned snapshot ownership and explicit restore scenario.
|
||||
- [ ] Run default/scenarios/restore/default and prove exact restoration plus idempotency.
|
||||
- [ ] Prove exact restoration and scenario ownership in the isolated PHPUnit DB.
|
||||
|
||||
## Task 3: Preserve show archive routing
|
||||
|
||||
|
||||
Reference in new issue
Block a user