import { cleanup, render, screen } from "@testing-library/react"; import { afterEach, describe, expect, it } from "vitest"; import { GettingStartedTab } from "."; const usageStats = { terms_total: 0, attribute_taxonomies_configured: 0, products_with_overrides: 0, by_type: { color: 0, button: 0 }, }; afterEach(cleanup); describe("GettingStartedTab purchase destination", () => { it("uses only the supplied canonical store URL for Explore Pro", () => { const storeUrl = "https://b3.digital/software/store?product=b3-swatches"; render( , ); expect( screen.getByRole("link", { name: "Explore Pro" }).getAttribute("href"), ).toBe(storeUrl); }); it("omits the purchase CTA when no canonical store URL is available", () => { render( , ); expect(screen.queryByRole("link", { name: "Explore Pro" })).toBeNull(); }); });