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