mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-21 09:35:38 -05:00
rework some of some, add query to smoke (#10591)
This commit is contained in:
@@ -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();
|
||||
});
|
||||
});
|
||||
}
|
||||
@@ -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');
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user