From 4e2c79602ac768e6c5eb4bd4ea1c3ebf7e674e7a Mon Sep 17 00:00:00 2001 From: martinRenou Date: Thu, 5 Dec 2024 16:32:19 +0100 Subject: [PATCH] Do not wait for open --- ui-tests/tests/ui.spec.ts | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/ui-tests/tests/ui.spec.ts b/ui-tests/tests/ui.spec.ts index d015758..da56948 100644 --- a/ui-tests/tests/ui.spec.ts +++ b/ui-tests/tests/ui.spec.ts @@ -64,7 +64,8 @@ test.describe('UI Test', () => { }) => { await page.goto(); const fullPath = `examples/${file}`; - await page.notebook.openByPath(fullPath); + page.notebook.openByPath(fullPath); + await page.waitForTimeout(500); await page.notebook.activate(fullPath); await page.locator('div.jpcad-Spinner').waitFor({ state: 'hidden' }); await page.waitForTimeout(1000); @@ -115,7 +116,8 @@ test.describe('UI Test', () => { const fileName = 'example2.FCStd'; const fullPath = `examples/${fileName}`; - await page.notebook.openByPath(fullPath); + page.notebook.openByPath(fullPath); + await page.waitForTimeout(500); await page.notebook.activate(fullPath); await page.locator('div.jpcad-Spinner').waitFor({ state: 'hidden' }); @@ -149,7 +151,8 @@ test.describe('UI Test', () => { const fileName = 'example3.FCStd'; const fullPath = `examples/${fileName}`; - await page.notebook.openByPath(fullPath); + page.notebook.openByPath(fullPath); + await page.waitForTimeout(500); await page.notebook.activate(fullPath); await page.locator('div.jpcad-Spinner').waitFor({ state: 'hidden' }); await page @@ -185,7 +188,8 @@ test.describe('UI Test', () => { const fileName = 'example4.FCStd'; const fullPath = `examples/${fileName}`; - await page.notebook.openByPath(fullPath); + page.notebook.openByPath(fullPath); + await page.waitForTimeout(500); await page.notebook.activate(fullPath); await page.locator('div.jpcad-Spinner').waitFor({ state: 'hidden' }); @@ -223,7 +227,8 @@ test.describe('UI Test', () => { const fileName = 'example3.FCStd'; const fullPath = `examples/${fileName}`; - await page.notebook.openByPath(fullPath); + page.notebook.openByPath(fullPath); + await page.waitForTimeout(500); await page.notebook.activate(fullPath); await page.locator('div.jpcad-Spinner').waitFor({ state: 'hidden' });