test(gate-b): update Playwright assertions for cutout-on-checkerboard (#55)

- live-mask.spec.ts: replace green-overlay avgAlpha assertions with
  checkerboard + slab pixel detection; add green-overlay color rejection
  check; fix hasColorVariance false-positive with monochrome test image
- mask-ux.spec.ts: rename test to match new rendering (no green overlay)
- playwright.config.ts: set baseURL when webServer is used so page.goto('/')
  resolves correctly in local dev

Fixes: issue #55 mask preview
This commit is contained in:
grokbot_ty
2026-09-08 00:35:08 +00:00
parent 83171fab6e
commit 2586fdb135
3 changed files with 26 additions and 7 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ export default defineConfig({
use: {
trace: 'on-first-retry',
screenshot: 'only-on-failure',
baseURL: BASE_URL,
baseURL: BASE_URL || 'http://localhost:18080',
// Ignore self-signed TLS certs on deployed hosts.
ignoreHTTPSErrors: true,
},