fixup! added e2e test #117
Annotations
8 errors, 1 warning, and 1 notice
tests/content.spec.ts#L476
1) [chrome] › content.spec.ts:454:5 › 測試 强制啓動 模式 ─────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).not.toBeAttached()
Locator: locator('section#bjf-feature-jimaku')
Expected: not attached
Received: attached
Call log:
- expect.not.toBeAttached with timeout 5000ms
- waiting for locator('section#bjf-feature-jimaku')
- locator resolved to <section id="bjf-feature-jimaku"></section>
- unexpected value "true"
- locator resolved to <section id="bjf-feature-jimaku"></section>
- unexpected value "true"
- locator resolved to <section id="bjf-feature-jimaku"></section>
- unexpected value "true"
- locator resolved to <section id="bjf-feature-jimaku"></section>
- unexpected value "true"
- locator resolved to <section id="bjf-feature-jimaku"></section>
- unexpected value "true"
- locator resolved to <section id="bjf-feature-jimaku"></section>
- unexpected value "true"
- locator resolved to <section id="bjf-feature-jimaku"></section>
- unexpected value "true"
- locator resolved to <section id="bjf-feature-jimaku"></section>
- unexpected value "true"
- locator resolved to <section id="bjf-feature-jimaku"></section>
- unexpected value "true"
474 | logger.info('測試主元素是否存在...')
475 | await expect(content.getByText('功能菜单')).toBeVisible()
> 476 | await expect(content.locator('section#bjf-feature-jimaku')).not.toBeAttached()
| ^
477 | await expect(content.locator('section#bjf-feature-superchat')).not.toBeAttached()
478 |
479 | })
at /home/runner/work/bilibili-vup-stream-enhancer/bilibili-vup-stream-enhancer/tests/content.spec.ts:476:69
|
tests/content.spec.ts#L476
1) [chrome] › content.spec.ts:454:5 › 測試 强制啓動 模式 ─────────────────────────────────────────────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).not.toBeAttached()
Locator: locator('section#bjf-feature-jimaku')
Expected: not attached
Received: attached
Call log:
- expect.not.toBeAttached with timeout 5000ms
- waiting for locator('section#bjf-feature-jimaku')
- locator resolved to <section id="bjf-feature-jimaku"></section>
- unexpected value "true"
- locator resolved to <section id="bjf-feature-jimaku"></section>
- unexpected value "true"
- locator resolved to <section id="bjf-feature-jimaku"></section>
- unexpected value "true"
- locator resolved to <section id="bjf-feature-jimaku"></section>
- unexpected value "true"
- locator resolved to <section id="bjf-feature-jimaku"></section>
- unexpected value "true"
- locator resolved to <section id="bjf-feature-jimaku"></section>
- unexpected value "true"
- locator resolved to <section id="bjf-feature-jimaku"></section>
- unexpected value "true"
- locator resolved to <section id="bjf-feature-jimaku"></section>
- unexpected value "true"
- locator resolved to <section id="bjf-feature-jimaku"></section>
- unexpected value "true"
474 | logger.info('測試主元素是否存在...')
475 | await expect(content.getByText('功能菜单')).toBeVisible()
> 476 | await expect(content.locator('section#bjf-feature-jimaku')).not.toBeAttached()
| ^
477 | await expect(content.locator('section#bjf-feature-superchat')).not.toBeAttached()
478 |
479 | })
at /home/runner/work/bilibili-vup-stream-enhancer/bilibili-vup-stream-enhancer/tests/content.spec.ts:476:69
|
tests/content.spec.ts#L476
1) [chrome] › content.spec.ts:454:5 › 測試 强制啓動 模式 ─────────────────────────────────────────────────
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).not.toBeAttached()
Locator: locator('section#bjf-feature-jimaku')
Expected: not attached
Received: attached
Call log:
- expect.not.toBeAttached with timeout 5000ms
- waiting for locator('section#bjf-feature-jimaku')
- locator resolved to <section id="bjf-feature-jimaku"></section>
- unexpected value "true"
- locator resolved to <section id="bjf-feature-jimaku"></section>
- unexpected value "true"
- locator resolved to <section id="bjf-feature-jimaku"></section>
- unexpected value "true"
- locator resolved to <section id="bjf-feature-jimaku"></section>
- unexpected value "true"
- locator resolved to <section id="bjf-feature-jimaku"></section>
- unexpected value "true"
- locator resolved to <section id="bjf-feature-jimaku"></section>
- unexpected value "true"
- locator resolved to <section id="bjf-feature-jimaku"></section>
- unexpected value "true"
- locator resolved to <section id="bjf-feature-jimaku"></section>
- unexpected value "true"
- locator resolved to <section id="bjf-feature-jimaku"></section>
- unexpected value "true"
474 | logger.info('測試主元素是否存在...')
475 | await expect(content.getByText('功能菜单')).toBeVisible()
> 476 | await expect(content.locator('section#bjf-feature-jimaku')).not.toBeAttached()
| ^
477 | await expect(content.locator('section#bjf-feature-superchat')).not.toBeAttached()
478 |
479 | })
at /home/runner/work/bilibili-vup-stream-enhancer/bilibili-vup-stream-enhancer/tests/content.spec.ts:476:69
|
tests/content.spec.ts#L476
1) [chrome] › content.spec.ts:454:5 › 測試 强制啓動 模式 ─────────────────────────────────────────────────
Retry #3 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).not.toBeAttached()
Locator: locator('section#bjf-feature-jimaku')
Expected: not attached
Received: attached
Call log:
- expect.not.toBeAttached with timeout 5000ms
- waiting for locator('section#bjf-feature-jimaku')
- locator resolved to <section id="bjf-feature-jimaku"></section>
- unexpected value "true"
- locator resolved to <section id="bjf-feature-jimaku"></section>
- unexpected value "true"
- locator resolved to <section id="bjf-feature-jimaku"></section>
- unexpected value "true"
- locator resolved to <section id="bjf-feature-jimaku"></section>
- unexpected value "true"
- locator resolved to <section id="bjf-feature-jimaku"></section>
- unexpected value "true"
- locator resolved to <section id="bjf-feature-jimaku"></section>
- unexpected value "true"
- locator resolved to <section id="bjf-feature-jimaku"></section>
- unexpected value "true"
- locator resolved to <section id="bjf-feature-jimaku"></section>
- unexpected value "true"
- locator resolved to <section id="bjf-feature-jimaku"></section>
- unexpected value "true"
474 | logger.info('測試主元素是否存在...')
475 | await expect(content.getByText('功能菜单')).toBeVisible()
> 476 | await expect(content.locator('section#bjf-feature-jimaku')).not.toBeAttached()
| ^
477 | await expect(content.locator('section#bjf-feature-superchat')).not.toBeAttached()
478 |
479 | })
at /home/runner/work/bilibili-vup-stream-enhancer/bilibili-vup-stream-enhancer/tests/content.spec.ts:476:69
|
tests/content.spec.ts#L1
1) [chrome] › content.spec.ts:454:5 › 測試 强制啓動 模式 ─────────────────────────────────────────────────
Retry #4 ───────────────────────────────────────────────────────────────────────────────────────
Test timeout of 60000ms exceeded.
|
tests/content.spec.ts#L473
1) [chrome] › content.spec.ts:454:5 › 測試 强制啓動 模式 ─────────────────────────────────────────────────
Retry #4 ───────────────────────────────────────────────────────────────────────────────────────
Error: page.reload: Target page, context or browser has been closed
Call log:
- waiting for navigation until "load"
- navigated to "https://live.bilibili.com/21849412"
471 |
472 | logger.info('正在刷新頁面...')
> 473 | await page.reload()
| ^
474 | logger.info('測試主元素是否存在...')
475 | await expect(content.getByText('功能菜单')).toBeVisible()
476 | await expect(content.locator('section#bjf-feature-jimaku')).not.toBeAttached()
at /home/runner/work/bilibili-vup-stream-enhancer/bilibili-vup-stream-enhancer/tests/content.spec.ts:473:16
|
tests/content.spec.ts#L476
1) [chrome] › content.spec.ts:454:5 › 測試 强制啓動 模式 ─────────────────────────────────────────────────
Retry #5 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).not.toBeAttached()
Locator: locator('section#bjf-feature-jimaku')
Expected: not attached
Received: attached
Call log:
- expect.not.toBeAttached with timeout 5000ms
- waiting for locator('section#bjf-feature-jimaku')
- locator resolved to <section id="bjf-feature-jimaku"></section>
- unexpected value "true"
- locator resolved to <section id="bjf-feature-jimaku"></section>
- unexpected value "true"
- locator resolved to <section id="bjf-feature-jimaku"></section>
- unexpected value "true"
- locator resolved to <section id="bjf-feature-jimaku"></section>
- unexpected value "true"
- locator resolved to <section id="bjf-feature-jimaku"></section>
- unexpected value "true"
- locator resolved to <section id="bjf-feature-jimaku"></section>
- unexpected value "true"
- locator resolved to <section id="bjf-feature-jimaku"></section>
- unexpected value "true"
- locator resolved to <section id="bjf-feature-jimaku"></section>
- unexpected value "true"
- locator resolved to <section id="bjf-feature-jimaku"></section>
- unexpected value "true"
474 | logger.info('測試主元素是否存在...')
475 | await expect(content.getByText('功能菜单')).toBeVisible()
> 476 | await expect(content.locator('section#bjf-feature-jimaku')).not.toBeAttached()
| ^
477 | await expect(content.locator('section#bjf-feature-superchat')).not.toBeAttached()
478 |
479 | })
at /home/runner/work/bilibili-vup-stream-enhancer/bilibili-vup-stream-enhancer/tests/content.spec.ts:476:69
|
|
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/
|
|
This job failed
Loading