Skip to content

Add Playwright e2e for SME KybGateScreen verification gate #729

Description

@king-aj-the-first

GitHub labels: Stellar Wave

Drips complexity: High (200 points)

Area: Testing

Description

KybGateScreen blocks invoice create for unverified SMEs with useKybStatusPoller, but no e2e covers the blocked wizard state.

Requirements and Context

Wave SMEs hit KYB gate in production; CI should verify the screen renders and polling UI appears.

Suggested Execution

git checkout -b test/e2e-kyb-gate-screen
  1. Create branch test/e2e-kyb-gate-screen
  2. Mock wallet as unverified SME
  3. Navigate to /invoice/create
  4. Assert KybGateScreen blocks wizard steps
  5. Assert verify CTA visible

Example commit message

test(e2e): add SME KybGateScreen verification gate spec

File Paths

  • e2e/invoice-wizard.spec.ts
  • components/invoice/KybGateScreen.tsx
  • app/invoice/create/page.tsx

Guidelines

  • Assignment required before starting
  • PR description must include: Closes #<issue_number>
  • Run npm run lint, npm run type-check, npm run test, and npm run build before opening PR
  • Add screenshots or recordings for UI changes
  • Complexity: High (200 points) — complex engineering work touching multiple modules

Acceptance Criteria

  • Unverified SME sees gate screen
  • Wizard steps are not reachable
  • Verify CTA is visible
  • Spec stable under 30s
  • Uses mock wallet helpers

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions