Skip to content

Conversation

@dmlemeshko
Copy link
Contributor

@dmlemeshko dmlemeshko commented Oct 22, 2025

Summary

Fixing discover flaky test, caused by filter value input field not being properly populated. I believe it is also related to the recent EUI update and probably shadow changes in elastic/eui#9088 require us to wait before typing in input field.

@kibanamachine
Copy link
Contributor

Flaky Test Runner Stats

🟠 Some tests failed. - kibana-flaky-test-suite-runner#9607

[❌] x-pack/platform/plugins/private/discover_enhanced/test/scout/ui/parallel.playwright.config.ts: 6/20 tests passed.

see run history

@kibanamachine
Copy link
Contributor

Flaky Test Runner Stats

🟠 Some tests failed. - kibana-flaky-test-suite-runner#9609

[❌] x-pack/platform/plugins/private/discover_enhanced/test/scout/ui/parallel.playwright.config.ts: 9/20 tests passed.

see run history

@kibanamachine
Copy link
Contributor

Flaky Test Runner Stats

🎉 All tests passed! - kibana-flaky-test-suite-runner#9611

[✅] x-pack/platform/plugins/private/discover_enhanced/test/scout/ui/parallel.playwright.config.ts: 20/20 tests passed.

see run history

@dmlemeshko dmlemeshko self-assigned this Oct 22, 2025
@dmlemeshko dmlemeshko changed the title [scout] wait for filter to be enabled, check filter after creation [scout] fix discover flaky test Oct 22, 2025
@kibanamachine
Copy link
Contributor

Flaky Test Runner Stats

🎉 All tests passed! - kibana-flaky-test-suite-runner#9614

[✅] x-pack/platform/plugins/private/discover_enhanced/test/scout/ui/parallel.playwright.config.ts: 20/20 tests passed.

see run history

@dmlemeshko dmlemeshko added release_note:skip Skip the PR/issue when compiling release notes backport:version Backport to applied version labels v9.2.0 v9.3.0 v9.1.6 labels Oct 22, 2025
@dmlemeshko dmlemeshko marked this pull request as ready for review October 22, 2025 15:55
@dmlemeshko dmlemeshko requested a review from a team as a code owner October 22, 2025 15:55
Comment on lines +40 to +42
await expect(this.page.testSubj.locator('filterOperatorList')).not.toHaveClass(
/euiComboBox-isDisabled/
);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

waiting for operator comboBox to be enabled

await this.page.testSubj.locator('filterParams').locator('input').fill(options.value);
const filterParamsInput = this.page.locator('[data-test-subj="filterParams"] input');
await expect(filterParamsInput).not.toHaveAttribute('disabled');
// await this.page.waitForTimeout(100); // wait for input to be ready
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this line forgotten?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is for the future to save time on researching the fix. Let's keep it so that we quickly add it if more failures to come.

Comment on lines +50 to +51
await expect(filterParamsInput).not.toHaveAttribute('disabled');
// await this.page.waitForTimeout(100); // wait for input to be ready
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

According flaky-test-runner waiting for input to "lose" disabled attr solve flakiness, but I'm keeping timeout for the future as an alternative.

@kibanamachine
Copy link
Contributor

Flaky Test Runner Stats

🎉 All tests passed! - kibana-flaky-test-suite-runner#9615

[✅] x-pack/platform/plugins/private/discover_enhanced/test/scout/ui/parallel.playwright.config.ts: 20/20 tests passed.

see run history

Comment on lines +52 to +54
await expect(filterParamsInput).toBeEditable();
await filterParamsInput.focus();
await filterParamsInput.pressSequentially(options.value, { delay: 100 });
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Making typing more realistic and slower

@dmlemeshko dmlemeshko enabled auto-merge (squash) October 22, 2025 16:22
@kibanamachine
Copy link
Contributor

Flaky Test Runner Stats

🎉 All tests passed! - kibana-flaky-test-suite-runner#9617

[✅] x-pack/platform/plugins/private/discover_enhanced/test/scout/ui/parallel.playwright.config.ts: 25/25 tests passed.

see run history

@dmlemeshko dmlemeshko merged commit 68841a2 into elastic:main Oct 22, 2025
24 checks passed
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 9.1, 9.2

https://github.com/elastic/kibana/actions/runs/18725161507

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

✅ unchanged

cc @dmlemeshko

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Oct 22, 2025
## Summary

Fixing discover flaky test, caused by filter value input field not being
properly populated. I believe it is also related to the recent EUI
update and probably shadow changes in
elastic/eui#9088 require us to wait before
typing in input field.

(cherry picked from commit 68841a2)
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Oct 22, 2025
## Summary

Fixing discover flaky test, caused by filter value input field not being
properly populated. I believe it is also related to the recent EUI
update and probably shadow changes in
elastic/eui#9088 require us to wait before
typing in input field.

(cherry picked from commit 68841a2)
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
9.1
9.2

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

@kibanamachine kibanamachine added the backport missing Added to PRs automatically when the are determined to be missing a backport. label Oct 24, 2025
@kibanamachine
Copy link
Contributor

Looks like this PR has backport PRs but they still haven't been merged. Please merge them ASAP to keep the branches relatively in sync.
cc: @dmlemeshko

6 similar comments
@kibanamachine
Copy link
Contributor

Looks like this PR has backport PRs but they still haven't been merged. Please merge them ASAP to keep the branches relatively in sync.
cc: @dmlemeshko

@kibanamachine
Copy link
Contributor

Looks like this PR has backport PRs but they still haven't been merged. Please merge them ASAP to keep the branches relatively in sync.
cc: @dmlemeshko

@kibanamachine
Copy link
Contributor

Looks like this PR has backport PRs but they still haven't been merged. Please merge them ASAP to keep the branches relatively in sync.
cc: @dmlemeshko

@kibanamachine
Copy link
Contributor

Looks like this PR has backport PRs but they still haven't been merged. Please merge them ASAP to keep the branches relatively in sync.
cc: @dmlemeshko

@kibanamachine
Copy link
Contributor

Looks like this PR has backport PRs but they still haven't been merged. Please merge them ASAP to keep the branches relatively in sync.
cc: @dmlemeshko

@kibanamachine
Copy link
Contributor

Looks like this PR has backport PRs but they still haven't been merged. Please merge them ASAP to keep the branches relatively in sync.
cc: @dmlemeshko

kibanamachine added a commit that referenced this pull request Nov 4, 2025
# Backport

This will backport the following commits from `main` to `9.1`:
- [[scout] fix discover flaky test
(#240068)](#240068)

<!--- Backport version: 9.6.6 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT [{"author":{"name":"Dzmitry
Lemechko","email":"[email protected]"},"sourceCommit":{"committedDate":"2025-10-22T17:52:31Z","message":"[scout]
fix discover flaky test (#240068)\n\n## Summary\n\nFixing discover flaky
test, caused by filter value input field not being\nproperly populated.
I believe it is also related to the recent EUI\nupdate and probably
shadow changes in\nhttps://github.com/elastic/eui/pull/9088 require us
to wait before\ntyping in input
field.","sha":"68841a2793084c7a4a5bf36741e1572d09ccb1b1","branchLabelMapping":{"^v9.3.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","backport:version","v9.2.0","v9.3.0","v9.1.6"],"title":"[scout]
fix discover flaky
test","number":240068,"url":"https://github.com/elastic/kibana/pull/240068","mergeCommit":{"message":"[scout]
fix discover flaky test (#240068)\n\n## Summary\n\nFixing discover flaky
test, caused by filter value input field not being\nproperly populated.
I believe it is also related to the recent EUI\nupdate and probably
shadow changes in\nhttps://github.com/elastic/eui/pull/9088 require us
to wait before\ntyping in input
field.","sha":"68841a2793084c7a4a5bf36741e1572d09ccb1b1"}},"sourceBranch":"main","suggestedTargetBranches":["9.2","9.1"],"targetPullRequestStates":[{"branch":"9.2","label":"v9.2.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.3.0","branchLabelMappingKey":"^v9.3.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/240068","number":240068,"mergeCommit":{"message":"[scout]
fix discover flaky test (#240068)\n\n## Summary\n\nFixing discover flaky
test, caused by filter value input field not being\nproperly populated.
I believe it is also related to the recent EUI\nupdate and probably
shadow changes in\nhttps://github.com/elastic/eui/pull/9088 require us
to wait before\ntyping in input
field.","sha":"68841a2793084c7a4a5bf36741e1572d09ccb1b1"}},{"branch":"9.1","label":"v9.1.6","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Dzmitry Lemechko <[email protected]>
kibanamachine added a commit that referenced this pull request Nov 4, 2025
# Backport

This will backport the following commits from `main` to `9.2`:
- [[scout] fix discover flaky test
(#240068)](#240068)

<!--- Backport version: 9.6.6 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT [{"author":{"name":"Dzmitry
Lemechko","email":"[email protected]"},"sourceCommit":{"committedDate":"2025-10-22T17:52:31Z","message":"[scout]
fix discover flaky test (#240068)\n\n## Summary\n\nFixing discover flaky
test, caused by filter value input field not being\nproperly populated.
I believe it is also related to the recent EUI\nupdate and probably
shadow changes in\nhttps://github.com/elastic/eui/pull/9088 require us
to wait before\ntyping in input
field.","sha":"68841a2793084c7a4a5bf36741e1572d09ccb1b1","branchLabelMapping":{"^v9.3.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","backport:version","v9.2.0","v9.3.0","v9.1.6"],"title":"[scout]
fix discover flaky
test","number":240068,"url":"https://github.com/elastic/kibana/pull/240068","mergeCommit":{"message":"[scout]
fix discover flaky test (#240068)\n\n## Summary\n\nFixing discover flaky
test, caused by filter value input field not being\nproperly populated.
I believe it is also related to the recent EUI\nupdate and probably
shadow changes in\nhttps://github.com/elastic/eui/pull/9088 require us
to wait before\ntyping in input
field.","sha":"68841a2793084c7a4a5bf36741e1572d09ccb1b1"}},"sourceBranch":"main","suggestedTargetBranches":["9.2","9.1"],"targetPullRequestStates":[{"branch":"9.2","label":"v9.2.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.3.0","branchLabelMappingKey":"^v9.3.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/240068","number":240068,"mergeCommit":{"message":"[scout]
fix discover flaky test (#240068)\n\n## Summary\n\nFixing discover flaky
test, caused by filter value input field not being\nproperly populated.
I believe it is also related to the recent EUI\nupdate and probably
shadow changes in\nhttps://github.com/elastic/eui/pull/9088 require us
to wait before\ntyping in input
field.","sha":"68841a2793084c7a4a5bf36741e1572d09ccb1b1"}},{"branch":"9.1","label":"v9.1.6","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Dzmitry Lemechko <[email protected]>
@kibanamachine kibanamachine added v9.2.1 and removed backport missing Added to PRs automatically when the are determined to be missing a backport. labels Nov 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:version Backport to applied version labels release_note:skip Skip the PR/issue when compiling release notes v9.1.6 v9.1.7 v9.2.0 v9.2.1 v9.3.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants