Skip to content

Commit 8e0a21f

Browse files
authored
enable a few notebook smoke tests (#276793)
* more strenuous add/delete cell check * unskip some tests
1 parent 6957717 commit 8e0a21f

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

test/smoke/src/areas/notebook/notebook.test.ts

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export function setup(logger: Logger) {
4444
});
4545
});
4646

47-
it.skip('inserts/edits code cell', async function () {
47+
it('inserts/edits code cell', async function () {
4848
const app = this.app as Application;
4949
await app.workbench.notebook.openNotebook();
5050
await app.workbench.notebook.focusNextCell();
@@ -64,18 +64,21 @@ export function setup(logger: Logger) {
6464
await app.workbench.notebook.waitForMarkdownContents('', '');
6565
});
6666

67-
it.skip('moves focus as it inserts/deletes a cell', async function () {
67+
it('moves focus as it inserts/deletes a cell', async function () {
6868
const app = this.app as Application;
6969
await app.workbench.notebook.openNotebook();
70+
await app.workbench.notebook.focusFirstCell();
71+
await app.workbench.notebook.insertNotebookCell('code');
72+
await app.workbench.notebook.waitForActiveCellEditorContents('');
73+
await app.workbench.notebook.waitForTypeInEditor('# added cell');
74+
await app.workbench.notebook.focusFirstCell();
7075
await app.workbench.notebook.insertNotebookCell('code');
7176
await app.workbench.notebook.waitForActiveCellEditorContents('');
72-
await app.workbench.notebook.stopEditingCell();
7377
await app.workbench.notebook.deleteActiveCell();
74-
await app.workbench.notebook.editCell();
75-
await app.workbench.notebook.waitForTypeInEditor('## hello2!');
78+
await app.workbench.notebook.waitForActiveCellEditorContents('# added cell');
7679
});
7780

78-
it.skip('moves focus in and out of output', async function () { // TODO@rebornix https://github.com/microsoft/vscode/issues/139270
81+
it('moves focus in and out of output', async function () { // TODO@rebornix https://github.com/microsoft/vscode/issues/139270
7982
const app = this.app as Application;
8083
await app.workbench.notebook.openNotebook();
8184
// first cell is a code cell that already has output

0 commit comments

Comments
 (0)