Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
it('waitForElementCountToBeGreaterThan should wait for until a list has more thatn 2 items', () => {
waitForElementCountToBeGreaterThan(waitsPage.waitForElementCount, 2);
expect(waitsPage.waitForElementCount.count()).toBe(3);
});
it('waitForElementCountToBeGreaterThan should wait for until a list has more thatn 2 items', async () => {
await waitForElementCountToBeGreaterThan(
waitsPage.waitForElementCount,
2
);
await expect(waitsPage.waitForElementCount.count()).toBe(3);
});