Skip to content

Commit

Permalink
UI-tests Press ok button upon removal
Browse files Browse the repository at this point in the history
  • Loading branch information
martinRenou committed Jul 2, 2024
1 parent 530b4d6 commit 5f6fee2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ui-tests/tests/ui.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,10 @@ test.describe('UI Test', () => {
.nth(1)
.click();

if (await page.getByRole('button', { name: 'Ok' }).isVisible()) {
await page.getByRole('button', { name: 'Ok' }).click();
}

await page
.getByRole('tablist', { name: 'main sidebar' })
.getByRole('tab', { name: 'JupyterCad Control Panel' })
Expand Down

0 comments on commit 5f6fee2

Please sign in to comment.