How to use the eyes.it.it function in eyes

To help you get started, we’ve selected a few eyes 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-tpa / src / components / Text / Text.e2e.ts View on Github external
describe('Text', () => {
  const storyUrl = createStoryUrl({
    kind: 'Components',
    story: 'Text',
    withExamples: true,
  });
  const dataHook = 'storybook-Text';

  beforeEach(() => browser.get(storyUrl));

  eyes.it('should render', async () => {
    const driver = textTestkitFactory({ dataHook });
    await waitForVisibilityOf(driver.element(), 'Cannot find Text');
    expect(await driver.element().isDisplayed()).toBe(true);
  });
});
github wix / wix-ui-tpa / src / components / Button / Button.e2e.ts View on Github external
describe('Button', () => {
  const storyUrl = createStoryUrl({
    kind: 'Components',
    story: 'Button',
    withExamples: true,
  });
  const dataHook = 'storybook-Button';

  beforeEach(() => browser.get(storyUrl));

  eyes.it('should render', async () => {
    const driver = buttonTestkitFactory({ dataHook });
    await waitForVisibilityOf(await driver.element(), 'Cannot find Button');
    expect((await driver.element()).isDisplayed()).toBe(true);
  });
});
github wix / wix-ui-tpa / src / components / StripCard / StripCard.e2e.ts View on Github external
describe('stripCard', () => {
  const storyUrl = createStoryUrl({
    kind: 'Bookings',
    story: 'StripCard',
    withExamples: true,
  });
  const dataHook = 'storybook-StripCard';

  beforeEach(() => browser.get(storyUrl));

  eyes.it('should render', async () => {
    const driver = stripCardTestkitFactory({ dataHook });
    await waitForVisibilityOf(await driver.element(), 'Cannot find StripCard');
    expect((await driver.element()).isDisplayed()).toBe(true);
  });
});
github wix / wix-ui-tpa / src / components / Input / Input.e2e.ts View on Github external
describe('Input', () => {
  const storyUrl = createStoryUrl({
    kind: 'Components',
    story: 'Input',
    withExamples: true,
  });
  const dataHook = 'storybook-Input';

  beforeEach(() => browser.get(storyUrl));

  eyes.it('should render', async () => {
    const driver = inputTestkitFactory({ dataHook });
    await waitForVisibilityOf(driver.element(), 'Cannot find Input');
    expect(await driver.element().isDisplayed()).toBe(true);
  });
});
github wix / wix-ui-backoffice / src / components / Input / Input.e2e.ts View on Github external
describe('Input', () => {
  const storyUrl = getStoryUrl('Components', 'Input');
  const dataHook = 'storybook-input';

  beforeEach(() => browser.get(storyUrl));

  eyes.it('should render', () => {
    const driver = inputTestkitFactory({dataHook});

    expect(driver.element().isDisplayed()).toBe(true);
  }, {version: 'story with value'});
});

eyes

a customizable value inspector

Unknown
Latest version published 12 years ago

Package Health Score

59 / 100
Full package analysis

Popular eyes functions