Skip to content

Commit

Permalink
fixup! updated docs and fixed typo
Browse files Browse the repository at this point in the history
  • Loading branch information
eric2788 committed Apr 13, 2024
1 parent 1d6c6eb commit b85dd25
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/features/recorder.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,7 @@ test('測試熱鍵錄製', async ({ page, optionPageUrl, context, content }) =>
await page.waitForTimeout(30000)

const downloading = page.waitForEvent('download')
await content.locator('body').click() // gesture the iframe (if theme room)
await page.keyboard.press('Control+Shift+R')

const downloaded = await downloading
Expand Down Expand Up @@ -303,7 +304,8 @@ test('測試熱鍵截圖', async ({ page, content, context, optionPageUrl }) =>

await content.getByTestId('screenshot-button').waitFor({ state: 'visible' })
const download = page.waitForEvent('download')
await page.locator('body').press('Control+Shift+V')
await content.locator('body').click() // gesture the iframe (if theme room)
await page.keyboard.press('Control+Shift+V')
await expect(content.getByText('截图成功并已保存')).toBeVisible()

const downloaded = await download
Expand Down

0 comments on commit b85dd25

Please sign in to comment.