Skip to content

🤖 tests: WorkspaceHeartbeatModal global-defaults test reads the interval before getConfig resolves (flake) #6093

Description

@ThomasK33

WorkspaceHeartbeatModal > loads global heartbeat defaults when the workspace has no saved heartbeat config failed once in a merge group. That failure removed #6085 from the merge queue.

Likely cause (a test race, not verified by a repro): the test calls waitFor(() => getByLabelText("Heartbeat interval in minutes")). That resolves as soon as the field renders, possibly before config.getConfig() has resolved and replaced the built-in default (30 min) with the global default (6 min). Then expect(value).toBe("6") runs outside waitFor and reads 30.

Fix: assert the value inside waitFor (wait for "6"), or await getConfigMock before reading the field. The coordinator desk owns this issue.


Generated with xum • Model: anthropic:claude-opus-5-5 • Thinking: high

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions