Skip to content

Commit 7320214

Browse files
committed
Fix index creation interactions with ComboBox
1 parent b588912 commit 7320214

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

packages/compass-e2e-tests/helpers/commands/create-index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,10 @@ export async function createIndex(
5555
await createModal.waitForDisplayed();
5656

5757
// Select / type field name
58-
await browser.setValueVisible(
58+
await browser.setComboBoxValue(
5959
Selectors.createIndexModalFieldNameSelectInput(createRowIndex),
6060
fieldName
6161
);
62-
await browser.keys(['Enter']);
6362

6463
// Select field type
6564
const fieldTypeSelect = browser.$(

packages/compass-e2e-tests/helpers/commands/set-combo-box-value.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ export async function setComboBoxValue(
2626
);
2727
await comboboxListSelectorElement.waitForDisplayed();
2828
await browser.setValueVisible(comboboxInputSelector, comboboxValue);
29-
await browser.keys(['Enter']);
29+
await browser.clickVisible(
30+
comboboxListSelectorElement.$(
31+
// Handle existing as well as new values
32+
`[aria-label="${comboboxValue}"],[aria-label='Field: "${comboboxValue}"']`
33+
)
34+
);
3035
await comboboxListSelectorElement.waitForDisplayed({ reverse: true });
3136
}

0 commit comments

Comments
 (0)