Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
it('selectOptionByIndex should select an option', () => {
const option = 'option2';
selectOptionByIndex(actionsPage.select, 1);
waitForTextToBe(actionsPage.selectResult, option);
expect(getText(actionsPage.selectResult)).toBe(option);
});
it('selectOptionByIndex should select an option', async () => {
const option = 'option2';
await selectOptionByIndex(actionsPage.select, 1);
await waitForTextToBe(actionsPage.selectResult, option);
await expect(getText(actionsPage.selectResult)).toBe(option);
});