diff --git a/frontend/e2e/manga-list.spec.ts b/frontend/e2e/manga-list.spec.ts index 04bd298..2304ecf 100644 --- a/frontend/e2e/manga-list.spec.ts +++ b/frontend/e2e/manga-list.spec.ts @@ -1,4 +1,5 @@ import { test, expect, type Page } from '@playwright/test'; +import { SORT_FIELD_LABELS } from '../src/lib/mangaSort'; // These E2E tests run against the SvelteKit dev server, which proxies /api // to the backend. Playwright starts vite via `webServer` (see @@ -44,6 +45,35 @@ test('home page renders the Mangalord heading and search input', async ({ page } await expect(page.getByTestId('empty')).toContainText('No mangas yet'); }); +// Anti-drift guard: the desktop sort - - - - + + {#each Object.entries(SORT_FIELD_LABELS) as [value, label] (value)} + + {/each}