Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixup! fixup! fixup! fixup! e2e test
Browse files Browse the repository at this point in the history
eric2788 committed Oct 21, 2024
1 parent 815d6b8 commit 28815ab
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/features/jimaku.spec.ts
Original file line number Diff line number Diff line change
@@ -201,6 +201,7 @@ test('测试同传字幕AI总结', { tag: "@scoped" }, async ({ room, content: p

logger.info('正在測試AI总結結果... (15s)')
await summarizer.waitForTimeout(15000)

Check failure on line 203 in tests/features/jimaku.spec.ts

GitHub Actions / fast-e2e-test (edge)

[edge] › features/jimaku.spec.ts:128:5 › 测试同传字幕AI总结

1) [edge] › features/jimaku.spec.ts:128:5 › 测试同传字幕AI总结 ─────────────────────────────────────────── Error: page.waitForTimeout: Target page, context or browser has been closed 201 | 202 | logger.info('正在測試AI总結結果... (15s)') > 203 | await summarizer.waitForTimeout(15000) | ^ 204 | await expect(summarizer.getByText('错误')).toBeHidden({ timeout: 5000 }) 205 | const res = await summarizer.locator('h5.leading-snug').textContent() 206 | logger.debug('AI Summary:', res) at /home/runner/work/bilibili-vup-stream-enhancer/bilibili-vup-stream-enhancer/tests/features/jimaku.spec.ts:203:22
await expect(summarizer.getByText('错误')).toBeHidden({ timeout: 5000 })
const res = await summarizer.locator('h5.leading-snug').textContent()

Check failure on line 205 in tests/features/jimaku.spec.ts

GitHub Actions / fast-e2e-test (chrome)

[chrome] › features/jimaku.spec.ts:128:5 › 测试同传字幕AI总结

1) [chrome] › features/jimaku.spec.ts:128:5 › 测试同传字幕AI总结 ───────────────────────────────────────── Error: locator.textContent: Error: strict mode violation: locator('h5.leading-snug') resolved to 3 elements: 1) <h5 class="block antialiased tracking-normal font-sans text-xl font-semibold leading-snug text-white">【新衣】坏女孩启动。</h5> aka getByRole('heading', { name: '【新衣】坏女孩启动。' }) 2) <h5 class="text-gray-900 text-sm font-semibold leading-snug pb-1">同传字幕总结</h5> aka getByRole('heading', { name: '同传字幕总结' }) 3) <h5 class="text-gray-900 text-sm font-normal leading-snug ">这段对话似乎是在主播结束直播时与观众的互动,内容涉及日常生活的琐事和心情变化。主播提到因为遇到蟑螂…</h5> aka getByRole('heading', { name: '这段对话似乎是在主播结束直播时与观众的互动,内容涉及日常生活的琐事和心情变化。主播提到因为遇到蟑螂而心情变差,回家时又看到蟑螂尸体,感到恶心。主播还提到了在漫展' }) Call log: - waiting for locator('h5.leading-snug') 203 | await summarizer.waitForTimeout(15000) 204 | await expect(summarizer.getByText('错误')).toBeHidden({ timeout: 5000 }) > 205 | const res = await summarizer.locator('h5.leading-snug').textContent() | ^ 206 | logger.debug('AI Summary:', res) 207 | 208 | const maybe = expect.configure({ soft: true }) at /home/runner/work/bilibili-vup-stream-enhancer/bilibili-vup-stream-enhancer/tests/features/jimaku.spec.ts:205:61

Check failure on line 205 in tests/features/jimaku.spec.ts

GitHub Actions / fast-e2e-test (chrome)

[chrome] › features/jimaku.spec.ts:128:5 › 测试同传字幕AI总结

1) [chrome] › features/jimaku.spec.ts:128:5 › 测试同传字幕AI总结 ───────────────────────────────────────── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: locator.textContent: Error: strict mode violation: locator('h5.leading-snug') resolved to 3 elements: 1) <h5 class="block antialiased tracking-normal font-sans text-xl font-semibold leading-snug text-white">腹黑严厉,高压慢热</h5> aka getByRole('heading', { name: '腹黑严厉,高压慢热' }) 2) <h5 class="text-gray-900 text-sm font-semibold leading-snug pb-1">同传字幕总结</h5> aka getByRole('heading', { name: '同传字幕总结' }) 3) <h5 class="text-gray-900 text-sm font-normal leading-snug ">这段对话内容似乎是主播在直播结束后与观众的互动,主播分享了自己因为遇到蟑螂而心情变差的经历,以及在…</h5> aka getByRole('heading', { name: '这段对话内容似乎是主播在直播结束后与观众的互动,主播分享了自己因为遇到蟑螂而心情变差的经历,以及在漫展上的新鲜体验。主播提到了在漫展上买了许多插画、手办和周边,' }) Call log: - waiting for locator('h5.leading-snug') 203 | await summarizer.waitForTimeout(15000) 204 | await expect(summarizer.getByText('错误')).toBeHidden({ timeout: 5000 }) > 205 | const res = await summarizer.locator('h5.leading-snug').textContent() | ^ 206 | logger.debug('AI Summary:', res) 207 | 208 | const maybe = expect.configure({ soft: true }) at /home/runner/work/bilibili-vup-stream-enhancer/bilibili-vup-stream-enhancer/tests/features/jimaku.spec.ts:205:61

