diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8ab3fba..ad3046f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -94,7 +94,7 @@ jobs: micromamba-version: '1.5.5-0' environment-name: cad create-args: >- - python=3.10 + python=3.9 jupyterlab freecad=0.21.2 diff --git a/.github/workflows/update_galata_references.yaml b/.github/workflows/update_galata_references.yaml index 5e521a0..337238f 100644 --- a/.github/workflows/update_galata_references.yaml +++ b/.github/workflows/update_galata_references.yaml @@ -89,7 +89,7 @@ jobs: shell: bash -l {0} run: | whereis python - pip install "jupyterlab>=4.0.0,<5" "jupytercad>=3.0.0a6" jupytercad_freecad*.whl + pip install "jupytercad>=3.0.0" jupytercad_freecad*.whl - name: Install dependencies shell: bash -l {0} diff --git a/ui-tests/tests/ui.spec.ts b/ui-tests/tests/ui.spec.ts index 65920b5..ec961f1 100644 --- a/ui-tests/tests/ui.spec.ts +++ b/ui-tests/tests/ui.spec.ts @@ -67,15 +67,14 @@ test.describe('UI Test', () => { await page.notebook.openByPath(fullPath); await page.notebook.activate(fullPath); await page.locator('div.jpcad-Spinner').waitFor({ state: 'hidden' }); + await page.waitForTimeout(1000); + + 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' }) - .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); const main = await page.$('#jp-main-split-panel'); expect(errors).toBe(0);