Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
eyes.it('should be indetermined', async () => {
await autoExampleDriver.setProps({indeterminate: true});
const driver = checkboxTestkitFactory({dataHook});
// TODO: implement driver.isIndeterminate() in wix-ui-core
// expect(await driver.isIndeterminate()).toBeTruthy();
});
});
it('should be unchecked and not disabled by default', async () => {
const driver = checkboxTestkitFactory({dataHook});
expect(await driver.isChecked()).toBe(false);
expect(await driver.isDisabled()).toBe(false);
});
it('should be checked when clicked', async () => {
const driver = checkboxTestkitFactory({dataHook});
expect(await driver.isChecked()).toBe(false);
await driver.click();
expect(await driver.isChecked()).toBe(true);
});
});
eyes.it('should be unchecked', async () => {
const driver = checkboxTestkitFactory({dataHook});
expect(await driver.isChecked()).toBeFalsy();
});