fix(ui): align semantic headings contrast and Settings panels
This commit is contained in:
@@ -81,6 +81,15 @@ async function openContentTab() {
|
||||
fireEvent.click(screen.getByRole('tab', { name: 'Content' }));
|
||||
}
|
||||
|
||||
test('content sections follow the editing-region heading without mutating CV settings', async () => {
|
||||
routeGet(() => Promise.resolve({ data: variant }));
|
||||
renderAt(3);
|
||||
await openContentTab();
|
||||
expect(screen.getByRole('heading', { name: 'CV editing controls', level: 2 })).toBeInTheDocument();
|
||||
expect(screen.getByRole('heading', { name: 'Sections', level: 3 })).toBeInTheDocument();
|
||||
expect(mockedApi.put).not.toHaveBeenCalled();
|
||||
});
|
||||
|
||||
test('section navigation opens and focuses omitted/custom sections without changing their data', async () => {
|
||||
const settings = { ...variant.settings,
|
||||
sections: [{ key: 'skills', hidden: true }, { key: 'custom:sample', hidden: false }],
|
||||
|
||||
Reference in New Issue
Block a user