Files
azuredatastudio/test/automation/src/sql/queryEditors.ts
Anthony Dresser d849ed9357 Add more smoke tests and abstract more code (#10799)
* add more smoke tests and abstract more code

* fix missing imports
2020-06-10 12:12:35 -07:00

27 lines
798 B
TypeScript

/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the Source EULA. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import { Editors } from '../editors';
import { Code } from '../code';
export class QueryEditors {
constructor(
private readonly code: Code,
private readonly editors: Editors
) {
}
async newUntitledQuery(): Promise<void> {
if (process.platform === 'darwin') {
await this.code.dispatchKeybinding('cmd+n');
} else {
await this.code.dispatchKeybinding('ctrl+n');
}
await this.editors.waitForEditorFocus('SQLQuery_1');
}
}