Skip to content

Commit dfb4dbe

Browse files
committed
restore notebook state after test.
1 parent 858aff9 commit dfb4dbe

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

extensions/vscode-notebook-tests/src/notebook.test.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,9 @@ suite('notebook workflow', () => {
347347

348348
const newActiveCell = vscode.notebook.activeNotebookEditor!.selection;
349349
assert.deepEqual(activeCell, newActiveCell);
350+
await vscode.commands.executeCommand('workbench.action.files.saveAll');
351+
await vscode.commands.executeCommand('workbench.action.closeAllEditors');
352+
350353
// TODO@rebornix, there are still some events order issue.
351354
// assert.equal(vscode.notebook.activeNotebookEditor!.document.cells.indexOf(newActiveCell!), 2);
352355
});

0 commit comments

Comments
 (0)