refactor: make CodeServer methods more stable

This commit is contained in:
Joe Previte
2021-04-27 14:35:09 -07:00
parent 1e683f3d9a
commit 8c727d96d6
+1
View File
@@ -63,6 +63,7 @@ export class CodeServer {
const isTerminalVisible = await this.page.isVisible("#terminal")
if (isTerminalVisible) {
await this.page.keyboard.press(`Control+Backquote`)
// TODO fix this
// Wait for terminal to receive focus
await this.page.waitForSelector("div.terminal.xterm.focus")
// Sometimes the terminal reloads