aboutsummaryrefslogtreecommitdiffstats
path: root/frontend/tests/e2e.spec.ts
diff options
context:
space:
mode:
authorAdam Mathes <adam@adammathes.com>2026-02-13 18:42:56 -0800
committerAdam Mathes <adam@adammathes.com>2026-02-13 18:42:56 -0800
commit01d4bbe4b2842cb8c2e4319b6cf03d3050f38d06 (patch)
tree58dc09bca619245b531cb178ce73b3ad7eb266a5 /frontend/tests/e2e.spec.ts
parent9c1c131603677371eab0e6b6956481a661f14628 (diff)
downloadneko-01d4bbe4b2842cb8c2e4319b6cf03d3050f38d06.tar.gz
neko-01d4bbe4b2842cb8c2e4319b6cf03d3050f38d06.tar.bz2
neko-01d4bbe4b2842cb8c2e4319b6cf03d3050f38d06.zip
fix(test): setup playwright E2E testing (NK-k04tet)
Diffstat (limited to 'frontend/tests/e2e.spec.ts')
-rw-r--r--frontend/tests/e2e.spec.ts11
1 files changed, 7 insertions, 4 deletions
diff --git a/frontend/tests/e2e.spec.ts b/frontend/tests/e2e.spec.ts
index 7c8c20e..1caf0c8 100644
--- a/frontend/tests/e2e.spec.ts
+++ b/frontend/tests/e2e.spec.ts
@@ -16,7 +16,7 @@ test.describe('Neko Reader E2E', () => {
// 3. Verify Dashboard
// Keep checking for /v2/ or /v2
await expect(page).toHaveURL(/.*\/v2\/?$/);
- await expect(page.getByText('Neko Reader')).toBeVisible();
+ await expect(page.locator('h1.logo')).toContainText('🐱');
await expect(page.getByText('Logout')).toBeVisible();
// 4. Verify Feed List
@@ -33,15 +33,18 @@ test.describe('Neko Reader E2E', () => {
// 5. Navigate to Feed
await page.goto('/v2/');
- // Default view is now "Unread Items" or "Items", depending on state.
+ // Default view is now the stream.
// It should NOT show "Select a feed" anymore.
- await expect(page.getByText('Unread Items')).toBeVisible();
+ // Wait for items or "No items found" or loading state
+ await expect(page.locator('.feed-items').or(page.locator('.feed-items-loading')).or(page.getByText('No items found'))).toBeVisible({ timeout: 10000 });
// 6. Verify Tag View
// Go to a tag URL (simulated, since we can't easily add tags via UI in this test yet without setup)
// But we can check if the route loads without crashing
await page.goto('/v2/tag/Tech');
- await expect(page.getByText('Tag: Tech')).toBeVisible();
+ // The TagView component might show "Category: Tech" or "Tag: Tech" or just items.
+ // In the current FeedItems.tsx it doesn't show a header, but it should load.
+ await expect(page.locator('.feed-items')).toBeVisible();
// 7. Logout
await page.click('text=Logout');