import { jsx, jsxs } from "react/jsx-runtime";
import React from "react";
import { render } from "@testing-library/react-native";
import { ThemeProvider, Progress } from "../..";
describe("<Progress />", () => {
  it("should match snapshot", () => {
    const { toJSON } = render(
      /* @__PURE__ */ jsxs(ThemeProvider, { children: [
        /* @__PURE__ */ jsx(Progress, {}),
        /* @__PURE__ */ jsx(Progress, { max: 100 }),
        /* @__PURE__ */ jsx(Progress, { max: 100, value: 60 })
      ] })
    );
    expect(toJSON()).toMatchSnapshot();
  });
  it("should match snapshot with label string", () => {
    const { toJSON } = render(
      /* @__PURE__ */ jsxs(ThemeProvider, { children: [
        /* @__PURE__ */ jsx(Progress, { max: 100, label: { value: "Some decription here" } }),
        /* @__PURE__ */ jsx(
          Progress,
          {
            max: 100,
            value: 65,
            label: { value: "Some decription here", placement: "right" }
          }
        )
      ] })
    );
    expect(toJSON()).toMatchSnapshot();
  });
  it("should match snapshot with label number", () => {
    const { toJSON } = render(
      /* @__PURE__ */ jsxs(ThemeProvider, { children: [
        /* @__PURE__ */ jsx(Progress, { max: 100, value: 20, label: { value: 20 } }),
        /* @__PURE__ */ jsx(
          Progress,
          {
            max: 100,
            value: 65,
            label: { value: 65, placement: "right" }
          }
        )
      ] })
    );
    expect(toJSON()).toMatchSnapshot();
  });
  it("should match snapshot with all variants", () => {
    const { toJSON } = render(
      /* @__PURE__ */ jsxs(ThemeProvider, { children: [
        /* @__PURE__ */ jsx(
          Progress,
          {
            max: 100,
            value: 20,
            label: { value: 20 },
            variant: "primary"
          }
        ),
        /* @__PURE__ */ jsx(
          Progress,
          {
            max: 100,
            value: 20,
            label: { value: 20 },
            variant: "secondary"
          }
        ),
        /* @__PURE__ */ jsx(Progress, { max: 100, value: 20, label: { value: 20 }, variant: "vibin" }),
        /* @__PURE__ */ jsx(Progress, { max: 100, value: 20, label: { value: 20 }, variant: "hope" }),
        /* @__PURE__ */ jsx(Progress, { max: 100, value: 20, label: { value: 20 }, variant: "energy" }),
        /* @__PURE__ */ jsx(Progress, { max: 100, value: 20, label: { value: 20 }, variant: "relax" }),
        /* @__PURE__ */ jsx(Progress, { max: 100, value: 20, label: { value: 20 }, variant: "peace" }),
        /* @__PURE__ */ jsx(Progress, { max: 100, value: 20, label: { value: 20 }, variant: "verve" }),
        /* @__PURE__ */ jsx(Progress, { max: 100, value: 20, label: { value: 20 }, variant: "uplift" }),
        /* @__PURE__ */ jsx(
          Progress,
          {
            max: 100,
            value: 20,
            label: { value: 20 },
            variant: "deepPurple"
          }
        ),
        /* @__PURE__ */ jsx(
          Progress,
          {
            max: 100,
            value: 20,
            label: { value: 20 },
            variant: "stamina"
          }
        ),
        /* @__PURE__ */ jsx(Progress, { max: 100, value: 20, label: { value: 20 }, variant: "dark" }),
        /* @__PURE__ */ jsx(Progress, { max: 100, value: 20, label: { value: 20 }, variant: "medium" }),
        /* @__PURE__ */ jsx(Progress, { max: 100, value: 20, label: { value: 20 }, variant: "deep" }),
        /* @__PURE__ */ jsx(Progress, { max: 100, value: 20, label: { value: 20 }, variant: "light" }),
        /* @__PURE__ */ jsx(Progress, { max: 100, value: 20, label: { value: 20 }, variant: "clear" }),
        /* @__PURE__ */ jsx(Progress, { max: 100, value: 20, label: { value: 20 }, variant: "white" })
      ] })
    );
    expect(toJSON()).toMatchSnapshot();
  });
  it("should match snapshot with positions prop system", () => {
    const { toJSON } = render(
      /* @__PURE__ */ jsx(ThemeProvider, { children: /* @__PURE__ */ jsx(Progress, { position: "absolute", top: "small", left: "small" }) })
    );
    expect(toJSON()).toMatchSnapshot();
  });
  it("should match snapshot with spacing prop system", () => {
    const { toJSON } = render(
      /* @__PURE__ */ jsx(ThemeProvider, { children: /* @__PURE__ */ jsx(Progress, { m: "small", padding: "medium" }) })
    );
    expect(toJSON()).toMatchSnapshot();
  });
  it("should match snapshot with background color prop system", () => {
    const { toJSON } = render(
      /* @__PURE__ */ jsx(ThemeProvider, { children: /* @__PURE__ */ jsx(Progress, { backgroundColor: "primary" }) })
    );
    expect(toJSON()).toMatchSnapshot();
  });
  it("should match snapshot with border prop system", () => {
    const { toJSON } = render(
      /* @__PURE__ */ jsx(ThemeProvider, { children: /* @__PURE__ */ jsx(Progress, { b: "small", bRadius: "small" }) })
    );
    expect(toJSON()).toMatchSnapshot();
  });
  it("should match snapshot with elevation prop system", () => {
    const { toJSON } = render(
      /* @__PURE__ */ jsx(ThemeProvider, { children: /* @__PURE__ */ jsx(Progress, { elevation: "small" }) })
    );
    expect(toJSON()).toMatchSnapshot();
  });
});
