refactor: add timeout to terminal.test.ts
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user