fix(ui): align semantic headings contrast and Settings panels

This commit is contained in:
cesnimda
2026-10-11 03:05:08 +02:00
parent 7da083c374
commit a94ea0a4a4
18 changed files with 192 additions and 52 deletions
@@ -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 }],