How to use the wix-ui-core/dist/src/testkit/protractor.checkboxTestkitFactory function in wix-ui-core

To help you get started, we’ve selected a few wix-ui-core examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github wix / wix-ui-backoffice / src / components / Checkbox / Checkbox.e2e.ts View on Github external
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();
    });
  });
github wix / wix-ui-backoffice / src / components / Checkbox / Checkbox.e2e.ts View on Github external
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);
  });
github wix / wix-ui-backoffice / src / components / Checkbox / Checkbox.e2e.ts View on Github external
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);
  });
});
github wix / wix-ui-backoffice / src / components / Checkbox / Checkbox.e2e.ts View on Github external
eyes.it('should be unchecked', async () => {
      const driver = checkboxTestkitFactory({dataHook});
      expect(await driver.isChecked()).toBeFalsy();
    });