feat(ui): migrate Career Profile structured editor

This commit is contained in:
cesnimda
2026-10-12 13:32:55 +02:00
parent 704637ab37
commit f7f6b774b9
17 changed files with 8314 additions and 158 deletions
+2 -2
View File
@@ -206,7 +206,7 @@ test('Career Profile section headings describe the visible hierarchy without cha
renderPage();
await waitFor(() => expect(screen.getByLabelText(/full name/i)).toHaveValue('Demo User'));
expect(screen.getByRole('heading', { name: 'Career profile', level: 2 })).toBeInTheDocument();
expect(screen.getByRole('heading', { name: 'Career information', level: 3 })).toBeInTheDocument();
expect(screen.getByRole('heading', { name: 'Career information', level: 2 })).toBeInTheDocument();
expect(screen.getByLabelText(/full name/i)).toHaveValue('Demo User');
let previous = 1;
for (const heading of screen.getAllByRole('heading')) {
@@ -504,7 +504,7 @@ test('profile page shows durable CV operation state and retries a failed run', a
test('profile page keeps raw extraction collapsed until expanded', async () => {
renderPage('import');
expect(await screen.findByText(/your career information stays front and center/i)).toBeInTheDocument();
expect(await screen.findByText(/Career information is the main view/i)).toBeInTheDocument();
const originalExtractionToggle = screen.getByRole('button', { name: /original import/i });
expect(originalExtractionToggle).toHaveAttribute('aria-expanded', 'false');