diff --git a/python/jupytercad_core/src/stlplugin/model.ts b/python/jupytercad_core/src/stlplugin/model.ts index 9b1c9322..6f309ae2 100644 --- a/python/jupytercad_core/src/stlplugin/model.ts +++ b/python/jupytercad_core/src/stlplugin/model.ts @@ -56,12 +56,14 @@ export class JupyterCadStlDoc extends JupyterCadDoc { editable = false; private _sourceObserver = (events: Y.YEvent[]): void => { + console.log('STL SOURCE CHANGED!!!', events); const changes: Array<{ name: string; key: keyof IJCadObject; newValue: IJCadObject; }> = []; events.forEach(event => { + console.log('STL SOURCE CHANGED', event.target.toJSON()); event.keys.forEach((change, key) => { changes.push({ name: 'Stl File', diff --git a/ui-tests/tests/sketcher.spec.ts b/ui-tests/tests/sketcher.spec.ts index 877a5558..d0783ffd 100644 --- a/ui-tests/tests/sketcher.spec.ts +++ b/ui-tests/tests/sketcher.spec.ts @@ -8,7 +8,7 @@ test.describe('Sketcher test', () => { test.beforeEach(async ({ page, request }) => { page.setViewportSize({ width: 1920, height: 1080 }); page.on('console', message => { - console.log('ERROR IN THE PAGE', message.text()); + console.log('CONSOLE MSG', message.text()); if (message.type() === 'error') { errors += 1; } diff --git a/ui-tests/tests/tree.spec.ts b/ui-tests/tests/tree.spec.ts index 74097957..e847f5b4 100644 --- a/ui-tests/tests/tree.spec.ts +++ b/ui-tests/tests/tree.spec.ts @@ -8,7 +8,7 @@ test.describe('Tree UI test', () => { test.beforeEach(async ({ page, request }) => { page.setViewportSize({ width: 1920, height: 1080 }); page.on('console', message => { - console.log('ERROR IN THE PAGE', message.text()); + console.log('CONSOLE MSG', message.text()); if (message.type() === 'error') { errors += 1; } diff --git a/ui-tests/tests/ui.spec.ts b/ui-tests/tests/ui.spec.ts index 675e8661..82c44ae9 100644 --- a/ui-tests/tests/ui.spec.ts +++ b/ui-tests/tests/ui.spec.ts @@ -14,7 +14,7 @@ test.describe('UI Test', () => { const logs: string[] = []; page.on('console', message => { - console.log('ERROR IN THE PAGE', message.text()); + console.log('CONSOLE MSG', message.text()); logs.push(message.text()); });