mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-31 09:35:39 -05:00
rewrite some automation; add notebook tests (#10853)
This commit is contained in:
@@ -21,15 +21,15 @@ export class QueryEditor {
|
||||
|
||||
export class CommandBar {
|
||||
|
||||
private static readonly COMMAND_BAR_BUTTON = '.query-editor .carbon-taskbar ul>:nth-child(${INDEX})';
|
||||
private static readonly COMMAND_BAR_BUTTON = '.query-editor .carbon-taskbar li .${CLASS}';
|
||||
|
||||
constructor(private code: Code) { }
|
||||
|
||||
public async clickButton(index: number): Promise<void> {
|
||||
await this.code.waitAndClick(CommandBar.COMMAND_BAR_BUTTON.replace('${INDEX}', '' + index));
|
||||
public async run(): Promise<void> {
|
||||
await this.code.waitAndClick(CommandBar.COMMAND_BAR_BUTTON.replace('${CLASS}', 'start'));
|
||||
}
|
||||
|
||||
public async waitForButton(index: number, label: string): Promise<void> {
|
||||
await this.code.waitForTextContent(CommandBar.COMMAND_BAR_BUTTON.replace('${INDEX}', '' + index), label);
|
||||
public async connect(): Promise<void> {
|
||||
await this.code.waitAndClick(CommandBar.COMMAND_BAR_BUTTON.replace('${CLASS}', 'connect'));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user