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")
|
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
|
||||||
|
Reference in New Issue
Block a user