Skip to content
This repository has been archived by the owner on Feb 14, 2024. It is now read-only.

Test importing packages #187

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions ui-tests/test/execute.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,13 @@ test.describe('Code execution', () => {
expect(output).toBeTruthy();
expect(output![0]).toBe('4');
});

test('Import critical packages', async ({ page }) => {
await page.notebook.createNew();
await page.notebook.setCell(0, 'code', 'import scipy\nscipy.__version__');
await page.notebook.run();
const output = await page.notebook.getCellTextOutput(0);

expect(output).not.toContain('ModuleNotFoundError');
});
});
Loading