Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function waitForCondition(fn, label) {
return testingLibrary.wait(() => {
if (!fn()) throw new Error(label || 'Condition not met');
});
}
export async function waitForChange(button: Element): Promise {
await wait(() => expect(button).not.toHaveClass('is-changing'))
}
async function fireEvent(...args) {
dtlFireEvent(...args)
await wait()
}