fix: stabilize Toolbox navigation

This commit is contained in:
2026-07-23 01:13:57 +02:00
parent d5574a0a44
commit 928cde60b4
8 changed files with 37 additions and 28 deletions

View File

@@ -86,7 +86,7 @@ describe('toolbox shell integration', () => {
const shell = container.firstElementChild;
expect(shell?.getAttribute('data-toolbox-theme')).toBe('system');
fireEvent.click(screen.getByText('Personalize').closest('summary')!);
fireEvent.click(screen.getByRole('button', { name: 'Personalize' }));
fireEvent.click(screen.getByRole('button', { name: 'Dark' }));
expect(shell?.getAttribute('data-toolbox-theme')).toBe('dark');
@@ -114,7 +114,7 @@ describe('toolbox shell integration', () => {
</AppShell>
);
fireEvent.click(screen.getByText('Apps').closest('summary')!);
fireEvent.click(screen.getByRole('button', { name: 'Apps' }));
const navigation = await screen.findByRole('navigation', {
name: 'Toolbox applications',
});
@@ -123,7 +123,9 @@ describe('toolbox shell integration', () => {
container.firstElementChild?.getAttribute('data-toolbox-context')
).toBe('connected');
expect(
screen.getByRole('link', { name: 'Test Toolbox' }).getAttribute('href')
screen
.getByRole('link', { name: 'add·ideas Toolbox' })
.getAttribute('href')
).toBe('https://example.test/');
const pdfLink = screen.getByRole('link', { name: 'PDF Workbench' });