Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
it('hover should hover on the button', () => {
hover(actionsPage.hoverBtn);
waitToBeDisplayed(actionsPage.hoverResult);
expect(actionsPage.hoverResult.isDisplayed()).toBe(true);
});
it('hover should hover on the button', async () => {
await hover(actionsPage.hoverBtn);
await waitToBeDisplayed(actionsPage.hoverResult);
await expect(actionsPage.hoverResult.isDisplayed()).toBe(true);
});