Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Feb 21, 2025
1 parent 0b5e7a9 commit 5211710
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions ui-tests/tests/lite.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ test.describe('UI Test', () => {
await page.waitForSelector('.jp-Notebook', { state: 'visible' });

await page.keyboard.type(
"from jupytercad import CadDocument\n" +
"doc = CadDocument()\n" +
"doc.add_cone().add_sphere(radius=0.8).cut(color='#ff0000')"
'from jupytercad import CadDocument\n' +
'doc = CadDocument()\n' +
"doc.add_cone().add_sphere(radius=0.8).cut(color='#ff0000')"
);

await page.keyboard.press('Control+Enter');
Expand All @@ -79,10 +79,13 @@ test.describe('UI Test', () => {
const outputErrors = await page.$$('.jp-OutputArea-error');
expect(outputErrors.length).toBe(0);

const jcadWidget = await page.waitForSelector('.jupytercad-notebook-widget', {
state: 'visible',
timeout: 10000
});
const jcadWidget = await page.waitForSelector(
'.jupytercad-notebook-widget',
{
state: 'visible',
timeout: 10000
}
);

expect(await jcadWidget.screenshot()).toMatchSnapshot({
name: 'Render-notebook.png',
Expand Down

0 comments on commit 5211710

Please sign in to comment.