After 8148 ASG account recreation + spot rotation debug session, formalize tooling for automated ad-pipeline regression checks. - /home/w4/bin/ad-test — wrapper, available globally - /home/w4/playwright-tests/ — Playwright + Chromium runtime - scripts/ad-regression.mjs — versioned copy у репо Per-URL checks (6): 1. ad-bundle loaded (window._adConfig set) 2. popunder SDK fetches 3. /api/users/<vast_spot> returns <Ad> (catches no-fill) 4. mode = "vast" after popunder cooldown active 5. .asg-container injects on play click (right data-spot-id) 6. console clean (no [ASGB LOADER] errors) Headless limitation documented: network+DOM checks cover 95% of regressions without need for full video playback validation. Use `ad-test --full` or real browser w/ ?debug=1 for visual. Memory: reference_ad_regression_tool.md added — auto-trigger rule to run ad-test after spot ID changes / mirror swaps / bundle rebuild. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1.2 KiB
Executable File
1.2 KiB
Executable File