Skip to content

test(ats): kanban e2e passes on an empty board; seed 006 only touches core.applications #538

Closed

Description

@thinkclay

tests/e2e/office/test-office-applications-kanban.spec.ts asserts that six kanban columns render, then exercises drag-and-drop.

Column structure renders fine on an empty board. The structural assertions pass against zero data, so the suite has been green throughout the period in which useApplications() returned a hardcoded empty array and no application has ever appeared in /office. The suite provides no signal on the actual failure.

Fixture problem

packages/supabase/seeds/006_seed-unicorn-ats.sql contains 3 INSERTs, all into core.applications. No messages, no activity, no assignments, no interview slots, no stage variety. Even a correct list endpoint would render a nearly-empty board with no metrics.

Work

  1. Extend seed 006 beyond core.applications: application_messages, application_activity, application_assignments, interview_slots, and applications spread across all 7 stages with varied source values.
  2. Assert a non-zero card count before asserting drag behaviour, so an empty board fails the suite instead of passing it.
  3. Add assertions that a drag actually persists — reload and re-check the column.
  4. Add contract tests for the new employer endpoints covering the 403 paths (wrong org, no role_assignments row) as first-class cases, not afterthoughts.

Acceptance

  • Reverting the employer list endpoint to an empty array turns this suite red.

Activity

  1. added
    bug
    agent-ready
    on Aug 4, 2026
  2. thinkclay commented on Aug 10, 2026

    @thinkclay
    ContributorAuthor

    Seed and precondition work landed in #554. The remaining half — the suite is excluded from testMatch and its auth setup sits outside testDir, so it never runs — is tracked in #553.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    ATSDXagent-readybugpriority: medium

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions