mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
Fixes https://github.com/elastic/kibana/issues/29373 Fixes https://github.com/elastic/kibana/issues/29833 This flaky test is caused by the filter input box not being filled in completely. I was able to reproduce this once locally, but only after running the tests a couple times. To fix this I tried switching to the `testSubjects.setValue()` function, which focuses the input and clears its value before attempting to type into the field. This seems to have a higher success rate as I was able to run the test 40 times after making the change without a failure.
This commit is contained in:
parent
e433e80837
commit
7bd313786e
1 changed files with 1 additions and 2 deletions
|
@ -400,8 +400,7 @@ export function VisualizePageProvider({ getService, getPageObjects }) {
|
|||
* @param {*} aggregationId the ID if the aggregation. On Tests, it start at from 2
|
||||
*/
|
||||
async setFilterAggregationValue(filterValue, filterIndex = 0, aggregationId = 2) {
|
||||
const inputField = await testSubjects.find(`visEditorFilterInput_${aggregationId}_${filterIndex}`);
|
||||
await inputField.type(filterValue);
|
||||
await testSubjects.setValue(`visEditorFilterInput_${aggregationId}_${filterIndex}`, filterValue);
|
||||
}
|
||||
|
||||
async addNewFilterAggregation() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue