Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
martinRenou committed Dec 5, 2024
1 parent 533f38e commit 2e6cc47
Showing 1 changed file with 6 additions and 24 deletions.
30 changes: 6 additions & 24 deletions ui-tests/tests/ui.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,14 +130,8 @@ test.describe('UI Test', () => {
});
await accept.click();

await page
.getByRole('tablist', { name: 'main sidebar' })
.getByRole('tab', { name: 'JupyterCad Control Panel' })
.click();
await page
.getByRole('tablist', { name: 'alternate sidebar' })
.getByRole('tab', { name: 'JupyterCad Control Panel' })
.click();
await page.sidebar.close('left');
await page.sidebar.close('right');

await page.waitForTimeout(1000);
expect(errors).toBe(0);
Expand Down Expand Up @@ -172,14 +166,8 @@ test.describe('UI Test', () => {
await page.getByRole('button', { name: 'Ok' }).click();
}

await page
.getByRole('tablist', { name: 'main sidebar' })
.getByRole('tab', { name: 'JupyterCad Control Panel' })
.click();
await page
.getByRole('tablist', { name: 'alternate sidebar' })
.getByRole('tab', { name: 'JupyterCad Control Panel' })
.click();
await page.sidebar.close('left');
await page.sidebar.close('right');

await page.waitForTimeout(1000);
expect(errors).toBe(0);
Expand Down Expand Up @@ -216,14 +204,8 @@ test.describe('UI Test', () => {
.click();

// Hide side bars for the screenshot
await page
.getByRole('tablist', { name: 'main sidebar' })
.getByRole('tab', { name: 'JupyterCad Control Panel' })
.click();
await page
.getByRole('tablist', { name: 'alternate sidebar' })
.getByRole('tab', { name: 'JupyterCad Control Panel' })
.click();
await page.sidebar.close('left');
await page.sidebar.close('right');

await page.waitForTimeout(1000);
expect(errors).toBe(0);
Expand Down

0 comments on commit 2e6cc47

Please sign in to comment.