[Bugfix] typescript error #306
Annotations
10 errors, 2 warnings, and 1 notice
tests/content.spec.ts#L1
1) [chrome-theme] › content.spec.ts:142:5 › 測試进入设置按鈕 ─────────────────────────────────────────────
Test timeout of 120000ms exceeded.
|
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
|
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
|
tests/content.spec.ts#L1
1) [chrome-theme] › content.spec.ts:142:5 › 測試进入设置按鈕 ─────────────────────────────────────────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Test timeout of 120000ms exceeded.
|
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
|
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
|
tests/content.spec.ts#L1
2) [chrome-theme] › content.spec.ts:294:5 › 測試大海報房間下返回非海报界面按鈕 ────────────────────────────────────
Test timeout of 120000ms exceeded.
|
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
-
|
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
|
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
|
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/
|
[theme-setup] › theme.setup.ts#L1
[theme-setup] › theme.setup.ts took 3.4m
|
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)
|
This job succeeded
Loading