Fix on click edit mode states (#18321)

* fix click code cell

* modified editmode when updating active cell
This commit is contained in:
Barbara Valdez
2022-02-16 15:52:05 -08:00
committed by GitHub
parent 678f2e3878
commit 87d5da00bf
7 changed files with 47 additions and 40 deletions

View File

@@ -18,7 +18,8 @@ export function setup(opts: minimist.ParsedArgs) {
await app.workbench.sqlNotebook.addCellFromPlaceholder('Markdown');
await app.workbench.sqlNotebook.waitForPlaceholderGone();
await app.code.dispatchKeybinding('escape');
await app.code.dispatchKeybinding('escape'); // first escape sets the cell in edit mode
await app.code.dispatchKeybinding('escape'); // second escape unselects cell completely
await app.workbench.sqlNotebook.waitForDoubleClickToEdit();
await app.workbench.sqlNotebook.doubleClickTextCell();
await app.workbench.sqlNotebook.waitForDoubleClickToEditGone();