"use strict";

var _reactNative = require("@testing-library/react-native");
var _react = _interopRequireDefault(require("react"));
var _reactNative2 = require("react-native");
var _testing = require("../../../utils/testing");
var _IconButton = _interopRequireDefault(require("../IconButton"));
var _IconButtonContained = _interopRequireDefault(require("../IconButtonContained"));
var _IconButtonSolid = _interopRequireDefault(require("../IconButtonSolid"));
var _IOButton = require("../IOButton");
var _jsxRuntime = require("react/jsx-runtime");
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
const onButtonPress = () => {
  _reactNative2.Alert.alert("Alert", "Action triggered");
};
describe("Test Buttons Components", () => {
  it("ButtonSolid Snapshot", () => {
    const {
      toJSON
    } = (0, _reactNative.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(_IOButton.IOButton, {
      variant: "solid",
      label: "label",
      accessibilityLabel: "accessibilityLabel",
      onPress: onButtonPress
    }));
    expect(toJSON()).toMatchSnapshot();
  });
  it("ButtonLink Snapshot", () => {
    const {
      toJSON
    } = (0, _reactNative.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(_IOButton.IOButton, {
      variant: "link",
      label: "label",
      onPress: onButtonPress
    }));
    expect(toJSON()).toMatchSnapshot();
  });
  it("ButtonOutline Snapshot", () => {
    const {
      toJSON
    } = (0, _reactNative.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(_IOButton.IOButton, {
      variant: "outline",
      label: "label",
      accessibilityLabel: "accessibilityLabel",
      onPress: onButtonPress
    }));
    expect(toJSON()).toMatchSnapshot();
  });
});
describe("Test Buttons Components - Experimental Enabled", () => {
  it("ButtonSolid Snapshot", () => {
    const {
      toJSON
    } = (0, _testing.renderWithExperimentalEnabledContextProvider)(/*#__PURE__*/(0, _jsxRuntime.jsx)(_IOButton.IOButton, {
      variant: "solid",
      label: "label",
      accessibilityLabel: "accessibilityLabel",
      onPress: onButtonPress
    }));
    expect(toJSON()).toMatchSnapshot();
  });
  it("ButtonLink Snapshot", () => {
    const {
      toJSON
    } = (0, _testing.renderWithExperimentalEnabledContextProvider)(/*#__PURE__*/(0, _jsxRuntime.jsx)(_IOButton.IOButton, {
      variant: "link",
      label: "label",
      onPress: onButtonPress
    }));
    expect(toJSON()).toMatchSnapshot();
  });
  it("ButtonOutline Snapshot", () => {
    const {
      toJSON
    } = (0, _testing.renderWithExperimentalEnabledContextProvider)(/*#__PURE__*/(0, _jsxRuntime.jsx)(_IOButton.IOButton, {
      variant: "outline",
      label: "label",
      accessibilityLabel: "accessibilityLabel",
      onPress: onButtonPress
    }));
    expect(toJSON()).toMatchSnapshot();
  });
  it("IconButtonSolid Snapshot", () => {
    const {
      toJSON
    } = (0, _testing.renderWithExperimentalEnabledContextProvider)(/*#__PURE__*/(0, _jsxRuntime.jsx)(_IconButtonSolid.default, {
      onPress: onButtonPress,
      icon: "spid",
      accessibilityLabel: "accessibilityLabel"
    }));
    expect(toJSON()).toMatchSnapshot();
  });
  it("IconButton Snapshot", () => {
    const {
      toJSON
    } = (0, _testing.renderWithExperimentalEnabledContextProvider)(/*#__PURE__*/(0, _jsxRuntime.jsx)(_IconButton.default, {
      onPress: onButtonPress,
      icon: "spid",
      accessibilityLabel: "accessibilityLabel"
    }));
    expect(toJSON()).toMatchSnapshot();
  });
  it("IconButtonContained Snapshot", () => {
    const {
      toJSON
    } = (0, _testing.renderWithExperimentalEnabledContextProvider)(/*#__PURE__*/(0, _jsxRuntime.jsx)(_IconButtonContained.default, {
      onPress: onButtonPress,
      icon: "spid",
      accessibilityLabel: "accessibilityLabel"
    }));
    expect(toJSON()).toMatchSnapshot();
  });
});
//# sourceMappingURL=button.test.js.map