rework some of some, add query to smoke (#10591)

This commit is contained in:
Anthony Dresser
2020-06-05 17:25:24 -07:00
committed by GitHub
parent cf0f3b0426
commit 72b2d9ef72
4 changed files with 23 additions and 53 deletions

View File

@@ -1,18 +0,0 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the Source EULA. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import { Application, getStandaloneServer } from '../../../../../automation';
export function setup() {
describe('profiler test suite', () => {
it('Launch profiler test', async function () {
const app = this.app as Application;
await app.workbench.profiler.launchProfiler();
await app.workbench.connectionDialog.waitForConnectionDialog();
await app.workbench.connectionDialog.connect(await getStandaloneServer());
await app.workbench.profiler.waitForNewSessionDialogAndStart();
});
});
}

View File

@@ -8,15 +8,16 @@ import { Application } from '../../../../../automation';
export function setup() {
describe('Query Editor', () => {
it('can open and connect file', async function () {
it('can open, connect and execute file', async function () {
const app = this.app as Application;
await app.workbench.quickaccess.openFile('test.sql');
await app.workbench.queryEditor.commandBar.clickButton(3);
await app.workbench.connectionDialog.waitForConnectionDialog();
await app.code.waitForSetValue('.modal .modal-body select[aria-label="Connection type"]', 'Sqlite');
await app.code.waitForSetValue('.modal .modal-body input[aria-label="File"]', 'chinook.db');
await app.code.waitAndClick('.modal .modal-footer a[aria-label="Connect"]');
await app.workbench.queryEditor.commandBar.waitForButton(3, 'Disconnect');
await app.workbench.connectionDialog.setProvider('Sqlite');
await app.workbench.connectionDialog.setTarget('File', 'chinook.db');
await app.workbench.connectionDialog.connect();
await app.workbench.queryEditor.commandBar.clickButton(1);
await app.code.waitForElement('.query-editor-view .monaco-table');
});
});
}