Skip to content

Add tests for event action menus and the stateful pages #501

Description

@vidit-admin

Two gaps at the render level, same shape of fix. useEventActions assembles the three action tiers every detail surface renders, and the ⋯ menu it fills is author-only, so no signed-out pass over the app reaches it; OverflowMenu carries its own test for the open / act / dismiss behaviour, but the tier logic deciding which entries exist (close only while the request is open, delete while it is open or closed) has none. Mount the hook against a mock request with a matching and a non-matching viewer. Separately, the 230 frontend tests concentrate in lib/ and components/ui/, and the largest stateful pages carry zero coverage: app/submit/page.tsx (737 LOC, about 20 useState calls) and app/search/page.tsx, whose publish-gating and form-readiness logic is only exercised indirectly. Add render-level tests for the submit publish floor, in the shape app/events/[id]/edit/page.test.tsx already uses over the detection form.

Imported from planning/backlog.md.

Activity

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

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions