Add more smoke tests and abstract more code (#10799)

* add more smoke tests and abstract more code

* fix missing imports
This commit is contained in:
Anthony Dresser
2020-06-10 12:12:35 -07:00
committed by GitHub
parent 187667f4f1
commit d849ed9357
6 changed files with 43 additions and 29 deletions

View File

@@ -9,10 +9,14 @@ export class QueryEditor {
public readonly commandBar: CommandBar;
constructor(code: Code) {
constructor(private code: Code) {
this.commandBar = new CommandBar(code);
}
private static readonly RESULT_SELECTOR = '.query-editor-view .monaco-table';
public async waitForResults(): Promise<void> {
await this.code.waitForElement(QueryEditor.RESULT_SELECTOR);
}
}
export class CommandBar {