Skip to content

Intermittent Page View test setup: filterViewer remains unset after opening preview #578

Open

Description

@tacman

Observed while validating an unrelated zoomToRegion fix; reproduced with unmodified application source at develop a59c63ef406b7696769e5bbaba18236ea98c415c after yarn install --frozen-lockfile and make build build-dev.

Environment: macOS arm64, Node 26.8.1, Elm 0.19.1, Playwright 1.65.0 / Chromium 158.0.8127.18. The OSD 6 project metadata was corrected locally from 6.0.2 to the locked/installed 6.1.1 for focused checks; no application fix was applied.

Reproduction

yarn playwright test browser-tests/filter-invalidation.spec.ts browser-tests/thumbnail-lazy.spec.ts \
  --grep 'right-to-left|batches Page View tone' --workers=1 --repeat-each=3

The filter-invalidation.spec.ts beforeEach waits until main-viewer.loadingIndexes.size === 0, clicks Page View, then waits for:

(window as any).diva.filterViewer?.world.getItemCount()

Expected: 1. Actual on failing runs: undefined for the full 5-second poll timeout.

The focused baseline run failed the tone-filter setup 1/3 times with OSD 5.0.1 and 1/3 times with OSD 6.1.1. Broader runs also hit this setup failure in several other filter-invalidation cases and the Page View rotation/mirror baseline.

This is a report of an intermittent test/setup failure, not a confirmed diagnosis of the underlying cause. It may be a preview-initialization race or an insufficient readiness condition in the test. The failure happens before the filter assertions execute, so it does not establish incorrect filter output.

This is distinct from #574: no repeated non-CORS block/unblock sequence is required; the preview viewer is unset at initial setup.

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

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions