import { MarketPercentIndicator } from "./MarketPercentIndicator";
import { expect, within } from "@storybook/test";
const meta = {
    component: MarketPercentIndicator,
    title: "PreLdls/Components/MarketPercentIndicator",
    tags: ["autodocs"],
    args: { percent: 30 },
};
export default meta;
export const Positive = { args: { percent: 30 } };
export const Negative = { args: { percent: -30 } };
export const Zero = { args: { percent: 0 } };
export const TestMarketPercentIndicator = {
    play: async ({ canvasElement }) => {
        const canvas = within(canvasElement);
        const input = canvas.getByTestId("market-percent-indicator");
        await expect(input).toHaveTextContent("+30%");
    },
};
//# sourceMappingURL=MarketPercentIndicator.stories.js.map