Skip to content

Commit

Permalink
Bump jupyter-collaboration v3 (#429)
Browse files Browse the repository at this point in the history
* Bump jupyter-collaboration v3

* Bump galata

* Bump version

* Fix tests

---------

Co-authored-by: Duc Trung Le <[email protected]>
  • Loading branch information
davidbrochart and trungleduc committed Sep 19, 2024
1 parent 5d55ebf commit e5acfcf
Show file tree
Hide file tree
Showing 9 changed files with 1,070 additions and 792 deletions.
417 changes: 209 additions & 208 deletions packages/base/src/toolbar/widget.tsx

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion python/jupytercad_app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"dependencies": {
"@codemirror/state": "^6.2.0",
"@codemirror/view": "^6.9.3",
"@jupyter/collaboration": "^2.0.0",
"@jupyter/collaboration": "^3.0.0-beta.6",
"@jupyter/docprovider": "^2.0.0",
"@jupyter/ydoc": "^0.3.4 || ^1.0.2",
"@jupytercad/base": "^3.0.0-alpha.1",
Expand Down
2 changes: 1 addition & 1 deletion python/jupytercad_core/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ classifiers = [
dependencies = [
"jupyter_server>=2.0.6,<3",
"jupyter_ydoc>=2,<3",
"jupyter-collaboration>=2.1.0,<3",
"jupyter-collaboration>=3.0.0b6,<4",
]
dynamic = ["version", "description", "authors", "urls", "keywords"]
license = {file = "LICENSE"}
Expand Down
2 changes: 1 addition & 1 deletion ui-tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"test:debug": "PWDEBUG=1 npx playwright test --workers 1"
},
"devDependencies": {
"@jupyterlab/galata": "^5.1.0",
"@jupyterlab/galata": "^5.2.5",
"@playwright/test": "^1.32.0",
"@types/klaw-sync": "^6.0.1"
},
Expand Down
9 changes: 2 additions & 7 deletions ui-tests/tests/sketcher.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,7 @@ test.describe('Sketcher test', () => {
await page.goto();

const fileName = 'test.jcad';
const fullPath = `examples/${fileName}`;
await page.notebook.openByPath(fullPath);
await page.notebook.activate(fullPath);
await page.getByTitle('Create a new JCAD Editor').first().click();
await page.locator('div.jpcad-Spinner').waitFor({ state: 'hidden' });

await page.waitForTimeout(1000);
Expand All @@ -56,11 +54,8 @@ test.describe('Sketcher test', () => {

test(`Should draw a circle`, async ({ page }) => {
await page.goto();

const fileName = 'test.jcad';
const fullPath = `examples/${fileName}`;
await page.notebook.openByPath(fullPath);
await page.notebook.activate(fullPath);
await page.getByTitle('Create a new JCAD Editor').first().click();
await page.locator('div.jpcad-Spinner').waitFor({ state: 'hidden' });

await page.waitForTimeout(1000);
Expand Down
8 changes: 4 additions & 4 deletions ui-tests/tests/ui.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,7 @@ test.describe('UI Test', () => {
await page.goto();

const fileName = 'test.jcad';
const fullPath = `examples/${fileName}`;
await page.notebook.openByPath(fullPath);
await page.notebook.activate(fullPath);
await page.getByTitle('Create a new JCAD Editor').first().click();
await page.locator('div.jpcad-Spinner').waitFor({ state: 'hidden' });

await page.waitForTimeout(1000);
Expand All @@ -118,7 +116,9 @@ test.describe('UI Test', () => {
}

await page.getByTitle('New Box').click();
page.locator('input[id^="id-jp-schemaform"][label="Name"]').fill('Foo');
await page
.locator('input[id^="id-jp-schemaform"][label="Name"]')
.fill('Foo');
await page
.locator('div.jp-Dialog-buttonLabel', {
hasText: 'Submit'
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 e5acfcf

Please sign in to comment.