Check failure on line 205 in tests/features/jimaku.spec.ts

GitHub Actions / fast-e2e-test (chrome)

[chrome] › features/jimaku.spec.ts:128:5 › 测试同传字幕AI总结

1) [chrome] › features/jimaku.spec.ts:128:5 › 测试同传字幕AI总结 ───────────────────────────────────────── Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: locator.textContent: Error: strict mode violation: locator('h5.leading-snug') resolved to 3 elements: 1) <h5 class="block antialiased tracking-normal font-sans text-xl font-semibold leading-snug text-white">不许在外面偷看</h5> aka getByRole('heading', { name: '不许在外面偷看' }) 2) <h5 class="text-gray-900 text-sm font-semibold leading-snug pb-1">同传字幕总结</h5> aka getByRole('heading', { name: '同传字幕总结' }) 3) <h5 class="text-gray-900 text-sm font-normal leading-snug ">这段对话内容似乎是主播在直播结束后与观众的互动,主播提到了因为遇到蟑螂而心情不好,但参加漫展时有所…</h5> aka getByRole('heading', { name: '这段对话内容似乎是主播在直播结束后与观众的互动,主播提到了因为遇到蟑螂而心情不好,但参加漫展时有所改变,感觉像是成长了。他们在讨论主播购买了很多插画、手办和周边' }) Call log: - waiting for locator('h5.leading-snug') 203 | await summarizer.waitForTimeout(15000) 204 | await expect(summarizer.getByText('错误')).toBeHidden({ timeout: 5000 }) > 205 | const res = await summarizer.locator('h5.leading-snug').textContent() | ^ 206 | logger.debug('AI Summary:', res) 207 | 208 | const maybe = expect.configure({ soft: true }) at /home/runner/work/bilibili-vup-stream-enhancer/bilibili-vup-stream-enhancer/tests/features/jimaku.spec.ts:205:61

Check failure on line 205 in tests/features/jimaku.spec.ts

GitHub Actions / fast-e2e-test (chrome)

[chrome] › features/jimaku.spec.ts:128:5 › 测试同传字幕AI总结

1) [chrome] › features/jimaku.spec.ts:128:5 › 测试同传字幕AI总结 ───────────────────────────────────────── Retry #3 ─────────────────────────────────────────────────────────────────────────────────────── Error: locator.textContent: Error: strict mode violation: locator('h5.leading-snug') resolved to 3 elements: 1) <h5 class="block antialiased tracking-normal font-sans text-xl font-semibold leading-snug text-white">嗨,我在等风,也在等你♥</h5> aka getByRole('heading', { name: '嗨,我在等风,也在等你♥' }) 2) <h5 class="text-gray-900 text-sm font-semibold leading-snug pb-1">同传字幕总结</h5> aka getByRole('heading', { name: '同传字幕总结' }) 3) <h5 class="text-gray-900 text-sm font-normal leading-snug ">这位日本VTuber在直播中与观众分享了她的一天经历,包括心情变化和外出活动。她提到因为一只蟑螂破…</h5> aka getByRole('heading', { name: '这位日本VTuber' }) Call log: - waiting for locator('h5.leading-snug') 203 | await summarizer.waitForTimeout(15000) 204 | await expect(summarizer.getByText('错误')).toBeHidden({ timeout: 5000 }) > 205 | const res = await summarizer.locator('h5.leading-snug').textContent() | ^ 206 | logger.debug('AI Summary:', res) 207 | 208 | const maybe = expect.configure({ soft: true }) at /home/runner/work/bilibili-vup-stream-enhancer/bilibili-vup-stream-enhancer/tests/features/jimaku.spec.ts:205:61

Check failure on line 205 in tests/features/jimaku.spec.ts

