Skip to content

Commit

Permalink
second attempt
Browse files Browse the repository at this point in the history
  • Loading branch information
kdelemme committed Nov 25, 2024
1 parent 35739fd commit da4012a
Showing 1 changed file with 10 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,17 @@ export default ({ getService }: FtrProviderContext) => {
});

it('Autocompletion works', async () => {
await retry.waitFor('wait for page to be loaded', async () => {
return testSubjects.exists('superDatePickerToggleQuickMenuButton');
});
await observability.alerts.common.typeInQueryBar('kibana.alert.s');
await testSubjects.existOrFail('autocompleteSuggestion-field-kibana.alert.start-');
await testSubjects.existOrFail('autocompleteSuggestion-field-kibana.alert.status-');

await retry.waitFor('wait for the suggestion to appear', async () => {
await observability.alerts.common.clickOnQueryBar();
return testSubjects.exists('autocompleteSuggestion-field-kibana.alert.start-');
});

await retry.waitFor('wait for the suggestion to appear', async () => {
await observability.alerts.common.clickOnQueryBar();
return testSubjects.exists('autocompleteSuggestion-field-kibana.alert.status-');
});
});

it('Invalid input should not break the page', async () => {
Expand Down

0 comments on commit da4012a

Please sign in to comment.