mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-03-19 03:21:36 -04: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:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user