refactor: Improve E2E test performance and reliability #35
Annotations
4 errors and 1 notice
|
test
Process completed with exit code 1.
|
|
[chromium] › e2e/podcast-search.spec.ts:61:3 › Podcast Search and Subscription › should navigate to different views from sidebar:
e2e/podcast-search.spec.ts#L72
1) [chromium] › e2e/podcast-search.spec.ts:61:3 › Podcast Search and Subscription › should navigate to different views from sidebar
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(locator).toBeVisible() failed
Locator: locator('h2:has-text("Discover"), input[data-testid="search-input"]')
Expected: visible
Error: strict mode violation: locator('h2:has-text("Discover"), input[data-testid="search-input"]') resolved to 2 elements:
1) <h2 class="font-bold text-zinc-900 dark:text-white text-lg">Discover</h2> aka getByRole('heading', { name: 'Discover' })
2) <input value="" type="text" aria-label="Explore" data-testid="search-input" placeholder="Explore millions of frequencies..." class="w-full bg-zinc-100 dark:bg-zinc-900/80 border border-zinc-200 dark:border-zinc-800 rounded-2xl py-5 pl-14 pr-6 text-zinc-900 dark:text-white focus:ring-2 focus:ring-indigo-500 outline-none transition-all placeholder:text-zinc-400 text-lg shadow-sm"/> aka getByTestId('search-input')
Call log:
- Expect "toBeVisible" with timeout 10000ms
- waiting for locator('h2:has-text("Discover"), input[data-testid="search-input"]')
70 | const discoverLink = page.locator('a:has-text("Discover")');
71 | await discoverLink.click();
> 72 | await expect(page.locator('h2:has-text("Discover"), input[data-testid="search-input"]')).toBeVisible({ timeout: 10000 });
| ^
73 |
74 | // Navigate to New Releases
75 | const newReleasesButton = page.locator('button:has-text("New Releases")');
at /home/runner/work/aurapod/aurapod/e2e/podcast-search.spec.ts:72:94
|
|
[chromium] › e2e/podcast-search.spec.ts:61:3 › Podcast Search and Subscription › should navigate to different views from sidebar:
e2e/podcast-search.spec.ts#L72
1) [chromium] › e2e/podcast-search.spec.ts:61:3 › Podcast Search and Subscription › should navigate to different views from sidebar
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(locator).toBeVisible() failed
Locator: locator('h2:has-text("Discover"), input[data-testid="search-input"]')
Expected: visible
Error: strict mode violation: locator('h2:has-text("Discover"), input[data-testid="search-input"]') resolved to 2 elements:
1) <h2 class="font-bold text-zinc-900 dark:text-white text-lg">Discover</h2> aka getByRole('heading', { name: 'Discover' })
2) <input value="" type="text" aria-label="Explore" data-testid="search-input" placeholder="Explore millions of frequencies..." class="w-full bg-zinc-100 dark:bg-zinc-900/80 border border-zinc-200 dark:border-zinc-800 rounded-2xl py-5 pl-14 pr-6 text-zinc-900 dark:text-white focus:ring-2 focus:ring-indigo-500 outline-none transition-all placeholder:text-zinc-400 text-lg shadow-sm"/> aka getByTestId('search-input')
Call log:
- Expect "toBeVisible" with timeout 10000ms
- waiting for locator('h2:has-text("Discover"), input[data-testid="search-input"]')
70 | const discoverLink = page.locator('a:has-text("Discover")');
71 | await discoverLink.click();
> 72 | await expect(page.locator('h2:has-text("Discover"), input[data-testid="search-input"]')).toBeVisible({ timeout: 10000 });
| ^
73 |
74 | // Navigate to New Releases
75 | const newReleasesButton = page.locator('button:has-text("New Releases")');
at /home/runner/work/aurapod/aurapod/e2e/podcast-search.spec.ts:72:94
|
|
[chromium] › e2e/podcast-search.spec.ts:61:3 › Podcast Search and Subscription › should navigate to different views from sidebar:
e2e/podcast-search.spec.ts#L72
1) [chromium] › e2e/podcast-search.spec.ts:61:3 › Podcast Search and Subscription › should navigate to different views from sidebar
Error: expect(locator).toBeVisible() failed
Locator: locator('h2:has-text("Discover"), input[data-testid="search-input"]')
Expected: visible
Error: strict mode violation: locator('h2:has-text("Discover"), input[data-testid="search-input"]') resolved to 2 elements:
1) <h2 class="font-bold text-zinc-900 dark:text-white text-lg">Discover</h2> aka getByRole('heading', { name: 'Discover' })
2) <input value="" type="text" aria-label="Explore" data-testid="search-input" placeholder="Explore millions of frequencies..." class="w-full bg-zinc-100 dark:bg-zinc-900/80 border border-zinc-200 dark:border-zinc-800 rounded-2xl py-5 pl-14 pr-6 text-zinc-900 dark:text-white focus:ring-2 focus:ring-indigo-500 outline-none transition-all placeholder:text-zinc-400 text-lg shadow-sm"/> aka getByTestId('search-input')
Call log:
- Expect "toBeVisible" with timeout 10000ms
- waiting for locator('h2:has-text("Discover"), input[data-testid="search-input"]')
70 | const discoverLink = page.locator('a:has-text("Discover")');
71 | await discoverLink.click();
> 72 | await expect(page.locator('h2:has-text("Discover"), input[data-testid="search-input"]')).toBeVisible({ timeout: 10000 });
| ^
73 |
74 | // Navigate to New Releases
75 | const newReleasesButton = page.locator('button:has-text("New Releases")');
at /home/runner/work/aurapod/aurapod/e2e/podcast-search.spec.ts:72:94
|
|
🎭 Playwright Run Summary
1 failed
[chromium] › e2e/podcast-search.spec.ts:61:3 › Podcast Search and Subscription › should navigate to different views from sidebar
1 skipped
49 passed (50.4s)
|
Artifacts
Produced during runtime
| Name | Size | Digest | |
|---|---|---|---|
|
coverage
Expired
|
324 KB |
sha256:2edae561ca9181b5b73b70000b27c06dc5eaadd368bb838dc3ab3680dc00df55
|
|
|
playwright-report
Expired
|
3.75 MB |
sha256:3a1ab11fb0cefbfd57dc30fb63f806cb2436e77f4c247e0377f53f62c15e14ea
|
|