Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
it('sendKeys should send keys to input the button', async () => {
const text = 'keys to send';
await sendKeys(actionsPage.sendKeysInput, text);
await waitForTextToBe(actionsPage.inputResult, text);
await expect(getText(actionsPage.inputResult)).toBe(text);
});
it('sendKeys should send keys to input the button', () => {
const text = 'keys to send';
sendKeys(actionsPage.sendKeysInput, text);
waitForTextToBe(actionsPage.inputResult, text);
expect(getText(actionsPage.inputResult)).toBe(text);
});
it('should add one and two', () => {
sendKeys(firstNumber, '1');
sendKeys(secondNumber, '2');
click(goButton);
waitForTextToBe(latestResult, '3');
expect(getText(latestResult), '3');
});
});
it('should add one and two', () => {
sendKeys(firstNumber, '1');
sendKeys(secondNumber, '2');
click(goButton);
waitForTextToBe(latestResult, '3');
expect(getText(latestResult), '3');
});
});