diff --git a/tests/features/recorder.spec.ts b/tests/features/recorder.spec.ts index 912f65c..3ce564d 100644 --- a/tests/features/recorder.spec.ts +++ b/tests/features/recorder.spec.ts @@ -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 () => {