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