take screenshot when wizard page not loaded (#16867)

This commit is contained in:
Lucy Zhang
2021-08-24 07:14:51 -07:00
committed by GitHub
parent 76975b60d2
commit e2f9580163
2 changed files with 30 additions and 16 deletions

View File

@@ -64,7 +64,15 @@ export function setup() {
await app.workbench.sqlNotebook.notebookToolbar.changeKernel('Python 3');
await app.workbench.configurePythonDialog.waitForConfigurePythonDialog();
await app.workbench.configurePythonDialog.installPython();
try {
await app.workbench.configurePythonDialog.waitForPageOneLoaded();
} catch (e) {
await app.captureScreenshot('Configure Python Dialog page one not loaded');
throw e;
}
await app.workbench.configurePythonDialog.next();
await app.workbench.configurePythonDialog.waitForPageTwoLoaded();
await app.workbench.configurePythonDialog.install();
await app.workbench.sqlNotebook.notebookToolbar.waitForKernel('Python 3');
await app.workbench.sqlNotebook.runActiveCell();