"use strict";

var _reactNative = require("react-native");
var _reactNative2 = require("@testing-library/react-native");
var _testing = require("../../../utils/testing");
var _ListItemAction = require("../ListItemAction");
var _ListItemInfo = require("../ListItemInfo");
var _ListItemInfoCopy = require("../ListItemInfoCopy");
var _ListItemNav = require("../ListItemNav");
var _ListItemNavAlert = require("../ListItemNavAlert");
var _ListItemRadioWithAmount = require("../ListItemRadioWithAmount");
var _ListItemTransaction = require("../ListItemTransaction");
var _PressableListItemBase = require("../PressableListItemBase");
var _jsxRuntime = require("react/jsx-runtime");
const onButtonPress = () => {
  _reactNative.Alert.alert("Alert", "Action triggered");
};
describe("Test List Item Components", () => {
  it("ListItemInfo Snapshot", () => {
    const {
      toJSON
    } = (0, _reactNative2.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(_ListItemInfo.ListItemInfo, {
      label: "label",
      value: "testValue",
      accessibilityLabel: "accessibilityLabel"
    }));
    expect(toJSON()).toMatchSnapshot();
  });
  it("ListItemInfoCopy Snapshot", () => {
    const {
      toJSON
    } = (0, _reactNative2.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(_ListItemInfoCopy.ListItemInfoCopy, {
      label: "label",
      value: "testValue",
      onPress: onButtonPress,
      accessibilityLabel: "accessibilityLabel"
    }));
    expect(toJSON()).toMatchSnapshot();
  });
  it("ListItemNav Snapshot", () => {
    const {
      toJSON
    } = (0, _reactNative2.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(_ListItemNav.ListItemNav, {
      value: "testValue",
      onPress: onButtonPress,
      accessibilityLabel: "accessibilityLabel"
    }));
    expect(toJSON()).toMatchSnapshot();
  });
  it("ListItemNavAlert Snapshot", () => {
    const {
      toJSON
    } = (0, _reactNative2.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(_ListItemNavAlert.ListItemNavAlert, {
      value: "testValue",
      onPress: onButtonPress,
      accessibilityLabel: "accessibilityLabel"
    }));
    expect(toJSON()).toMatchSnapshot();
  });
  it("ListItemAction Snapshot", () => {
    const {
      toJSON
    } = (0, _reactNative2.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(_ListItemAction.ListItemAction, {
      label: "label",
      variant: "primary",
      onPress: onButtonPress,
      accessibilityLabel: "accessibilityLabel"
    }));
    expect(toJSON()).toMatchSnapshot();
  });
  it("ListItemTransaction Snapshot", () => {
    const {
      toJSON
    } = (0, _reactNative2.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(_ListItemTransaction.ListItemTransaction, {
      title: "TITLE",
      subtitle: "subtitle",
      transaction: {
        amount: "€ 1.000,00",
        amountAccessibilityLabel: "€ 1.000,00"
      },
      isLoading: true,
      onPress: onButtonPress
    }));
    expect(toJSON()).toMatchSnapshot();
  });
  it("PressableListItemsBase Snapshot", () => {
    const {
      toJSON
    } = (0, _reactNative2.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(_PressableListItemBase.PressableListItemBase, {}));
    expect(toJSON()).toMatchSnapshot();
  });
  it("ListItemRadioWithAmount Snapshot", () => {
    const {
      toJSON: toJSONSuggested
    } = (0, _reactNative2.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(_ListItemRadioWithAmount.ListItemRadioWithAmount, {
      formattedAmountString: "\u20AC 1.000,00",
      label: "label",
      suggestReason: "suggestReason",
      isSuggested: true,
      selected: true
    }));
    const {
      toJSON: toJSONNotSuggested
    } = (0, _reactNative2.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(_ListItemRadioWithAmount.ListItemRadioWithAmount, {
      formattedAmountString: "\u20AC 1.000,00",
      label: "label",
      isSuggested: false
    }));
    expect(toJSONSuggested()).toMatchSnapshot();
    expect(toJSONNotSuggested()).toMatchSnapshot();
  });
});
describe("Test List Item Components - Experimental Enabled ", () => {
  it("ListItemInfo Snapshot", () => {
    const {
      toJSON
    } = (0, _testing.renderWithExperimentalEnabledContextProvider)(/*#__PURE__*/(0, _jsxRuntime.jsx)(_ListItemInfo.ListItemInfo, {
      label: "label",
      value: "testValue",
      accessibilityLabel: "accessibilityLabel"
    }));
    expect(toJSON()).toMatchSnapshot();
  });
  it("ListItemInfoCopy Snapshot", () => {
    const {
      toJSON
    } = (0, _testing.renderWithExperimentalEnabledContextProvider)(/*#__PURE__*/(0, _jsxRuntime.jsx)(_ListItemInfoCopy.ListItemInfoCopy, {
      label: "label",
      value: "testValue",
      onPress: onButtonPress,
      accessibilityLabel: "accessibilityLabel"
    }));
    expect(toJSON()).toMatchSnapshot();
  });
  it("ListItemNav Snapshot", () => {
    const {
      toJSON
    } = (0, _testing.renderWithExperimentalEnabledContextProvider)(/*#__PURE__*/(0, _jsxRuntime.jsx)(_ListItemNav.ListItemNav, {
      value: "testValue",
      onPress: onButtonPress,
      accessibilityLabel: "accessibilityLabel"
    }));
    expect(toJSON()).toMatchSnapshot();
  });
  it("ListItemNavAlert Snapshot", () => {
    const {
      toJSON
    } = (0, _testing.renderWithExperimentalEnabledContextProvider)(/*#__PURE__*/(0, _jsxRuntime.jsx)(_ListItemNavAlert.ListItemNavAlert, {
      value: "testValue",
      onPress: onButtonPress,
      accessibilityLabel: "accessibilityLabel"
    }));
    expect(toJSON()).toMatchSnapshot();
  });
  it("ListItemAction Snapshot", () => {
    const {
      toJSON
    } = (0, _testing.renderWithExperimentalEnabledContextProvider)(/*#__PURE__*/(0, _jsxRuntime.jsx)(_ListItemAction.ListItemAction, {
      label: "label",
      variant: "primary",
      onPress: onButtonPress,
      accessibilityLabel: "accessibilityLabel"
    }));
    expect(toJSON()).toMatchSnapshot();
  });
  it("ListItemTransaction Snapshot", () => {
    const {
      toJSON
    } = (0, _testing.renderWithExperimentalEnabledContextProvider)(/*#__PURE__*/(0, _jsxRuntime.jsx)(_ListItemTransaction.ListItemTransaction, {
      title: "TITLE",
      subtitle: "subtitle",
      transaction: {
        amount: "€ 1.000,00",
        amountAccessibilityLabel: "€ 1.000,00"
      },
      isLoading: true,
      onPress: onButtonPress
    }));
    expect(toJSON()).toMatchSnapshot();
  });
  it("PressableListItemsBase Snapshot", () => {
    const {
      toJSON
    } = (0, _testing.renderWithExperimentalEnabledContextProvider)(/*#__PURE__*/(0, _jsxRuntime.jsx)(_PressableListItemBase.PressableListItemBase, {}));
    expect(toJSON()).toMatchSnapshot();
  });
  it("ListItemRadioWithAmount Snapshot", () => {
    const {
      toJSON: toJSONSuggested
    } = (0, _testing.renderWithExperimentalEnabledContextProvider)(/*#__PURE__*/(0, _jsxRuntime.jsx)(_ListItemRadioWithAmount.ListItemRadioWithAmount, {
      formattedAmountString: "\u20AC 1.000,00",
      label: "label",
      suggestReason: "suggestReason",
      isSuggested: true,
      selected: true
    }));
    const {
      toJSON: toJSONNotSuggested
    } = (0, _testing.renderWithExperimentalEnabledContextProvider)(/*#__PURE__*/(0, _jsxRuntime.jsx)(_ListItemRadioWithAmount.ListItemRadioWithAmount, {
      formattedAmountString: "\u20AC 1.000,00",
      label: "label",
      isSuggested: false
    }));
    expect(toJSONSuggested()).toMatchSnapshot();
    expect(toJSONNotSuggested()).toMatchSnapshot();
  });
});
//# sourceMappingURL=listitem.test.js.map