feat(ui): migrate Career Profile structured editor
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user