Archived
1
0

refactor: add timeout to terminal.test.ts

This commit is contained in:
Joe Previte
2021-04-27 11:30:22 -07:00
parent 8c727d96d6
commit 449c6da77c
2 changed files with 29 additions and 31 deletions

View File

@ -52,6 +52,8 @@ test.describe("Integrated Terminal", () => {
await page.waitForLoadState("load")
await page.keyboard.type(`echo '${testString}' > '${tmpFile}'`)
await page.keyboard.press("Enter")
// It may take a second to process
await page.waitForTimeout(1000)
const { stdout } = await output
expect(stdout).toMatch(testString)