Skip to content

Commit

Permalink
fixup! added test cases for capture recorder
Browse files Browse the repository at this point in the history
  • Loading branch information
eric2788 committed Apr 10, 2024
1 parent 1e2c4f8 commit 2549e37
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tests/features/recorder.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -324,11 +324,9 @@ test('測試錄製時長', { tag: "@scoped" }, async ({ content, page }) => {
await timer.waitFor({ state: 'visible' })
logger.info('正在錄製...')
//await page.waitForTimeout(360000)
if (await page.getByText('已超过15秒没再接收到数据流').isVisible({
await expect(page.getByText('已超过15秒没再接收到数据流')).toBeHidden({
timeout: 360000
})) {
throw new Error('已超过15秒没再接收到数据流')
}
})

// timer should be fixed on 5 mins
await expect.poll(async () => {
Expand Down

0 comments on commit 2549e37

Please sign in to comment.