1
0
mirror of https://git.tuxpa.in/a/code-server.git synced 2024-12-27 04:35:25 +00:00

refactor: make CodeServer methods more stable

This commit is contained in:
Joe Previte 2021-04-26 16:49:49 -07:00
parent 1e683f3d9a
commit 8c727d96d6
No known key found for this signature in database
GPG Key ID: 2C91590C6B742C24

View File

@ -63,6 +63,7 @@ export class CodeServer {
const isTerminalVisible = await this.page.isVisible("#terminal") const isTerminalVisible = await this.page.isVisible("#terminal")
if (isTerminalVisible) { if (isTerminalVisible) {
await this.page.keyboard.press(`Control+Backquote`) await this.page.keyboard.press(`Control+Backquote`)
// TODO fix this
// Wait for terminal to receive focus // Wait for terminal to receive focus
await this.page.waitForSelector("div.terminal.xterm.focus") await this.page.waitForSelector("div.terminal.xterm.focus")
// Sometimes the terminal reloads // Sometimes the terminal reloads