fix: some small rework for doc alignment

This commit is contained in:
2026-02-27 12:37:44 +01:00
parent d36ed60854
commit a1865d63a5
7 changed files with 111 additions and 76 deletions

View File

@@ -196,10 +196,10 @@ describe('DocumentationView', () => {
</I18nProvider>
);
const targetHeading = await screen.findByRole('heading', { level: 2, name: 'Using scripting (early access)' });
const targetHeading = await screen.findByRole('heading', { level: 2, name: 'Using scripting' });
targetHeading.id = 'unexpected-id';
const tocLink = container.querySelector('a[href="#using-scripting-early-access"]') as HTMLAnchorElement;
const tocLink = container.querySelector('a[href="#using-scripting"]') as HTMLAnchorElement;
expect(tocLink).not.toBeNull();
const scrollContainer = container.querySelector('.documentation-scroll') as HTMLElement;
@@ -221,7 +221,7 @@ describe('DocumentationView', () => {
fireEvent.click(tocLink);
expect(scrollContainer.scrollTop).toBe(388);
expect(targetHeading.id).toBe('using-scripting-early-access');
expect(targetHeading.id).toBe('using-scripting');
});
it('shows a copy button for fenced code blocks and copies the block content', async () => {