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