test: Fix tests

This commit is contained in:
Sidharth Vinod
2025-03-19 19:54:42 -07:00
parent 501c983b99
commit 64e156085b
7 changed files with 76 additions and 86 deletions
@@ -3,6 +3,7 @@
import Privacy from '$/components/Privacy.svelte';
import { Button } from '$/components/ui/button';
import { Separator } from '$/components/ui/separator';
import { TID } from '$/constants';
import { version } from 'mermaid/package.json';
import { mode, setMode } from 'mode-watcher';
import ThemeIcon from './ThemeIcon.svelte';
@@ -18,7 +19,8 @@
<Button
variant="ghost"
size="icon"
title="Theme"
data-testid={TID.themeToggleButton}
title="Switch to {$mode === 'dark' ? 'light' : 'dark'} theme"
class="[&_svg]:size-5"
onclick={() => setMode($mode === 'dark' ? 'light' : 'dark')}>
<ThemeIcon />
+2 -1
View File
@@ -3,5 +3,6 @@ export const TID = {
diagramDocumentationButton: 'diagram-documentation-button',
downloadPNG: 'download-PNG',
downloadSVG: 'download-SVG',
errorContainer: 'error-container'
errorContainer: 'error-container',
themeToggleButton: 'theme-toggle-button'
} as const;