mirror of https://github.com/coder/code-server.git
refactor: make CodeServer methods more stable
This commit is contained in:
parent
1e683f3d9a
commit
8c727d96d6
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue