mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-06 01:25:38 -05:00
Add simple notebook smoke test (#12898)
* add simple notebook smoke test * add id for notebook dropdown elements
This commit is contained in:
@@ -7,9 +7,21 @@ import { Application } from '../../../../../automation';
|
||||
|
||||
export function setup() {
|
||||
describe('Notebook', () => {
|
||||
it('open ', async function () {
|
||||
|
||||
|
||||
it('can open new notebook, configure Python, and execute one cell', async function () {
|
||||
const app = this.app as Application;
|
||||
await app.workbench.sqlNotebbok.openFile('hello.ipynb');
|
||||
await app.workbench.sqlNotebook.newUntitledNotebook();
|
||||
await app.workbench.sqlNotebook.addCell('code');
|
||||
await app.workbench.sqlNotebook.waitForTypeInEditor('print("Hello world!")');
|
||||
|
||||
await app.workbench.sqlNotebook.changeKernel('Python 3');
|
||||
await app.workbench.configurePythonDialog.waitForConfigurePythonDialog();
|
||||
await app.workbench.configurePythonDialog.installPython();
|
||||
|
||||
await app.workbench.sqlNotebook.runActiveCell();
|
||||
await app.workbench.sqlNotebook.waitForResults();
|
||||
await app.workbench.quickaccess.runCommand('workbench.action.closeActiveEditor');
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user