Update homepage routes to include language and mode
Build & Deploy / Build & Push Docker Image (push) Successful in 2m51s
Test / Type Check (all packages) (push) Successful in 52s
Build & Deploy / Deploy to VPS (push) Successful in 4s
Test / API Unit Tests (push) Successful in 49s
Test / Homepage Unit Tests (push) Successful in 44s
Test / Storefront Unit Tests (push) Successful in 39s
Test / Admin Unit Tests (push) Successful in 40s
Test / Dashboard Unit Tests (push) Successful in 40s
Test / API Integration Tests (push) Successful in 1m0s

This commit is contained in:
root
2026-07-02 14:10:17 -04:00
parent 56c3bcf666
commit 781512399b
51 changed files with 792 additions and 344 deletions
@@ -15,7 +15,7 @@ describe('PricingSection', () => {
const user = userEvent.setup();
const content = buildHomepageContent(enHomepage, enShell).pricing;
const { container } = render(
<PricingSection content={content} locale="en" homePath="/en" demoSubmissionEnabled />,
<PricingSection content={content} locale="en" homePath="/en/system" demoSubmissionEnabled />,
);
expect(container.querySelector('[data-plan="launch"]')).toHaveAttribute(
@@ -34,7 +34,9 @@ describe('PricingSection', () => {
it('keeps unapproved public prices out of the rendered section', () => {
const content = buildHomepageContent(enHomepage, enShell).pricing;
render(<PricingSection content={content} locale="en" homePath="/en" demoSubmissionEnabled />);
render(
<PricingSection content={content} locale="en" homePath="/en/system" demoSubmissionEnabled />,
);
expect(screen.getAllByText('Starting price pending approval')).toHaveLength(2);
expect(screen.getByText('Custom pricing')).toBeInTheDocument();