Skip to content

Commit

Permalink
Add retry to dropdown selection when element is not found to headless…
Browse files Browse the repository at this point in the history
… mode
  • Loading branch information
stratoula committed Jul 23, 2020
1 parent 8ca01dd commit 1b62f54
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/functional/page_objects/visual_builder_page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -279,8 +279,10 @@ export function VisualBuilderPageProvider({ getService, getPageObjects }: FtrPro
decimalPlaces?: string;
}) {
if (from) {
const fromCombobox = await find.byCssSelector('[id$="from-row"] .euiComboBox');
await comboBox.setElement(fromCombobox, from, { clickWithMouse: true });
await retry.try(async () => {
const fromCombobox = await find.byCssSelector('[id$="from-row"] .euiComboBox');
await comboBox.setElement(fromCombobox, from, { clickWithMouse: true });
});
}
if (to) {
const toCombobox = await find.byCssSelector('[id$="to-row"] .euiComboBox');
Expand Down

0 comments on commit 1b62f54

Please sign in to comment.