Fix smoke tests not running (#18027)

* Bump sqlite for new electron version

* distro

* Fix tests

* distro
This commit is contained in:
Charles Gagnon
2022-01-07 16:58:53 -08:00
committed by GitHub
parent cd6b39ffee
commit 5d6ee47ee3
9 changed files with 54 additions and 24 deletions

View File

@@ -4,10 +4,12 @@
*--------------------------------------------------------------------------------------------*/
import { Application } from '../../../../../automation';
import * as minimist from 'minimist';
import { afterSuite, beforeSuite } from '../../../utils';
export function setup() {
export function setup(opts: minimist.ParsedArgs) {
describe('Query Editor', () => {
setupWeb();
setupCommonTests(opts);
it('can new file, connect and execute', async function () {
const app = this.app as Application;
@@ -27,7 +29,15 @@ export function setup() {
});
}
export function setupWeb() {
export function setupWeb(opts: minimist.ParsedArgs) {
describe('Query Editor', () => {
setupCommonTests(opts);
});
}
function setupCommonTests(opts: minimist.ParsedArgs): void {
beforeSuite(opts);
afterSuite(opts);
afterEach(async function (): Promise<void> {
const app = this.app as Application;
await app.workbench.quickaccess.runCommand('workbench.action.closeAllEditors');