Merge pull request #3263 from cdr/jsjoeio/fix-e2e-test
fix(testing): reduce flakiness of terminal.test.ts and use 1 worker for e2e tests
This commit is contained in:
@ -52,6 +52,7 @@ const config: Config = {
|
||||
testDir: path.join(__dirname, "e2e"), // Search for tests in this directory.
|
||||
timeout: 60000, // Each test is given 60 seconds.
|
||||
retries: 3, // Retry failing tests 2 times
|
||||
workers: 1,
|
||||
}
|
||||
|
||||
if (process.env.CI) {
|
||||
|
@ -50,7 +50,7 @@ test.describe("Integrated Terminal", () => {
|
||||
await codeServer.focusTerminal()
|
||||
|
||||
await page.waitForLoadState("load")
|
||||
await page.keyboard.type(`echo '${testString}' > '${tmpFile}'`)
|
||||
await page.keyboard.type(`echo ${testString} > ${tmpFile}`)
|
||||
await page.keyboard.press("Enter")
|
||||
// It may take a second to process
|
||||
await page.waitForTimeout(1000)
|
||||
|
Reference in New Issue
Block a user