Skip to content

Commit

Permalink
Update JupyterCAD (#10)
Browse files Browse the repository at this point in the history
* Update jcad

* WAT

* Update

* debug ui test

* UI-tests Press ok button upon removal

* Update snapshot and yarn.lock

---------

Co-authored-by: Duc Trung Le <[email protected]>
  • Loading branch information
martinRenou and trungleduc authored Jul 2, 2024
1 parent 796837a commit c7b2060
Show file tree
Hide file tree
Showing 7 changed files with 972 additions and 588 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ jobs:
shell: bash -l {0}
run: |
set -eux
pip install "jupyterlab>=4.0.0,<5" "jupytercad>=2.0.0a1" jupytercad_freecad*.whl
pip install "jupyterlab>=4.0.0,<4.2.0" "jupytercad>=2.0.0a1" jupytercad_freecad*.whl
- name: Install dependencies
shell: bash -l {0}
Expand Down
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
"jupyterlab",
"jupyterlab-extension"
],
"homepage": "https://github.com/jupytercad/jupytercad-freecad",
"homepage": "https://github.com/jupytercad/JupyterCAD-FreeCAD",
"bugs": {
"url": "https://github.com/jupytercad/jupytercad-freecad/issues"
"url": "https://github.com/jupytercad/JupyterCAD-FreeCAD/issues"
},
"license": "BSD-3-Clause",
"author": "JupyterCad contributors",
Expand All @@ -22,7 +22,7 @@
"style": "style/index.css",
"repository": {
"type": "git",
"url": "https://github.com/jupytercad/jupytercad-freecad.git"
"url": "https://github.com/jupytercad/JupyterCAD-FreeCAD"
},
"scripts": {
"build": "jlpm build:lib && jlpm build:labextension:dev",
Expand Down Expand Up @@ -53,9 +53,9 @@
"dependencies": {
"@jupyter/collaboration": "^2.0.0",
"@jupyter/docprovider": "^2.0.0",
"@jupytercad/base": "^2.0.0-alpha.1",
"@jupytercad/jupytercad-core": "^2.0.0-alpha.1",
"@jupytercad/schema": "^2.0.0-alpha.1",
"@jupytercad/base": "^2.0.0",
"@jupytercad/jupytercad-core": "^2.0.0",
"@jupytercad/schema": "^2.0.0",
"@jupyterlab/application": "^4.0.0"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ classifiers = [
]
dependencies = [
"jupyter_ydoc>=2,<3",
"jupytercad_core>=2.0.0a1,<3",
"jupytercad_core>=2.0.0,<3",
]
dynamic = ["version", "description", "authors", "urls", "keywords"]

Expand Down
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit c7b2060

Please sign in to comment.