fair-plugin/tests/sites/browser-test
Chuck Adams 2b675f29eb
feat: three more zero-refactoring audit items (#15, #16, #17)
#17 (browser test seeding):
- Updated browser-test seed.php to create dummy plugin with FAIR DID
  header AND seed a fair_update-errors transient.
- Updated update-error-row.spec.ts to assert error row IS visible
  (was no-op conditional). Error text checked for expected content.

#16 (error propagation e2e integration test):
- Integration seed.php now registers a second plugin with
  'did:plc:doesnotexist0000000000000' — unresolvable by mock server.
- Added test_unresolvable_did_plugin_is_skipped_and_error_cached to
  UpdateTransientIntegrationTest: verifies the bad-DID plugin is
  excluded from both response and no_update, and WP_Error is cached.
- Replaced test_empty_registry_handles_gracefully (reflection-based,
  now redundant after Updater::reset() fix).

#15 (plugin_api_details unit tests):
- Added PluginApiDetailsTest (4 tests) to PipelineWPTest.php:
  non-plugin_information action pass-through, empty slug pass-through,
  unmatched slug returns false, full pipeline success returns plugin
  info object with correct name and version.
- Used seed_pipeline() pattern from existing SearchByDidTest.

Zero-refactoring remaining: #14 (pipeline-mock migration), #18 (theme HTML).

After: 283 tests, 520 assertions. Single-site + multisite pass.
Signed-off-by: Chuck Adams <chaz@chaz.works>
2026-06-09 20:30:27 -06:00
..
docker-compose.yml refactor: flatten tests/sites/ephemeral/ → tests/sites/ 2026-06-09 16:25:09 -06:00
seed.php feat: three more zero-refactoring audit items (#15, #16, #17) 2026-06-09 20:30:27 -06:00