Skip to content

[9.4] Fix to the jest test - FilterLabel should render properly (#265750)#265815

Open
kibanamachine wants to merge 1 commit intoelastic:9.4from
kibanamachine:backport/9.4/pr-265750
Open

[9.4] Fix to the jest test - FilterLabel should render properly (#265750)#265815
kibanamachine wants to merge 1 commit intoelastic:9.4from
kibanamachine:backport/9.4/pr-265750

Conversation

@kibanamachine
Copy link
Copy Markdown
Contributor

Backport

This will backport the following commits from main to 9.4:

Questions ?

Please refer to the Backport tool documentation

…5750)

Resolves elastic#253320

This is a follow-up to elastic#262207.

### Fix
**Three changes to filter_label.test.tsx:**
1. `jest.setTimeout(10 * 1000)` → `jest.setTimeout(30 * 1000)` — gives
enough headroom on stressed CI agents.
2. Replaced `waitFor(() => getByText(...))` with `await
screen.findByText(...) `— copies the pattern used by the non-flaky
`should display invert filter `sibling test.
3. Re-enabled the suite.
**Verification**
- [x] 155/155 consecutive local runs pass, 0 failures.
Buildkite flaky-test-runner doesn't cover jest tests, so local runs are
the only option.

Made with Claude.

(cherry picked from commit 45c4cd9)
@kibanamachine kibanamachine added the backport This PR is a backport of another PR label Apr 27, 2026
@kibanamachine kibanamachine enabled auto-merge (squash) April 27, 2026 15:00
@kibanamachine
Copy link
Copy Markdown
Contributor Author

kibanamachine commented Apr 27, 2026

💔 Build Failed

Failed CI Steps

Test Failures

  • [job] [logs] Jest Tests #8 / FilterLabel should render properly
  • [job] [logs] Jest Tests #8 / FilterLabel should render properly
  • [job] [logs] affected Scout: [ observability / apm ] plugin / local-stateful-classic - Service map - accessibility - focus management and visible indicators work correctly

Metrics [docs]

✅ unchanged

History

cc @ana-davydova

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

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants