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