Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
it('getAttribute should wait for an element and should resolve to the requested attribute', () => {
expect(
getElementAttributeValue(
helpersPage.getAttributeContainer,
'data-value'
)
).toBe('test-value');
});
});
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');
});
it('getAttribute should wait for an element and should resolve to the requested attribute', async () => {
await expect(
getElementAttributeValue(
helpersPage.getAttributeContainer,
'data-value'
)
).toBe('test-value');
});
});