test(web): await terminal output after burst delivery
This commit is contained in:
1 parent
a7f0247ada
commit
6e40f80d05
1 file changed
+2
-1
@@ -653,7 +653,8 @@ describe.skipIf(process.platform === 'win32')('Web sidebar terminal', () => {
|
||||
await page.keyboard.press('Enter')
|
||||
await drained.promise
|
||||
expect(received).toBe(`${input}\r`)
|
||||
await expect.poll(() => page.locator('.xterm-rows:visible').innerText()).toContain('BUFFER_OK')
|
||||
// PTY write completion does not imply that the shell's output has reached xterm.
|
||||
await page.locator('.xterm-rows:visible').getByText('BUFFER_OK', { exact: true }).waitFor()
|
||||
expect(handles).toHaveLength(1)
|
||||
expect(tripwire.pageErrors).toEqual([])
|
||||
} finally {
|
||||
|
||||
Reference in new issue
Block a user