Add simple smoke test for collapse/expand cell (#15879)

* simple smoke test for collapse / expand cells
This commit is contained in:
Vasu Bhog
2021-06-25 18:08:35 -07:00
committed by GitHub
parent edc319a90c
commit c3e0958f2d
2 changed files with 68 additions and 0 deletions

View File

@@ -94,6 +94,22 @@ export function setup() {
const app = this.app as Application;
await app.workbench.quickaccess.runCommand('workbench.action.revertAndCloseActiveEditor');
});
describe('Notebook Toolbar Actions', async () => {
it('Collapse and Expand Cell', async function () {
const app = this.app as Application;
await app.workbench.sqlNotebook.openFile('collapsed.ipynb');
await app.workbench.sqlNotebook.waitForCollapseIconInCells();
await app.workbench.sqlNotebook.notebookToolbar.waitForCollapseCellsNotebookIcon();
await app.workbench.sqlNotebook.notebookToolbar.collapseCells();
await app.workbench.sqlNotebook.waitForExpandIconInCells();
await app.workbench.sqlNotebook.notebookToolbar.waitForExpandCellsNotebookIcon();
await app.workbench.sqlNotebook.notebookToolbar.expandCells();
await app.workbench.sqlNotebook.waitForCollapseIconInCells();
await app.workbench.sqlNotebook.notebookToolbar.waitForCollapseCellsNotebookIcon();
});
});
});
}