How to use wix-ui-test-utils - 10 common examples

To help you get started, we’ve selected a few wix-ui-test-utils 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 / testkit / index.ts View on Github external
/* eslint-disable */
/*
 * DO NOT EDIT THIS FILE!
 * YOUR CHANGES WILL BE OVERWRITTEN!
 * FILE IS BASED ON .wuf/testkits/vanilla.template.ejs
 * AND GENERATED BY `wuf export-teskits`
 */
import {
  testkitFactoryCreator,
  uniTestkitFactoryCreator,
} from 'wix-ui-test-utils/vanilla';


import { autocompleteDriverFactory } from '../components/Autocomplete/Autocomplete.driver';
export const autocompleteTestkitFactory = testkitFactoryCreator(autocompleteDriverFactory);

import { avatarDriverFactory } from '../components/Avatar/Avatar.driver';
export const avatarTestkitFactory = uniTestkitFactoryCreator(avatarDriverFactory);

import { buttonDriverFactory } from '../components/Button/Button.driver';
export const buttonTestkitFactory = uniTestkitFactoryCreator(buttonDriverFactory);

import { cardDriverFactory } from '../components/Card/Card.driver';
export const cardTestkitFactory = uniTestkitFactoryCreator(cardDriverFactory);

import { gridDriverFactory } from '../components/Grid/Grid.driver';
export const gridTestkitFactory = uniTestkitFactoryCreator(gridDriverFactory);

import { iconToggleDriverFactory } from '../components/IconToggle/IconToggle.driver';
export const iconToggleTestkitFactory = testkitFactoryCreator(iconToggleDriverFactory);
github wix / wix-ui-tpa / src / components / Calendar / Grid / Weekly / Item / DefaultWeeklyItem.driver.ts View on Github external
export const itemDriverFactory = (base: UniDriver): itemDriver => {
  return {
    ...baseUniDriverFactory(base),
    // rowSpan: async () => {
    //   return Number(await base.attr(GridDataKeys.rowSpan));
    // },
    // columnSpan: async () => {
    //   return Number(await base.attr(GridDataKeys.columnSpan));
    // },
  };
};
github wix / wix-ui-backoffice / src / testkit / index.ts View on Github external
export const checkboxTestkitFactory = testkitFactoryCreator(checkboxDriverFactory);

import { textDriverFactory as coreTextDriverFactory, TextDriver as CoreTextDriver } from '../components/core/CoreText/Text.driver';
export const coreTextTestkitFactory = testkitFactoryCreator(coreTextDriverFactory);
export { CoreTextDriver };

import {textDriverFactory, TextDriver} from '../components/Text/Text.driver';
export const textTestkitFactory = testkitFactoryCreator(textDriverFactory);
export {TextDriver};

import { fullTextViewDriverFactory, FullTextViewDriver } from '../components/FullTextView/FullTextView.driver';
export const fullTextViewTestkitFactory = testkitFactoryCreator(fullTextViewDriverFactory);
export { FullTextViewDriver };

import { autocompleteDriverFactory } from '../components/Autocomplete/Autocomplete.driver';
export const autocompleteTestkitFactory = testkitFactoryCreator(autocompleteDriverFactory);

import { toggleSwitchDriverFactory } from '../components/ToggleSwitch/ToggleSwitch.driver';
export const toggleSwitchTestkitFactory = testkitFactoryCreator(toggleSwitchDriverFactory);

import { counterBadgeDriverFactory as stylableCounterBadgeDriverFactory, CounterBadgeDriver } from '../components/StylableCounterBadge/CounterBadge.driver';
export const stylableCounterBadgeTestkitFactory = testkitFactoryCreator(stylableCounterBadgeDriverFactory);
export { CounterBadgeDriver };

import { labelWithOptionsDriverFactory } from '../components/LabelWithOptions/LabelWithOptions.driver';
export const labelWithOptionsTestkitFactory = testkitFactoryCreator(labelWithOptionsDriverFactory);

import { labelDriverFactory } from '../components/Label/Label.driver';
export const labelTestkitFactory = testkitFactoryCreator(labelDriverFactory);

import { floatingHelperDriverFactory, FloatingHelperDriver } from '../components/FloatingHelper/FloatingHelper.driver';
export const floatingHelperTestkitFactory = testkitFactoryCreator(floatingHelperDriverFactory);
github wix / wix-ui-backoffice / src / testkit / index.ts View on Github external
import { fullTextViewDriverFactory, FullTextViewDriver } from '../components/FullTextView/FullTextView.driver';
export const fullTextViewTestkitFactory = testkitFactoryCreator(fullTextViewDriverFactory);
export { FullTextViewDriver };

import { autocompleteDriverFactory } from '../components/Autocomplete/Autocomplete.driver';
export const autocompleteTestkitFactory = testkitFactoryCreator(autocompleteDriverFactory);

import { toggleSwitchDriverFactory } from '../components/ToggleSwitch/ToggleSwitch.driver';
export const toggleSwitchTestkitFactory = testkitFactoryCreator(toggleSwitchDriverFactory);

import { counterBadgeDriverFactory as stylableCounterBadgeDriverFactory, CounterBadgeDriver } from '../components/StylableCounterBadge/CounterBadge.driver';
export const stylableCounterBadgeTestkitFactory = testkitFactoryCreator(stylableCounterBadgeDriverFactory);
export { CounterBadgeDriver };

import { labelWithOptionsDriverFactory } from '../components/LabelWithOptions/LabelWithOptions.driver';
export const labelWithOptionsTestkitFactory = testkitFactoryCreator(labelWithOptionsDriverFactory);

import { labelDriverFactory } from '../components/Label/Label.driver';
export const labelTestkitFactory = testkitFactoryCreator(labelDriverFactory);

import { floatingHelperDriverFactory, FloatingHelperDriver } from '../components/FloatingHelper/FloatingHelper.driver';
export const floatingHelperTestkitFactory = testkitFactoryCreator(floatingHelperDriverFactory);
export {FloatingHelperDriver};

import {thumbnailDriverFactory, ThumbnailDriver} from '../components/Thumbnail/Thumbnail.driver';
export const thumbnailTestkitFactory = testkitFactoryCreator(thumbnailDriverFactory);
export {ThumbnailDriver};

import {addressInputDriverFactory} from '../components/AddressInput/AddressInput.driver';
export const addressInputTestkitFactory = testkitFactoryCreator(addressInputDriverFactory);

import { timePickerDriverFactory } from '../components/TimePicker/TimePicker.driver';