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