mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-04 01:25:38 -05:00
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:
29
test/automation/src/sql/taskPanel.ts
Normal file
29
test/automation/src/sql/taskPanel.ts
Normal file
@@ -0,0 +1,29 @@
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the Source EULA. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
import { Code } from '../code';
|
||||
import { QuickAccess } from '../quickaccess';
|
||||
|
||||
export class TaskPanel {
|
||||
|
||||
private static readonly taskPanelSelector = 'div.pane-body.task-history';
|
||||
|
||||
constructor(private code: Code, private quickAccess: QuickAccess) {
|
||||
}
|
||||
|
||||
async showTaskPanel(): Promise<void> {
|
||||
await this.quickAccess.runCommand('workbench.panel.tasks.view.focus');
|
||||
}
|
||||
|
||||
/**
|
||||
* Wait for the given task message in the task panel.
|
||||
* @param task The task completed message.
|
||||
* @param waitTime The amount of time to wait for the task to complete. By default, this is 1 minute.
|
||||
*/
|
||||
async waitForTaskComplete(task: string, waitTime: number = 600): Promise<void> {
|
||||
await this.code.waitForElement(`${TaskPanel.taskPanelSelector} div.label[title="${task}"]`, undefined, waitTime);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user