GitHub Actions / fast-e2e-test (chrome)

[chrome] › features/jimaku.spec.ts:128:5 › 测试同传字幕AI总结

1) [chrome] › features/jimaku.spec.ts:128:5 › 测试同传字幕AI总结 ───────────────────────────────────────── Retry #4 ─────────────────────────────────────────────────────────────────────────────────────── Error: locator.textContent: Error: strict mode violation: locator('h5.leading-snug') resolved to 3 elements: 1) <h5 class="block antialiased tracking-normal font-sans text-xl font-semibold leading-snug text-white">上班啦上班啦</h5> aka getByRole('heading', { name: '上班啦上班啦' }) 2) <h5 class="text-gray-900 text-sm font-semibold leading-snug pb-1">同传字幕总结</h5> aka getByRole('heading', { name: '同传字幕总结' }) 3) <h5 class="text-gray-900 text-sm font-normal leading-snug ">这段对话似乎是在一位日本VTuber的直播中,主播与观众分享了日常生活中的趣事和一些购物体验。主播…</h5> aka getByRole('heading', { name: '这段对话似乎是在一位日本VTuber' }) Call log: - waiting for locator('h5.leading-snug') 203 | await summarizer.waitForTimeout(15000) 204 | await expect(summarizer.getByText('错误')).toBeHidden({ timeout: 5000 }) > 205 | const res = await summarizer.locator('h5.leading-snug').textContent() | ^ 206 | logger.debug('AI Summary:', res) 207 | 208 | const maybe = expect.configure({ soft: true }) at /home/runner/work/bilibili-vup-stream-enhancer/bilibili-vup-stream-enhancer/tests/features/jimaku.spec.ts:205:61

Check failure on line 205 in tests/features/jimaku.spec.ts

GitHub Actions / fast-e2e-test (edge)

[edge] › features/jimaku.spec.ts:128:5 › 测试同传字幕AI总结

1) [edge] › features/jimaku.spec.ts:128:5 › 测试同传字幕AI总结 ─────────────────────────────────────────── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: locator.textContent: Error: strict mode violation: locator('h5.leading-snug') resolved to 3 elements: 1) <h5 class="block antialiased tracking-normal font-sans text-xl font-semibold leading-snug text-white">听说福建妹妹都很会撒娇</h5> aka getByRole('heading', { name: '听说福建妹妹都很会撒娇' }) 2) <h5 class="text-gray-900 text-sm font-semibold leading-snug pb-1">同传字幕总结</h5> aka getByRole('heading', { name: '同传字幕总结' }) 3) <h5 class="text-gray-900 text-sm font-normal leading-snug ">这位日本VTuber在直播中与观众分享了她的一天经历,包括心情变化和外出活动。她提到因为一只蟑螂影…</h5> aka getByRole('heading', { name: '这位日本VTuber' }) Call log: - waiting for locator('h5.leading-snug') 203 | await summarizer.waitForTimeout(15000) 204 | await expect(summarizer.getByText('错误')).toBeHidden({ timeout: 5000 }) > 205 | const res = await summarizer.locator('h5.leading-snug').textContent() | ^ 206 | logger.debug('AI Summary:', res) 207 | 208 | const maybe = expect.configure({ soft: true }) at /home/runner/work/bilibili-vup-stream-enhancer/bilibili-vup-stream-enhancer/tests/features/jimaku.spec.ts:205:61

Check failure on line 205 in tests/features/jimaku.spec.ts

GitHub Actions / fast-e2e-test (edge)

[edge] › features/jimaku.spec.ts:128:5 › 测试同传字幕AI总结

1) [edge] › features/jimaku.spec.ts:128:5 › 测试同传字幕AI总结 ─────────────────────────────────────────── Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: locator.textContent: Error: strict mode violation: locator('h5.leading-snug') resolved to 3 elements: 1) <h5 class="block antialiased tracking-normal font-sans text-xl font-semibold leading-snug text-white">心情就像下雨天~</h5> aka getByRole('heading', { name: '心情就像下雨天~' }) 2) <h5 class="text-gray-900 text-sm font-semibold leading-snug pb-1">同传字幕总结</h5> aka getByRole('heading', { name: '同传字幕总结' }) 3) <h5 class="text-gray-900 text-sm font-normal leading-snug ">这位日本VTuber在直播中与观众分享了她的一天经历,包括心情变化和外出活动。她提到了因为一只蟑螂…</h5> aka getByRole('heading', { name: '这位日本VTuber' }) Call log: - waiting for locator('h5.leading-snug') 203 | await summarizer.waitForTimeout(15000) 204 | await expect(summarizer.getByText('错误')).toBeHidden({ timeout: 5000 }) > 205 | const res = await summarizer.locator('h5.leading-snug').textContent() | ^ 206 | logger.debug('AI Summary:', res) 207 | 208 | const maybe = expect.configure({ soft: true }) at /home/runner/work/bilibili-vup-stream-enhancer/bilibili-vup-stream-enhancer/tests/features/jimaku.spec.ts:205:61

