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:
Anthony Dresser
2020-07-10 22:12:45 -07:00
committed by GitHub
parent e2b52b97c8
commit d2bdd2bace
16 changed files with 87 additions and 207 deletions

View File

@@ -4,16 +4,18 @@
*--------------------------------------------------------------------------------------------*/
import { Code } from '../code';
import { waitForNewDialog } from './sqlutils';
import { Dialog } from './dialog';
const CONNECTION_DIALOG_TITLE = 'Connection';
export class ConnectionDialog {
export class ConnectionDialog extends Dialog {
constructor(private code: Code) { }
constructor(code: Code) {
super(CONNECTION_DIALOG_TITLE, code);
}
async waitForConnectionDialog(): Promise<void> {
await waitForNewDialog(this.code, CONNECTION_DIALOG_TITLE);
await this.waitForNewDialog();
}
private static readonly PROVIDER_SELECTOR = '.modal .modal-body select[aria-label="Connection type"]';
@@ -30,7 +32,6 @@ export class ConnectionDialog {
async connect(): Promise<void> {
await this.code.waitAndClick(ConnectionDialog.CONNECT_BUTTON_SELECTOR);
const selector = `.editor-instance .monaco-editor textarea`;
return this.code.waitForActiveElement(selector);
return this.waitForDialogGone();
}
}