mirror of
https://github.com/danog/code-server.git
synced 2024-11-30 04:39:46 +01:00
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
Block a user