mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-30 09:35:39 -05:00
basic text cell functionality smoke test (#15195)
This commit is contained in:
@@ -59,6 +59,24 @@ export function setup() {
|
||||
|
||||
await app.workbench.quickaccess.runCommand('workbench.action.closeActiveEditor');
|
||||
});
|
||||
|
||||
it('can perform basic text cell functionality', async function () {
|
||||
const app = this.app as Application;
|
||||
await app.workbench.sqlNotebook.newUntitledNotebook();
|
||||
await app.workbench.sqlNotebook.addCellFromPlaceholder('Markdown');
|
||||
await app.workbench.sqlNotebook.waitForPlaceholderGone();
|
||||
|
||||
await app.code.dispatchKeybinding('escape');
|
||||
await app.workbench.sqlNotebook.waitForDoubleClickToEdit();
|
||||
await app.workbench.sqlNotebook.doubleClickTextCell();
|
||||
await app.workbench.sqlNotebook.waitForDoubleClickToEditGone();
|
||||
|
||||
await app.workbench.sqlNotebook.changeTextCellView('Split View');
|
||||
const sampleText: string = 'Test text cells';
|
||||
await app.workbench.sqlNotebook.waitForTypeInEditor(sampleText);
|
||||
await app.code.dispatchKeybinding('escape');
|
||||
await app.workbench.sqlNotebook.waitForTextCellPreviewContent(sampleText, 'p');
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user