Skip to content

test(ui-kit): the artifact static-loading check still races with the file tree's loading placeholder #3340

Closed

Description

@schlessera

Problem

artifact full state matrix light 1280 preserves named static loading and truthful controls checks every .bk-ghost element on the page. At 1280px the file panes also show the file tree's own "Loading files" placeholder, and it is removed as soon as the directory listing arrives. locator.evaluateAll collects the elements in one browser task and runs the check in a later one. If the tree placeholder is removed in between, its detached ghosts report an empty animationName and REDUCED_MOTION_STATIC_LOADING fails. Nothing is animating: this is a test race. It caused red-main incident #3315.

#3334, the declared fix for #3315, narrows the window with a two-frame wait. A deterministic forcing still fails on #3334's head 780f13661 (["","","","","none","none","none","none","none"]). Full evidence: #3315 (comment)

Acceptance criteria

  • The check reads only the file viewer's own loading area (getByRole("group", { name: "Loading file", exact: true }).locator(".bk-ghost")), with no added waits, retries or timeout changes.
  • The deterministic forcing fails on the current main and passes on the fix. The forcing holds the tree listing and removes the tree placeholder between the query and the check. It is temporary and not committed.
  • A loaded run of light 1280, with 16 busy cores and at least 80 runs, shows no REDUCED_MOTION_STATIC_LOADING.

A fix exists on branch fix/3315-artifact-static-loading (head 407f1e12b, based on c23a5811c). It lands as an ordinary PR after #3315 clears.

Refs #3315, #3334.

Blocked by #3401

Activity

  1. added
    type: testCoverage, harness or proof work with no behaviour change.
    area: ui-reactReact chat/files/voice components, stores, WebSocket transport.
    area: ui-kitThe presentational design kit: components, tokens, Storybook, visual baselines.
    priority: p1Scheduled into the current or next milestone.
    agent-readyContext and acceptance criteria are complete enough for an agent to take this unattended.
    on Nov 2, 2026
  2. added this to the 0.45.0 milestone on Nov 2, 2026
  3. added
    blockedWaiting on another issue or an upstream dependency. Say which in the body.
    on Nov 3, 2026
  4. removed
    blockedWaiting on another issue or an upstream dependency. Say which in the body.
    on Nov 3, 2026
  5. schlessera commented on Nov 3, 2026

    @schlessera
    OwnerAuthor

    Blocker #3401 closed: its fix, #3433, merged to main as adf371ffa. Removing blocked. PR #3341 is queued for confirmation against the new main.

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

    agent-readyContext and acceptance criteria are complete enough for an agent to take this unattended.area: ui-kitThe presentational design kit: components, tokens, Storybook, visual baselines.area: ui-reactReact chat/files/voice components, stores, WebSocket transport.priority: p1Scheduled into the current or next milestone.type: testCoverage, harness or proof work with no behaviour change.

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions