File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
packages/compass-e2e-tests/helpers/commands Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff 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 . $ (
Original file line number Diff line number Diff line change @@ -26,6 +26,8 @@ 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 . $ ( `[aria-label="${ comboboxValue } "]` )
31+ ) ;
3032 await comboboxListSelectorElement . waitForDisplayed ( { reverse : true } ) ;
3133}
You can’t perform that action at this time.
0 commit comments