Re-enable notebook text cell smoke test (#15720)

* re-enable text cell test

* close notebook after text cell test
This commit is contained in:
Lucy Zhang
2021-06-16 09:20:21 -04:00
committed by GitHub
parent 3315214435
commit 4c039f7a88
3 changed files with 10 additions and 4 deletions

View File

@@ -15,7 +15,6 @@ export class Notebook {
public readonly toolbar: NotebookToolbar;
public readonly view: NotebookView;
private newNotebookCount: number = 0;
constructor(private code: Code, private quickAccess: QuickAccess, private quickInput: QuickInput, private editors: Editors) {
this.toolbar = new NotebookToolbar(code);
@@ -32,9 +31,8 @@ export class Notebook {
async newUntitledNotebook(): Promise<void> {
await this.code.dispatchKeybinding(winOrCtrl + '+alt+n');
await this.editors.waitForActiveTab(`Notebook-${this.newNotebookCount}`);
await this.editors.waitForActiveTab(`Notebook-0`);
await this.code.waitForElement('.notebookEditor');
this.newNotebookCount++;
}
// Notebook Toolbar Actions