Files
gatehouse-ui/tests/PricingPage.test.tsx
T
nexgen_mirrors cb62079b4f feat(marketing): add contact form submission and testing setup
- Add contact API endpoint for demo requests and sales enquiries
- Implement functional contact forms on Demo and Pricing pages with honeypot spam protection
- Update footer layout: remove Company section, add contact email
- Update self-hosted FAQ to mention open source with GitHub links
- Add vitest and testing-library dependencies
- Add tests for MarketingLayout and PricingPage components
- Remove placeholder external-auth test file
2026-04-18 00:33:02 +09:30

22 lines
987 B
TypeScript

import { render, screen } from '@testing-library/react';
import PricingPage from '../src/pages/marketing/PricingPage';
import { expect, test, describe } from 'bun:test';
describe('PricingPage', () => {
test('Self-hosted FAQ answer updated to mention open source with GitHub links', () => {
render(<PricingPage />);
const selfHostedText = screen.getByText(/self-hosted/i);
expect(selfHostedText).toBeDefined();
const openSourceText = screen.getByText(/open source/i);
expect(openSourceText).toBeDefined();
const gatehouseUiLink = screen.getByRole('link', { name: 'gatehouse-ui' });
expect(gatehouseUiLink).toBeDefined();
expect(gatehouseUiLink).toHaveAttribute('href', 'https://github.com/gatehouse/gatehouse-ui');
const gatehouseApiLink = screen.getByRole('link', { name: 'gatehouse-api' });
expect(gatehouseApiLink).toBeDefined();
expect(gatehouseApiLink).toHaveAttribute('href', 'https://github.com/gatehouse/gatehouse-api');
});
});