feat(cv): organize template and document controls
This commit is contained in:
@@ -355,8 +355,9 @@ test('Content is the primary studio panel and all advanced tabs retain their con
|
||||
expect(screen.getByText('This CV only')).toBeInTheDocument();
|
||||
expect(screen.getByRole('link', { name: 'Linked application' })).toHaveAttribute('href', '/jobs/7');
|
||||
fireEvent.click(screen.getByRole('tab', { name: 'Customize' }));
|
||||
expect(screen.getByText('Typography')).toBeInTheDocument();
|
||||
expect(screen.getByRole('region', { name: 'Style' })).toBeInTheDocument();
|
||||
expect(screen.getByLabelText('Body size')).toBeInTheDocument();
|
||||
fireEvent.click(screen.getByRole('button', { name: 'Advanced document settings' }));
|
||||
expect(screen.getByLabelText('Skills presentation')).toBeInTheDocument();
|
||||
expect(screen.getByLabelText('Page size')).toBeInTheDocument();
|
||||
expect(screen.getByLabelText('Columns')).toBeInTheDocument();
|
||||
@@ -399,6 +400,8 @@ test('choosing a template restores its own structure instead of inheriting the p
|
||||
fireEvent.click(screen.getByRole('tab', { name: 'Template' }));
|
||||
fireEvent.click(screen.getByRole('button', { name: 'All templates' }));
|
||||
fireEvent.click(screen.getByRole('button', { name: /Technical/ }));
|
||||
fireEvent.click(within(await screen.findByRole('dialog', { name: 'Apply template defaults?' })).getByRole('button', { name: 'Apply template' }));
|
||||
await waitFor(() => expect(screen.queryByRole('dialog')).not.toBeInTheDocument());
|
||||
fireEvent.click(screen.getByRole('button', { name: 'Save now' }));
|
||||
|
||||
await waitFor(() => expect(mockedApi.put).toHaveBeenCalledWith('/cv/variants/3', expect.objectContaining({
|
||||
@@ -426,7 +429,8 @@ test('editor sections, design controls and document settings render in Bokmål',
|
||||
expect(screen.getByRole('button', { name: 'Utvid Erfaring' })).toBeInTheDocument();
|
||||
expect(screen.getByRole('button', { name: 'Legg til innhold' })).toBeInTheDocument();
|
||||
fireEvent.click(screen.getByRole('tab', { name: 'Tilpass' }));
|
||||
expect(screen.getByText('Typografi')).toBeInTheDocument();
|
||||
expect(screen.getByRole('region', { name: 'Stil' })).toBeInTheDocument();
|
||||
fireEvent.click(screen.getByRole('button', { name: 'Avanserte dokumentinnstillinger' }));
|
||||
expect(screen.getByLabelText('Visning av ferdigheter')).toBeInTheDocument();
|
||||
expect(screen.getByLabelText('Sidestørrelse')).toBeInTheDocument();
|
||||
expect(screen.getByLabelText('Dokumentspråk')).toBeInTheDocument();
|
||||
|
||||
Reference in New Issue
Block a user