test: update Playwright test timeouts (#5241)

- Rename isGitHubAction to isCI for broader CI detection
- Adjust timeout logic to use CI or Windows conditions
- Reduce expect timeout from 40s/20s to 5s/2s for faster feedback
- Decrease streaming chunk delay from 50ms to 20ms in server mock
This commit is contained in:
Bee authored and GitHub committed 2025-07-29 15:27:46 -07:00
1 parent c3a97c3eda
commit d653f1cc27
2 files changed
+5 -7

No files matched your search

+1 -1
View File
@@ -332,7 +332,7 @@ export class ClineApiServerMock {
}
res.write(`data: ${JSON.stringify(chunk)}\n\n`)
chunkIndex++
setTimeout(sendChunk, 50)
setTimeout(sendChunk, 20)
} else {
const finalChunk = {
id: generationId,