Skip to content

The Filter apply Cypress test has never passed #311

Closed

Description

@HMarzban

Problem

The apply test in apps/webapp/cypress/e2e/editor/filter/filter-apply-and-restore.cy.js has most likely never passed. It has two separate causes:

  1. FilterPanel pushes /editor/<q>. Next routes that to the [...slugs] catch-all, and isReservedSlug('editor') returns notFound. editor became reserved in 7d8ca5257 (2026-06-15), and the spec landed in 30c2be918 (2026-06-17).
  2. useApplyFilters runs only through useEditorAndProvider. EditorPlayground never mounts it, so .heading-fold-hidden never appears on the playground.

Fix

Pick one:

  • Move the apply test to a real pad, or
  • Skip it until the playground supports filtering.

Do not change the production push in FilterPanel to suit a test harness.

Related: #276.

Activity

  1. added
    bug
    on Sep 23, 2026
  2. HMarzban commented on Oct 15, 2026

    @HMarzban
    CollaboratorAuthor

    Related issues


    Cross-link review, 2026-10-15. Generated by Claude Code

  3. HMarzban commented on Oct 24, 2026

    @HMarzban
    CollaboratorAuthor

    Fixed by 6be36fcf8 (2026-10-19, on main). It moved the filter specs to a real pad through visitSeededPad.

    On 2026-10-23, all three editor/filter/* specs passed on b131fc7b1, run locally with make dev-local and NEXT_PUBLIC_E2E=true. These specs do not run in CI yet; #477 tracks that.

    Closing. Tracked from #575.

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

    DevOpsbug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions