Skip to content

Commit

Permalink
Do not wait for open
Browse files Browse the repository at this point in the history
  • Loading branch information
martinRenou committed Dec 5, 2024
1 parent 2e6cc47 commit 4e2c796
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions ui-tests/tests/ui.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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' });

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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' });

Expand Down Expand Up @@ -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' });

Expand Down

0 comments on commit 4e2c796

Please sign in to comment.