import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
var _jsxFileName = "/home/builduser/work/57e038ea7326c1ec/packages/wix-design-system/dist/esm/HorizontalTimeline/test/HorizontalTimeline.spec.jsx",
  _this = this;
import _regeneratorRuntime from "@babel/runtime/regenerator";
import React from 'react';
import { createRendererWithUniDriver, cleanup } from '../../utils/test-utils/unit';
import HorizontalTimeline from '../HorizontalTimeline';
import { horizontalTimelinePrivateDriverFactory } from './HorizontalTimeline.private.uni.driver';
describe(HorizontalTimeline.displayName, function () {
  var render = createRendererWithUniDriver(horizontalTimelinePrivateDriverFactory);
  var items = [{
    label: 'active-icon',
    line: 'filled',
    icon: /*#__PURE__*/React.createElement(HorizontalTimeline.ActiveIcon, {
      __self: _this,
      __source: {
        fileName: _jsxFileName,
        lineNumber: 18,
        columnNumber: 13
      }
    })
  }, {
    label: 'default-icon',
    line: 'filled',
    icon: /*#__PURE__*/React.createElement(HorizontalTimeline.DefaultIcon, {
      __self: _this,
      __source: {
        fileName: _jsxFileName,
        lineNumber: 23,
        columnNumber: 13
      }
    })
  }, {
    label: 'complete-icon',
    line: 'filled',
    icon: /*#__PURE__*/React.createElement(HorizontalTimeline.CompleteIcon, {
      __self: _this,
      __source: {
        fileName: _jsxFileName,
        lineNumber: 28,
        columnNumber: 13
      }
    })
  }, {
    label: 'destructive-icon',
    line: 'filled',
    icon: /*#__PURE__*/React.createElement(HorizontalTimeline.DestructiveIcon, {
      __self: _this,
      __source: {
        fileName: _jsxFileName,
        lineNumber: 33,
        columnNumber: 13
      }
    })
  }];
  afterEach(function () {
    cleanup();
  });
  it('should render', /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
    var _render, driver;
    return _regeneratorRuntime.wrap(function _callee$(_context) {
      while (1) switch (_context.prev = _context.next) {
        case 0:
          _render = render(/*#__PURE__*/React.createElement(HorizontalTimeline, {
            items: items,
            __self: _this,
            __source: {
              fileName: _jsxFileName,
              lineNumber: 42,
              columnNumber: 31
            }
          })), driver = _render.driver;
          _context.t0 = expect;
          _context.next = 4;
          return driver.exists();
        case 4:
          _context.t1 = _context.sent;
          (0, _context.t0)(_context.t1).toBe(true);
        case 6:
        case "end":
          return _context.stop();
      }
    }, _callee);
  })));
  it('should be able to get label text', /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {
    var _render2, driver;
    return _regeneratorRuntime.wrap(function _callee2$(_context2) {
      while (1) switch (_context2.prev = _context2.next) {
        case 0:
          _render2 = render(/*#__PURE__*/React.createElement(HorizontalTimeline, {
            items: items,
            __self: _this,
            __source: {
              fileName: _jsxFileName,
              lineNumber: 48,
              columnNumber: 31
            }
          })), driver = _render2.driver;
          _context2.t0 = expect;
          _context2.next = 4;
          return driver.getLabel(0);
        case 4:
          _context2.t1 = _context2.sent;
          (0, _context2.t0)(_context2.t1).toEqual(items[0].label);
        case 6:
        case "end":
          return _context2.stop();
      }
    }, _callee2);
  })));
  it('should be able to get skin', /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {
    var skin, _render3, driver;
    return _regeneratorRuntime.wrap(function _callee3$(_context3) {
      while (1) switch (_context3.prev = _context3.next) {
        case 0:
          skin = 'standard';
          _render3 = render(/*#__PURE__*/React.createElement(HorizontalTimeline, {
            skin: skin,
            items: items,
            __self: _this,
            __source: {
              fileName: _jsxFileName,
              lineNumber: 55,
              columnNumber: 31
            }
          })), driver = _render3.driver;
          _context3.t0 = expect;
          _context3.next = 5;
          return driver.getSkin();
        case 5:
          _context3.t1 = _context3.sent;
          (0, _context3.t0)(_context3.t1).toEqual(skin);
        case 7:
        case "end":
          return _context3.stop();
      }
    }, _callee3);
  })));
});