mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-24 17:23:05 -05:00
Add smoke test for manage packages wizard (#19018)
* start manage packages smoke test * fix addpackage * remove wait for loading spinner * check cell output gone * check wizard tab is done initializing
This commit is contained in:
@@ -162,6 +162,11 @@ export class Notebook {
|
||||
|
||||
// Cell Output Actions
|
||||
|
||||
async waitForJupyterErrorOutput(): Promise<void> {
|
||||
const jupyterErrorOutput = `.notebook-cell.active .notebook-output mime-output[data-mime-type="application/vnd.jupyter.stderr"]`;
|
||||
await this.code.waitForElement(jupyterErrorOutput);
|
||||
}
|
||||
|
||||
async waitForActiveCellResults(): Promise<void> {
|
||||
const outputComponent = '.notebook-cell.active .notebook-output';
|
||||
await this.code.waitForElement(outputComponent);
|
||||
@@ -281,6 +286,7 @@ export class NotebookToolbar {
|
||||
private static readonly collapseCellsButtonSelector = `${NotebookToolbar.toolbarButtonSelector}.icon-collapse-cells`;
|
||||
private static readonly expandCellsButtonSelector = `${NotebookToolbar.toolbarButtonSelector}.icon-expand-cells`;
|
||||
private static readonly clearResultsButtonSelector = `${NotebookToolbar.toolbarButtonSelector}.icon-clear-results`;
|
||||
private static readonly managePackagesButtonSelector = `${NotebookToolbar.toolbarButtonSelector}[title="Manage Packages"]`;
|
||||
|
||||
constructor(private code: Code) { }
|
||||
|
||||
@@ -344,6 +350,10 @@ export class NotebookToolbar {
|
||||
async clearResults(): Promise<void> {
|
||||
await this.code.waitAndClick(NotebookToolbar.clearResultsButtonSelector);
|
||||
}
|
||||
|
||||
async managePackages(): Promise<void> {
|
||||
await this.code.waitAndClick(NotebookToolbar.managePackagesButtonSelector);
|
||||
}
|
||||
}
|
||||
|
||||
export class NotebookTreeView {
|
||||
|
||||
Reference in New Issue
Block a user