diff options
| author | Adam Mathes <adam@adammathes.com> | 2026-02-16 19:37:50 -0800 |
|---|---|---|
| committer | Adam Mathes <adam@adammathes.com> | 2026-02-16 19:40:10 -0800 |
| commit | cba29e6aae637b04ff6eaf28f74bc15b6242b9ea (patch) | |
| tree | 226753a3fcd18a6d45089dafcb1ee72557140aa8 /frontend/tests/font.spec.ts | |
| parent | cb6d0c9e330c27ff85ff065c2ea6dd1a756cbf6d (diff) | |
| download | neko-cba29e6aae637b04ff6eaf28f74bc15b6242b9ea.tar.gz neko-cba29e6aae637b04ff6eaf28f74bc15b6242b9ea.tar.bz2 neko-cba29e6aae637b04ff6eaf28f74bc15b6242b9ea.zip | |
Remove legacy V2 React frontend and update build/test scripts to focus on Vanilla JS (V3)
Diffstat (limited to 'frontend/tests/font.spec.ts')
| -rw-r--r-- | frontend/tests/font.spec.ts | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/frontend/tests/font.spec.ts b/frontend/tests/font.spec.ts deleted file mode 100644 index 0723f38..0000000 --- a/frontend/tests/font.spec.ts +++ /dev/null @@ -1,31 +0,0 @@ -import { test, expect } from '@playwright/test'; - -test.describe('Font Theme Settings', () => { - test('should change font family when theme starts', async ({ page }) => { - // 1. Login - await page.goto('/v2/login'); - await page.click('button[type="submit"]'); - await expect(page).toHaveURL(/.*\/v2\/?$/); - - // 2. Go to Settings - await page.click('text=Settings'); - await expect(page).toHaveURL(/.*\/v2\/settings/); - - // 3. Verify Default Font (Palatino) - // We check the computed style of the dashboard container or a body element - const dashboard = page.locator('.dashboard'); - await expect(dashboard).toHaveCSS('font-family', /Palatino/); - - // 4. Change to Sans-Serif - await page.selectOption('select.font-select', 'sans'); - - // 5. Verify Sans Font (Inter) - await expect(dashboard).toHaveCSS('font-family', /Inter/); - - // 6. Change to Monospace - await page.selectOption('select.font-select', 'mono'); - - // 7. Verify Mono Font (Menlo or Monaco or Courier) - await expect(dashboard).toHaveCSS('font-family', /Menlo|Monaco|Courier/); - }); -}); |
