"use strict";

var _reactNative = require("@testing-library/react-native");
var _reactNative2 = require("react-native");
var _testing = require("../../../utils/testing");
var _IconButton = require("../IconButton");
var _IconButtonContained = require("../IconButtonContained");
var _IconButtonSolid = require("../IconButtonSolid");
var _IOButton = require("../IOButton");
var _jsxRuntime = require("react/jsx-runtime");
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.IconButtonSolid, {
      onPress: onButtonPress,
      icon: "spid",
      accessibilityLabel: "accessibilityLabel"
    }));
    expect(toJSON()).toMatchSnapshot();
  });
  it("IconButton Snapshot", () => {
    const {
      toJSON
    } = (0, _testing.renderWithExperimentalEnabledContextProvider)(/*#__PURE__*/(0, _jsxRuntime.jsx)(_IconButton.IconButton, {
      onPress: onButtonPress,
      icon: "spid",
      accessibilityLabel: "accessibilityLabel"
    }));
    expect(toJSON()).toMatchSnapshot();
  });
  it("IconButtonContained Snapshot", () => {
    const {
      toJSON
    } = (0, _testing.renderWithExperimentalEnabledContextProvider)(/*#__PURE__*/(0, _jsxRuntime.jsx)(_IconButtonContained.IconButtonContained, {
      onPress: onButtonPress,
      icon: "spid",
      accessibilityLabel: "accessibilityLabel"
    }));
    expect(toJSON()).toMatchSnapshot();
  });
});
//# sourceMappingURL=button.test.js.map