Fix manage python packages smoke test (#19232)

* make sure cell is ran

* make sure dialog is gone before runing cell again

* ensure package is done installing

* show task panel

* remove comment

* pr comments

* pr comments

* add 7.0.0 package version
This commit is contained in:
Lucy Zhang
2022-05-04 06:19:51 -07:00
committed by GitHub
parent 7de41a98b4
commit 2547754d0f
4 changed files with 45 additions and 4 deletions

View File

@@ -81,8 +81,7 @@ export function setup(opts: minimist.ParsedArgs) {
await app.workbench.sqlNotebook.waitForActiveCellResults();
});
// Temporarily skipping this test while investigating failure in builds
it.skip('can add a new package from the Manage Packages wizard', async function () {
it('can add a new package from the Manage Packages wizard', async function () {
const app = this.app as Application;
await app.workbench.sqlNotebook.newUntitledNotebook();
await app.workbench.sqlNotebook.notebookToolbar.waitForKernel('SQL');
@@ -96,7 +95,9 @@ export function setup(opts: minimist.ParsedArgs) {
await app.workbench.sqlNotebook.notebookToolbar.managePackages();
await app.workbench.managePackagesDialog.waitForManagePackagesDialog();
await app.workbench.managePackagesDialog.addNewPackage('pyarrow');
await app.workbench.managePackagesDialog.addNewPackage('pyarrow', '7.0.0');
await app.workbench.taskPanel.showTaskPanel();
await app.workbench.taskPanel.waitForTaskComplete('Installing pyarrow 7.0.0 succeeded');
// There should be no error output when running the cell after pyarrow has been installed
await app.workbench.sqlNotebook.runActiveCell();