mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
[Discover] Address flaky filters modal in alerting tests (#152548)
Closes https://github.com/elastic/kibana/issues/152477 Closes https://github.com/elastic/kibana/issues/152478 Closes https://github.com/elastic/kibana/issues/152479 150x (alert tests) https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/1978 100x (context tests) https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/1979
This commit is contained in:
parent
4628a9dccc
commit
d8f9b1dc03
2 changed files with 3 additions and 1 deletions
|
@ -48,6 +48,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
|
|||
|
||||
for (const [columnName, value] of TEST_FILTER_COLUMN_NAMES) {
|
||||
await filterBar.addFilter({ field: columnName, operation: 'is', value });
|
||||
await PageObjects.header.waitUntilLoadingHasFinished();
|
||||
}
|
||||
});
|
||||
|
||||
|
@ -82,7 +83,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
|
|||
await retry.waitFor('next anchor timestamp matches previous anchor timestamp', async () => {
|
||||
// get the timestamp of the first row
|
||||
const firstContextTimestamp = await getTimestamp(false);
|
||||
await dataGrid.clickRowToggle({ isAnchorRow: true });
|
||||
await dataGrid.clickRowToggle({ rowIndex: 0 });
|
||||
|
||||
const rowActions = await dataGrid.getRowActions({ rowIndex: 0 });
|
||||
await rowActions[1].click();
|
||||
|
|
|
@ -304,6 +304,7 @@ export class FilterBarService extends FtrService {
|
|||
|
||||
await this.testSubjects.clickWhenNotDisabled('saveFilter');
|
||||
});
|
||||
await this.testSubjects.waitForDeleted('saveFilter');
|
||||
await this.header.awaitGlobalLoadingIndicatorHidden();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue