How to use the wix-ui-core/drivers/protractor.linearProgressBarDriverFactory 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 / LinearProgressBar / LinearProgressBar.protractor.driver.ts View on Github external
export const linearProgressBarDriverFactory: DriverFactory = (element: ElementFinder): LinearProgressBarDriver => {
  const errorIcon = () => element.$(`[data-hook='error-icon']`);
  return {
    ...coreLinearProgressBarDriverFactory(element),
    showError: () => browser.actions().mouseMove(errorIcon()).perform()
  };
};