import _extends from "@babel/runtime/helpers/extends";
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
var _jsxFileName = "/home/builduser/work/57e038ea7326c1ec/packages/wix-design-system/dist/esm/SocialPreview/test/SocialPreview.spec.jsx",
  _this = this;
import _regeneratorRuntime from "@babel/runtime/regenerator";
import React from 'react';
import { createRendererWithUniDriver } from '../../utils/test-utils/react';
import SocialPreview from '../SocialPreview';
import { socialPreviewPrivateDriverFactory } from './SocialPreview.private.uni.driver';
describe('SocialPreview', function () {
  var render = createRendererWithUniDriver(socialPreviewPrivateDriverFactory);
  it('should override with default values', /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
    var props, _render, driver;
    return _regeneratorRuntime.wrap(function _callee$(_context) {
      while (1) switch (_context.prev = _context.next) {
        case 0:
          props = {
            title: 'social-preview',
            previewUrl: 'SOCIAL-PREVIEW.COM',
            description: 'a social preview test',
            skin: 'twitter',
            size: 'small'
          };
          _render = render(/*#__PURE__*/React.createElement(SocialPreview, _extends({}, props, {
            __self: _this,
            __source: {
              fileName: _jsxFileName,
              lineNumber: 17,
              columnNumber: 31
            }
          }))), driver = _render.driver;
          _context.t0 = expect;
          _context.next = 5;
          return driver.exists();
        case 5:
          _context.t1 = _context.sent;
          (0, _context.t0)(_context.t1).toBe(true);
          _context.t2 = expect;
          _context.next = 10;
          return driver.getTitle();
        case 10:
          _context.t3 = _context.sent;
          (0, _context.t2)(_context.t3).toEqual('social-preview');
          _context.t4 = expect;
          _context.next = 15;
          return driver.getPreviewUrl();
        case 15:
          _context.t5 = _context.sent;
          (0, _context.t4)(_context.t5).toEqual('SOCIAL-PREVIEW.COM');
          _context.t6 = expect;
          _context.next = 20;
          return driver.getDescription();
        case 20:
          _context.t7 = _context.sent;
          (0, _context.t6)(_context.t7).toEqual('a social preview test');
          _context.t8 = expect;
          _context.next = 25;
          return driver.getSkin();
        case 25:
          _context.t9 = _context.sent;
          (0, _context.t8)(_context.t9).toEqual('twitter');
          _context.t10 = expect;
          _context.next = 30;
          return driver.getSize();
        case 30:
          _context.t11 = _context.sent;
          (0, _context.t10)(_context.t11).toEqual('small');
        case 32:
        case "end":
          return _context.stop();
      }
    }, _callee);
  })));
});