mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-02 01:25:39 -05:00
web smoke tests (#11280)
* distro * renable web smoke * add missing script * update node version * update node version everywhere * ensure playwright drivers are installed * fix screenshot capture * try this * rewrite connection dialog code * fix permissions * more wip * replace more $ with ^ * revert changes * refactor and revert more changes * add screen shot functionality to playwright * fix compile * fix profiler compile * don't run new files for web * continue on error for web * continue on error for web not normal * revert some changes
This commit is contained in:
@@ -7,19 +7,7 @@ import { Application } from '../../../../../automation';
|
||||
|
||||
export function setup() {
|
||||
describe('Query Editor', () => {
|
||||
|
||||
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.connect();
|
||||
await app.workbench.connectionDialog.waitForConnectionDialog();
|
||||
await app.workbench.connectionDialog.setProvider('Sqlite');
|
||||
await app.workbench.connectionDialog.setTarget('File', 'chinook.db');
|
||||
await app.workbench.connectionDialog.connect();
|
||||
await app.workbench.queryEditor.commandBar.run();
|
||||
await app.workbench.queryEditor.waitForResults();
|
||||
await app.workbench.quickaccess.runCommand('workbench.action.closeAllEditors');
|
||||
});
|
||||
setupWeb();
|
||||
|
||||
it('can new file, connect and execute', async function () {
|
||||
const app = this.app as Application;
|
||||
@@ -37,3 +25,18 @@ export function setup() {
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
export function setupWeb() {
|
||||
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.connect();
|
||||
await app.workbench.connectionDialog.waitForConnectionDialog();
|
||||
await app.workbench.connectionDialog.setProvider('Sqlite');
|
||||
await app.workbench.connectionDialog.setTarget('File', 'chinook.db');
|
||||
await app.workbench.connectionDialog.connect();
|
||||
await app.workbench.queryEditor.commandBar.run();
|
||||
await app.workbench.queryEditor.waitForResults();
|
||||
await app.workbench.quickaccess.runCommand('workbench.action.closeAllEditors');
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user