mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-20 00:28:52 +01:00
make notebook integration test more stable, fixes https://github.com/microsoft/vscode/issues/118889
This commit is contained in:
@@ -1132,12 +1132,8 @@ suite('Notebook API tests', function () {
|
||||
assert.strictEqual(document.cells[0].metadata.executionOrder, executionOrder);
|
||||
assert.strictEqual(document.cells[0].metadata.runState, vscode.NotebookCellRunState.Success);
|
||||
});
|
||||
test('Opening a notebook should fire activeNotebook event changed only once', async function () {
|
||||
const openedEditor = asPromise(vscode.window.onDidChangeActiveNotebookEditor);
|
||||
const resource = await createRandomFile('', undefined, '.vsctestnb');
|
||||
await vscode.notebook.openNotebookDocument(resource);
|
||||
assert.ok(await openedEditor);
|
||||
});
|
||||
|
||||
|
||||
|
||||
// });
|
||||
|
||||
|
||||
Reference in New Issue
Block a user