Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
it('waitsForAttributeMatch should wait until an element has a attribute test which values matches /match/', () => {
const attr = 'test';
waitForAttributeMatch(waitsPage.waitForAttribute, attr, /match/);
expect(waitsPage.waitForAttribute.getAttribute(attr)).toBe('match');
});
it('waitForAttributeMatch should wait until an element has a attribute test which values matches /match/', async () => {
const attr = 'test';
await waitForAttributeMatch(waitsPage.waitForAttribute, attr, /match/);
await expect(
getElementAttributeValue(waitsPage.waitForAttribute, attr)
).toBe('match');
});