[Bugfix] typescript error #306
build-test.yml
on: pull_request
Matrix: build
Matrix: test
Matrix: e2e-test
Annotations
13 errors, 9 warnings, and 6 notices
[edge] › features/jimaku.spec.ts:373:5 › 測試大海報房間下字幕區塊是否存在:
tests/helpers/bilibili-api.ts#L51
1) [edge] › features/jimaku.spec.ts:373:5 › 測試大海報房間下字幕區塊是否存在 ─────────────────────────────────────
Error: apiRequestContext.get: socket hang up
Call log:
- → GET https://api.live.bilibili.com/room/v1/Room/room_init?id=1603600
- user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.6723.31 Safari/537.36 Edg/130.0.6723.31
- accept: */*
- accept-encoding: gzip,deflate,br
- cookie: LIVE_BUVID=AUTO8417290901784499
at helpers/bilibili-api.ts:51
49 | */
50 | private async fetch<T = any>(path: string): Promise<T> {
> 51 | const res = await this.context.get(path)
| ^
52 | if (!res.ok()) throw new Error(`获取bilibili API失败:${res.statusText()}`)
53 | return await res.json()
54 | }
at BilbiliApi.fetch (/home/runner/work/bilibili-vup-stream-enhancer/bilibili-vup-stream-enhancer/tests/helpers/bilibili-api.ts:51:40)
at BilbiliApi.getRoomStatus (/home/runner/work/bilibili-vup-stream-enhancer/bilibili-vup-stream-enhancer/tests/helpers/bilibili-api.ts:63:33)
at BilibiliPage.isStatus (/home/runner/work/bilibili-vup-stream-enhancer/bilibili-vup-stream-enhancer/tests/helpers/bilibili-page.ts:65:31)
at checker (/home/runner/work/bilibili-vup-stream-enhancer/bilibili-vup-stream-enhancer/tests/helpers/room-finder.ts:27:55)
at RoomTypeFinder.getRoomType (/home/runner/work/bilibili-vup-stream-enhancer/bilibili-vup-stream-enhancer/tests/helpers/room-finder.ts:51:23)
at RoomTypeFinder.findRoomType (/home/runner/work/bilibili-vup-stream-enhancer/bilibili-vup-stream-enhancer/tests/helpers/room-finder.ts:97:30)
at RoomTypeFinder.findRoomTypeWithCache (/home/runner/work/bilibili-vup-stream-enhancer/bilibili-vup-stream-enhancer/tests/helpers/room-finder.ts:130:22)
at Object.exports.test._extension.extensionBase.extend.themeRoom.timeout (/home/runner/work/bilibili-vup-stream-enhancer/bilibili-vup-stream-enhancer/tests/fixtures/content.ts:53:26)
|
[edge] › features/jimaku.spec.ts:373:5 › 測試大海報房間下字幕區塊是否存在:
tests/features/jimaku.spec.ts#L1
1) [edge] › features/jimaku.spec.ts:373:5 › 測試大海報房間下字幕區塊是否存在 ─────────────────────────────────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Test timeout of 120000ms exceeded.
|
[edge] › features/jimaku.spec.ts:373:5 › 測試大海報房間下字幕區塊是否存在:
tests/features/jimaku.spec.ts#L399
1) [edge] › features/jimaku.spec.ts:373:5 › 測試大海報房間下字幕區塊是否存在 ─────────────────────────────────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
TimeoutError: locator.click: Timeout 120000ms exceeded.
Call log:
- waiting for getByText('切换字幕按钮列表')
397 | // 防止 toaster 遲遲不消失
398 | await p.evaluate(() => window.document.querySelector('#bjf-toaster li[data-y-position="top"][data-x-position="left"]')?.remove())
> 399 | await p.getByText('切换字幕按钮列表').click({ timeout: 120000 })
| ^
400 | await p.waitForTimeout(2000)
401 | }
402 | }
at ensureButtonListVisible (/home/runner/work/bilibili-vup-stream-enhancer/bilibili-vup-stream-enhancer/tests/features/jimaku.spec.ts:399:39)
at /home/runner/work/bilibili-vup-stream-enhancer/bilibili-vup-stream-enhancer/tests/features/jimaku.spec.ts:378:5
|
[chrome-theme] › content.spec.ts:142:5 › 測試进入设置按鈕:
tests/content.spec.ts#L1
1) [chrome-theme] › content.spec.ts:142:5 › 測試进入设置按鈕 ─────────────────────────────────────────────
Test timeout of 120000ms exceeded.
|
[chrome-theme] › content.spec.ts:142:5 › 測試进入设置按鈕:
tests/content.spec.ts#L148
1) [chrome-theme] › content.spec.ts:142:5 › 測試进入设置按鈕 ─────────────────────────────────────────────
Error: locator.click: Target page, context or browser has been closed
Call log:
- waiting for getByText('进入设置')
- locator resolved to <button type="button" class="align-middle select-none font-sans font-bold text-center uppercase transition-all disabled:opacity-50 disabled:shadow-none disabled:pointer-events-none py-3.5 px-7 rounded-lg border border-gray-900 text-gray-900 hover:opacity-75 focus:ring focus:ring-gray-300 active:opacity-[0.85] gap-3 text-lg">进入设置</button>
- attempting click action
- waiting for element to be visible, enabled and stable
- element is visible, enabled and stable
- scrolling into view if needed
- done scrolling
- <div class="bili-mini-mask fade-enter-active fade-enter-to">…</div> from <body class="lite-room supportWebp risk-captcha-adapt-pc risk-captcha-adapt">…</body> subtree intercepts pointer events
- retrying click action, attempt #1
- waiting for element to be visible, enabled and stable
- element is visible, enabled and stable
- scrolling into view if needed
- done scrolling
- <div class="bili-mini-mask">…</div> from <body class="lite-room supportWebp risk-captcha-adapt-pc risk-captcha-adapt">…</body> subtree intercepts pointer events
- retrying click action, attempt #2
- waiting 20ms
- waiting for element to be visible, enabled and stable
- element is visible, enabled and stable
- scrolling into view if needed
- done scrolling
- <div class="bili-mini-mask fade-leave-active fade-leave-to">…</div> from <body class="lite-room supportWebp risk-captcha-adapt-pc risk-captcha-adapt">…</body> subtree intercepts pointer events
- retrying click action, attempt #3
- waiting 100ms
- waiting for element to be visible, enabled and stable
- element is not stable
- retrying click action, attempt #4
- waiting 100ms
- waiting for element to be visible, enabled and stable
- element is visible, enabled and stable
- scrolling into view if needed
- done scrolling
- element is outside of the viewport
- retrying click action, attempt #5
- waiting 500ms
- waiting for element to be visible, enabled and stable
- element is visible, enabled and stable
- scrolling into view if needed
- done scrolling
- element is outside of the viewport
- retrying click action, attempt #6
- waiting 500ms
- waiting for element to be visible, enabled and stable
- element is visible, enabled and stable
- scrolling into view if needed
- done scrolling
- element is outside of the viewport
- retrying click action, attempt #7
- waiting 500ms
- waiting for element to be visible, enabled and stable
- element is visible, enabled and stable
- scrolling into view if needed
- done scrolling
- element is outside of the viewport
- retrying click action, attempt #8
- waiting 500ms
- waiting for element to be visible, enabled and stable
- element is visible, enabled and stable
- scrolling into view if needed
- done scrolling
- element is outside of the viewport
- retrying click action, attempt #9
- waiting 500ms
- waiting for element to be visible, enabled and stable
- element is visible, enabled and stable
- scrolling into view if needed
- done scrolling
- element is outside of the viewport
- retrying click action, attempt #10
- waiting 500ms
- waiting for element to be visible, enabled and stable
- element is visible, enabled and stable
- scrolling into view if needed
- done scrolling
- element is outside of the viewport
- retrying click action, attempt #11
- waiting 50
|
[chrome-theme] › content.spec.ts:142:5 › 測試进入设置按鈕:
tests/content.spec.ts#L147
1) [chrome-theme] › content.spec.ts:142:5 › 測試进入设置按鈕 ─────────────────────────────────────────────
Error: browserContext.waitForEvent: Target page, context or browser has been closed
145 | await content.locator('#bjf-main-menu').waitFor({ state: 'visible' })
146 |
> 147 | const popup = context.waitForEvent('page', { predicate: p => p.url().includes('options.html') })
| ^
148 | await content.getByText('进入设置').click()
149 |
150 | const settings = await popup
at /home/runner/work/bilibili-vup-stream-enhancer/bilibili-vup-stream-enhancer/tests/content.spec.ts:147:27
|
[chrome-theme] › content.spec.ts:142:5 › 測試进入设置按鈕:
tests/content.spec.ts#L1
1) [chrome-theme] › content.spec.ts:142:5 › 測試进入设置按鈕 ─────────────────────────────────────────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Test timeout of 120000ms exceeded.
|
[chrome-theme] › content.spec.ts:142:5 › 測試进入设置按鈕:
tests/content.spec.ts#L148
1) [chrome-theme] › content.spec.ts:142:5 › 測試进入设置按鈕 ─────────────────────────────────────────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: locator.click: Target page, context or browser has been closed
Call log:
- waiting for getByText('进入设置')
- locator resolved to <button type="button" class="align-middle select-none font-sans font-bold text-center uppercase transition-all disabled:opacity-50 disabled:shadow-none disabled:pointer-events-none py-3.5 px-7 rounded-lg border border-gray-900 text-gray-900 hover:opacity-75 focus:ring focus:ring-gray-300 active:opacity-[0.85] gap-3 text-lg">进入设置</button>
- attempting click action
- waiting for element to be visible, enabled and stable
- element is visible, enabled and stable
- scrolling into view if needed
- done scrolling
- <div class="bili-mini-mask">…</div> from <body class="lite-room supportWebp risk-captcha-adapt-pc risk-captcha-adapt">…</body> subtree intercepts pointer events
- retrying click action, attempt #1
- waiting for element to be visible, enabled and stable
- element is visible, enabled and stable
- scrolling into view if needed
- done scrolling
- <div class="bili-mini-mask">…</div> from <body class="lite-room supportWebp risk-captcha-adapt-pc risk-captcha-adapt">…</body> subtree intercepts pointer events
- retrying click action, attempt #2
- waiting 20ms
- waiting for element to be visible, enabled and stable
- element is not stable
- retrying click action, attempt #3
- waiting 100ms
- waiting for element to be visible, enabled and stable
- element is not stable
- retrying click action, attempt #4
- waiting 100ms
- waiting for element to be visible, enabled and stable
- element is visible, enabled and stable
- scrolling into view if needed
- done scrolling
- element is outside of the viewport
- retrying click action, attempt #5
- waiting 500ms
- waiting for element to be visible, enabled and stable
- element is visible, enabled and stable
- scrolling into view if needed
- done scrolling
- element is outside of the viewport
- retrying click action, attempt #6
- waiting 500ms
- waiting for element to be visible, enabled and stable
- element is visible, enabled and stable
- scrolling into view if needed
- done scrolling
- element is outside of the viewport
- retrying click action, attempt #7
- waiting 500ms
- waiting for element to be visible, enabled and stable
- element is visible, enabled and stable
- scrolling into view if needed
- done scrolling
- element is outside of the viewport
- retrying click action, attempt #8
- waiting 500ms
- waiting for element to be visible, enabled and stable
- element is visible, enabled and stable
- scrolling into view if needed
- done scrolling
- element is outside of the viewport
- retrying click action, attempt #9
- waiting 500ms
- waiting for element to be visible, enabled and stable
- element is visible, enabled and stable
- scrolling into view if needed
- done scrolling
- element is outside of the viewport
- retrying click action, attempt #10
- waiting 500ms
- waiting for element to be visible, enabled and stable
- element is visible, enabled and stable
- scrolling into view if needed
- done scrolling
- element is outside of the viewport
- retrying click action, attempt #11
- waiting 500ms
- waiting for element to be visible, enabled and stable
- element is visible, enabled and stable
- scrolling into view if needed
- done scrolling
- element is outside of t
|
[chrome-theme] › content.spec.ts:142:5 › 測試进入设置按鈕:
tests/content.spec.ts#L147
1) [chrome-theme] › content.spec.ts:142:5 › 測試进入设置按鈕 ─────────────────────────────────────────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: browserContext.waitForEvent: Target page, context or browser has been closed
145 | await content.locator('#bjf-main-menu').waitFor({ state: 'visible' })
146 |
> 147 | const popup = context.waitForEvent('page', { predicate: p => p.url().includes('options.html') })
| ^
148 | await content.getByText('进入设置').click()
149 |
150 | const settings = await popup
at /home/runner/work/bilibili-vup-stream-enhancer/bilibili-vup-stream-enhancer/tests/content.spec.ts:147:27
|
[chrome-theme] › content.spec.ts:294:5 › 測試大海報房間下返回非海报界面按鈕:
tests/content.spec.ts#L1
2) [chrome-theme] › content.spec.ts:294:5 › 測試大海報房間下返回非海报界面按鈕 ────────────────────────────────────
Test timeout of 120000ms exceeded.
|
[chrome-theme] › content.spec.ts:294:5 › 測試大海報房間下返回非海报界面按鈕:
tests/content.spec.ts#L304
2) [chrome-theme] › content.spec.ts:294:5 › 測試大海報房間下返回非海报界面按鈕 ────────────────────────────────────
Error: locator.click: Target page, context or browser has been closed
Call log:
- waiting for getByText('返回非海报界面')
- locator resolved to <button type="button" class="align-middle select-none font-sans font-bold text-center uppercase transition-all disabled:opacity-50 disabled:shadow-none disabled:pointer-events-none py-3.5 px-7 rounded-lg border border-gray-900 text-gray-900 hover:opacity-75 focus:ring focus:ring-gray-300 active:opacity-[0.85] gap-3 text-lg">返回非海报界面</button>
- attempting click action
- waiting for element to be visible, enabled and stable
- element is visible, enabled and stable
- scrolling into view if needed
- done scrolling
- <div class="bili-mini-mask fade-leave-active fade-leave-to">…</div> from <body class="lite-room supportWebp risk-captcha-adapt-pc risk-captcha-adapt">…</body> subtree intercepts pointer events
- retrying click action, attempt #1
- waiting for element to be visible, enabled and stable
- element is not stable
- retrying click action, attempt #2
- waiting 20ms
- waiting for element to be visible, enabled and stable
- element is visible, enabled and stable
- scrolling into view if needed
- done scrolling
- element is outside of the viewport
- retrying click action, attempt #3
- waiting 100ms
- waiting for element to be visible, enabled and stable
- element is visible, enabled and stable
- scrolling into view if needed
- done scrolling
- element is outside of the viewport
- retrying click action, attempt #4
- waiting 100ms
- waiting for element to be visible, enabled and stable
- element is visible, enabled and stable
- scrolling into view if needed
- done scrolling
- element is outside of the viewport
- retrying click action, attempt #5
- waiting 500ms
- waiting for element to be visible, enabled and stable
- element is visible, enabled and stable
- scrolling into view if needed
- done scrolling
- element is outside of the viewport
- retrying click action, attempt #6
- waiting 500ms
- waiting for element to be visible, enabled and stable
- element is visible, enabled and stable
- scrolling into view if needed
- done scrolling
- element is outside of the viewport
- retrying click action, attempt #7
- waiting 500ms
- waiting for element to be visible, enabled and stable
- element is visible, enabled and stable
- scrolling into view if needed
- done scrolling
- element is outside of the viewport
- retrying click action, attempt #8
- waiting 500ms
- waiting for element to be visible, enabled and stable
- element is visible, enabled and stable
- scrolling into view if needed
- done scrolling
- element is outside of the viewport
- retrying click action, attempt #9
- waiting 500ms
- waiting for element to be visible, enabled and stable
- element is visible, enabled and stable
- scrolling into view if needed
- done scrolling
- element is outside of the viewport
- retrying click action, attempt #10
- waiting 500ms
- waiting for element to be visible, enabled and stable
- element is visible, enabled and stable
- scrolling into view if needed
- done scrolling
- element is outside of the viewport
- retrying click action, attempt #11
- waiting 500ms
- waiting for element to be visible, enabled and stable
- element is visible, enabled and stable
- scrolling into view if needed
- done scrolling
- element is outside of the viewport
- retrying click action, attempt #12
-
|
[chrome-theme] › content.spec.ts:294:5 › 測試大海報房間下返回非海报界面按鈕:
tests/content.spec.ts#L303
2) [chrome-theme] › content.spec.ts:294:5 › 測試大海報房間下返回非海报界面按鈕 ────────────────────────────────────
Error: browserContext.waitForEvent: Target page, context or browser has been closed
301 | await content.getByText('功能菜单').click()
302 | await content.locator('#bjf-main-menu').waitFor({ state: 'visible' })
> 303 | const popup = context.waitForEvent('page', { predicate: p => p.url().includes('/blanc') })
| ^
304 | await content.getByText('返回非海报界面').click()
305 | const blanc = await popup
306 |
at /home/runner/work/bilibili-vup-stream-enhancer/bilibili-vup-stream-enhancer/tests/content.spec.ts:303:27
|
[chrome-theme] › features/jimaku.spec.ts:129:5 › 測試離線記錄彈幕:
tests/features/jimaku.spec.ts#L8
3) [chrome-theme] › features/jimaku.spec.ts:129:5 › 測試離線記錄彈幕 ─────────────────────────────────────
Test timeout of 120000ms exceeded while running "beforeEach" hook.
6 | import { readText } from 'tests/utils/file'
7 |
> 8 | test.beforeEach(async ({ content: p }) => {
| ^
9 | await ensureButtonListVisible(p)
10 | })
11 |
at /home/runner/work/bilibili-vup-stream-enhancer/bilibili-vup-stream-enhancer/tests/features/jimaku.spec.ts:8:6
|
test (integrations)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/cache@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
test (units)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/cache@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
Slow Test:
[units] › units/capture.spec.ts#L1
[units] › units/capture.spec.ts took 49.7s
|
e2e-test (edge, -theme)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/cache@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
Slow Test:
[theme-setup] › theme.setup.ts#L1
[theme-setup] › theme.setup.ts took 5.7m
|
e2e-test (chrome)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/cache@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
e2e-test (edge)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/cache@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
e2e-test (chrome, -theme)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/cache@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
Slow Test:
[theme-setup] › theme.setup.ts#L1
[theme-setup] › theme.setup.ts took 3.4m
|
🎭 Playwright Run Summary
1 skipped
3 passed (1.5m)
|
🎭 Playwright Run Summary
17 passed (1.8m)
|
🎭 Playwright Run Summary
2 skipped
62 passed (8.7m)
|
🎭 Playwright Run Summary
3 skipped
60 passed (30.2m)
|
🎭 Playwright Run Summary
1 flaky
[edge] › features/jimaku.spec.ts:373:5 › 測試大海報房間下字幕區塊是否存在 ──────────────────────────────────────
2 skipped
60 passed (33.8m)
|
🎭 Playwright Run Summary
7 flaky
[chrome-theme] › content.spec.ts:142:5 › 測試进入设置按鈕 ──────────────────────────────────────────────
[chrome-theme] › content.spec.ts:294:5 › 測試大海報房間下返回非海报界面按鈕 ─────────────────────────────────────
[chrome-theme] › features/jimaku.spec.ts:129:5 › 測試離線記錄彈幕 ──────────────────────────────────────
[chrome-theme] › features/jimaku.spec.ts:184:5 › 测试添加同传用户名单/黑名单 ────────────────────────────────
[chrome-theme] › features/jimaku.spec.ts:257:5 › 測試右鍵同傳字幕來屏蔽同傳發送者 ──────────────────────────────
[chrome-theme] › features/jimaku.spec.ts:290:5 › 測試全屏時字幕區塊是否存在 + 顯示切換 ──────────────────────────
[chrome-theme] › features/recorder.spec.ts:78:5 › 測試 timer 有否更新 ────────────────────────────────
3 skipped
54 passed (41.8m)
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
chrome-mv3
Expired
|
30.9 MB |
|
chrome-test-results
Expired
|
9.1 GB |
|
chrome-theme-test-results
Expired
|
9.94 GB |
|
chromium-mv3
Expired
|
30.9 MB |
|
edge-mv3
Expired
|
30.9 MB |
|
edge-test-results
Expired
|
11.5 GB |
|
edge-theme-test-results
Expired
|
1.09 GB |
|
integrations-test-results
Expired
|
69.2 MB |
|
units-test-results
Expired
|
123 MB |
|