Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
martinRenou committed Oct 23, 2024
1 parent d230701 commit 06167bc
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions python/jupytercad_core/src/stlplugin/model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,14 @@ export class JupyterCadStlDoc extends JupyterCadDoc {
editable = false;

private _sourceObserver = (events: Y.YEvent<any>[]): 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',
Expand Down
2 changes: 1 addition & 1 deletion ui-tests/tests/sketcher.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion ui-tests/tests/tree.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion ui-tests/tests/ui.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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());
});

Expand Down

0 comments on commit 06167bc

Please sign in to comment.