Check failure on line 205 in tests/features/jimaku.spec.ts

GitHub Actions / fast-e2e-test (edge)

[edge] › features/jimaku.spec.ts:128:5 › 测试同传字幕AI总结

1) [edge] › features/jimaku.spec.ts:128:5 › 测试同传字幕AI总结 ─────────────────────────────────────────── Retry #3 ─────────────────────────────────────────────────────────────────────────────────────── Error: locator.textContent: Error: strict mode violation: locator('h5.leading-snug') resolved to 3 elements: 1) <h5 class="block antialiased tracking-normal font-sans text-xl font-semibold leading-snug text-white">心情就像下雨天~</h5> aka getByRole('heading', { name: '心情就像下雨天~' }) 2) <h5 class="text-gray-900 text-sm font-semibold leading-snug pb-1">同传字幕总结</h5> aka getByRole('heading', { name: '同传字幕总结' }) 3) <h5 class="text-gray-900 text-sm font-normal leading-snug ">这段对话内容似乎是主播在直播结束后与观众的互动,主播提到了因为遇到蟑螂而心情不好,但参加漫展后感觉…</h5> aka getByRole('heading', { name: '这段对话内容似乎是主播在直播结束后与观众的互动,主播提到了因为遇到蟑螂而心情不好,但参加漫展后感觉有所成长。他们在讨论主播购买了很多插画、手办和周边商品,表示虽' }) Call log: - waiting for locator('h5.leading-snug') 203 | await summarizer.waitForTimeout(15000) 204 | await expect(summarizer.getByText('错误')).toBeHidden({ timeout: 5000 }) > 205 | const res = await summarizer.locator('h5.leading-snug').textContent() | ^ 206 | logger.debug('AI Summary:', res) 207 | 208 | const maybe = expect.configure({ soft: true }) at /home/runner/work/bilibili-vup-stream-enhancer/bilibili-vup-stream-enhancer/tests/features/jimaku.spec.ts:205:61

Check failure on line 205 in tests/features/jimaku.spec.ts

GitHub Actions / fast-e2e-test (edge)

[edge] › features/jimaku.spec.ts:128:5 › 测试同传字幕AI总结

1) [edge] › features/jimaku.spec.ts:128:5 › 测试同传字幕AI总结 ─────────────────────────────────────────── Retry #4 ─────────────────────────────────────────────────────────────────────────────────────── Error: locator.textContent: Error: strict mode violation: locator('h5.leading-snug') resolved to 3 elements: 1) <h5 class="block antialiased tracking-normal font-sans text-xl font-semibold leading-snug text-white">狼人教官</h5> aka getByRole('heading', { name: '狼人教官' }) 2) <h5 class="text-gray-900 text-sm font-semibold leading-snug pb-1">同传字幕总结</h5> aka getByRole('heading', { name: '同传字幕总结' }) 3) <h5 class="text-gray-900 text-sm font-normal leading-snug ">这位日本VTuber在直播中与观众分享了她的一天经历,包括心情变化和外出活动。她提到因为遇到蟑螂而…</h5> aka getByRole('heading', { name: '这位日本VTuber' }) Call log: - waiting for locator('h5.leading-snug') 203 | await summarizer.waitForTimeout(15000) 204 | await expect(summarizer.getByText('错误')).toBeHidden({ timeout: 5000 }) > 205 | const res = await summarizer.locator('h5.leading-snug').textContent() | ^ 206 | logger.debug('AI Summary:', res) 207 | 208 | const maybe = expect.configure({ soft: true }) at /home/runner/work/bilibili-vup-stream-enhancer/bilibili-vup-stream-enhancer/tests/features/jimaku.spec.ts:205:61
logger.debug('AI Summary:', res)

@@ -211,7 +212,7 @@ test('测试同传字幕AI总结', { tag: "@scoped" }, async ({ room, content: p
maybe(res).toContain('麦当劳')
maybe(res).toContain('漫展')
maybe(res).toContain('蟑螂')

})


0 comments on commit 28815ab

Please sign in to comment.