Increase timeout and vite version (#11492)

1. The electron test hit timeouts from time to time, probably because of slow response from the engine: increased timeout.
2. Unify vite version across packages.
This commit is contained in:
Adam Obuchowicz 2024-11-08 09:43:02 +01:00 committed by GitHub
parent 014a2a7e6b
commit 86c59469d0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 10260 additions and 5352 deletions

View File

@ -50,7 +50,7 @@
"fast-glob": "^3.2.12",
"portfinder": "^1.0.32",
"tsx": "^4.7.1",
"vite": "^5.3.5",
"vite": "^5.4.10",
"playwright": "^1.45.0"
},
"//": [

View File

@ -5,7 +5,7 @@ export default defineConfig({
testDir: './tests',
forbidOnly: !!process.env.CI,
workers: 1,
timeout: 60000,
timeout: 120000,
reportSlowTests: { max: 5, threshold: 60000 },
globalSetup: './tests/setup.ts',
expect: {

View File

@ -10,8 +10,8 @@ electronTest('Create new project', async page => {
await expect(page.locator('.GraphNode')).toHaveCount(1, { timeout: 60000 })
// We see the node type and visualization, so the engine is running the program
await expect(page.locator('.node-type')).toHaveText('Table')
await expect(page.locator('.TableVisualization')).toBeVisible()
await expect(page.locator('.node-type')).toHaveText('Table', { timeout: 30000 })
await expect(page.locator('.TableVisualization')).toBeVisible({ timeout: 30000 })
await expect(page.locator('.TableVisualization')).toContainText('Welcome To Enso!')
// We can add new node and see suggestions.

File diff suppressed because it is too large Load Diff