Add Markdown Toolbar functionality to notebook smoke tests. (#15868)

This commit is contained in:
Cory Rivera
2021-06-22 16:38:04 -07:00
committed by GitHub
parent 00361e52a2
commit 6c6a0506b2
2 changed files with 75 additions and 17 deletions

View File

@@ -73,11 +73,13 @@ export function setup() {
await app.workbench.sqlNotebook.doubleClickTextCell();
await app.workbench.sqlNotebook.waitForDoubleClickToEditGone();
await app.workbench.sqlNotebook.changeTextCellView('Split View');
await app.workbench.sqlNotebook.textCellToolbar.changeTextCellView('Split View');
const sampleText: string = 'Test text cells';
await app.workbench.sqlNotebook.waitForTypeInEditor(sampleText);
await app.workbench.sqlNotebook.selectAllTextInEditor();
await app.workbench.sqlNotebook.textCellToolbar.boldSelectedText();
await app.code.dispatchKeybinding('escape');
await app.workbench.sqlNotebook.waitForTextCellPreviewContent(sampleText, 'p');
await app.workbench.sqlNotebook.waitForTextCellPreviewContent(sampleText, 'p', 'strong');
await app.workbench.quickaccess.runCommand('workbench.action.revertAndCloseActiveEditor');
});