fix: requests suck #243
Annotations
2 errors and 1 notice
Run Playwright tests:
tests/youtube.spec.ts#L17
1) [chromium] › youtube.spec.ts:14:5 › YouTube › The search page can load. ───────────────────────
TimeoutError: locator.textContent: Timeout 5000ms exceeded.
Call log:
- waiting for locator('iframe').contentFrame().locator('#video-title > yt-formatted-string').first()
15 | const frame = await setupPage(page, "https://www.youtube.com/results?search_query=bad+apple");
16 |
> 17 | const title = await frame.locator("#video-title > yt-formatted-string").first().textContent({ timeout: 5000 });
| ^
18 | const thumbnailRef = frame.locator("#contents > ytd-video-renderer:nth-child(1) > #dismissible > ytd-thumbnail > a > yt-image > img")
19 | await thumbnailRef.waitFor({ state: "visible" });
20 |
at /home/runner/work/scramjet/scramjet/tests/youtube.spec.ts:17:89
|
Run Playwright tests:
tests/youtube.spec.ts#L19
1) [chromium] › youtube.spec.ts:14:5 › YouTube › The search page can load. ───────────────────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
TimeoutError: locator.waitFor: Timeout 10000ms exceeded.
Call log:
- waiting for locator('iframe').contentFrame().locator('#contents > ytd-video-renderer:nth-child(1) > #dismissible > ytd-thumbnail > a > yt-image > img') to be visible
17 | const title = await frame.locator("#video-title > yt-formatted-string").first().textContent({ timeout: 5000 });
18 | const thumbnailRef = frame.locator("#contents > ytd-video-renderer:nth-child(1) > #dismissible > ytd-thumbnail > a > yt-image > img")
> 19 | await thumbnailRef.waitFor({ state: "visible" });
| ^
20 |
21 | const thumbnail = await thumbnailRef.getAttribute("src");
22 |
at /home/runner/work/scramjet/scramjet/tests/youtube.spec.ts:19:28
|
Run Playwright tests
1 flaky
[chromium] › youtube.spec.ts:14:5 › YouTube › The search page can load. ────────────────────────
3 passed (39.8s)
|
Loading