Skip to content

Latest commit

 

History

History
34 lines (25 loc) · 2.25 KB

File metadata and controls

34 lines (25 loc) · 2.25 KB
type Reference
title Testing strategy
description Verification layers for firebaseui-web packages and examples.
tags
testing
ci
playwright
timestamp 2026-07-03 00:00:00 UTC

Layers

Layer Command Owner doc Catches
Package unit tests pnpm test CONTRIBUTING.md Core/react/angular/shadcn/translations/styles logic
Compile (packages + examples) pnpm build CONTRIBUTING.md TS, bundler, framework build errors
Lint / format pnpm lint:check, pnpm format:check CONTRIBUTING.md Style regressions
Example smoke (browser + HTTP) pnpm test:e2e AD-3, AD-4, AD-6 Dev-server UI interactivity (five UI examples) and custom-auth-server HTTP boot
Security audit pnpm audit playbooks/dependency-update-verification.md Known CVEs in lockfile

CI today

.github/workflows/test.yaml: pnpm build, Auth emulator start, pnpm test.

.github/workflows/e2e.yaml: pnpm test:e2e (six examples), Playwright Chromium, HTML/coverage artifacts — AD-7. Auth emulator is ensured by Playwright globalSetup (reuse-aware).

Gaps

  • Skipped package integration tests (describe.skip).
  • custom-auth-server not built by root pnpm build (e2e builds it on demand).
  • Production build artifacts not exercised by e2e — deferred, AD-8.
  • pnpm audit not gated in CI.

Post-dependency-update gate

Required before commit: playbooks/change-authoring-verification.md (AD-10). Dependency-specific steps: playbooks/dependency-update-verification.md.