diff --git a/ui-tests/test/execute.test.ts b/ui-tests/test/execute.test.ts index 704b4d0..03567f8 100644 --- a/ui-tests/test/execute.test.ts +++ b/ui-tests/test/execute.test.ts @@ -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'); + }); });