feat: add growth analyst UI foundation

This commit is contained in:
2026-08-21 00:25:45 +03:30
parent 849e53e3dd
commit 7a495b04c2
12 changed files with 462 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
import { render, screen } from '@testing-library/svelte';
import { describe, expect, it } from 'vitest';
import GrowthTeaser from './GrowthTeaser.svelte';
describe('GrowthTeaser', () => {
it('links to the growth analyst without starting a generation request', () => {
render(GrowthTeaser, { href: '/growth?terminal=terminal-1' });
expect(screen.getByRole('link', { name: /دیدن تحلیل ۹۰ روزه/ }).getAttribute('href')).toBe(
'/growth?terminal=terminal-1',
);
expect(screen.getByText('تحلیل‌گر رشد')).not.toBeNull();
});
});