Skip to content

Commit

Permalink
restore notebook state after test.
Browse files Browse the repository at this point in the history
  • Loading branch information
rebornix committed May 20, 2020
1 parent 858aff9 commit dfb4dbe
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions extensions/vscode-notebook-tests/src/notebook.test.ts
Expand Up @@ -347,6 +347,9 @@ suite('notebook workflow', () => {

const newActiveCell = vscode.notebook.activeNotebookEditor!.selection;
assert.deepEqual(activeCell, newActiveCell);
await vscode.commands.executeCommand('workbench.action.files.saveAll');
await vscode.commands.executeCommand('workbench.action.closeAllEditors');

// TODO@rebornix, there are still some events order issue.
// assert.equal(vscode.notebook.activeNotebookEditor!.document.cells.indexOf(newActiveCell!), 2);
});
Expand Down

0 comments on commit dfb4dbe

Please sign in to comment.