Skip to content

Commit 57fb3c6

Browse files
committed
test(e2e): ensure fast-typing PTY test creates its own session
The 'local-vs-remote-echo-fast-typing' Playwright E2E test now explicitly creates the required 'Local vs remote echo test' PTY session at the start of the test, using the api fixture. This resolves a test failure where the test would time out waiting for a missing session item, and brings the setup inline with other PTY E2E scenarios. No application logic is changed; this improves test reliability only.
1 parent 20de494 commit 57fb3c6

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

‎e2e/local-vs-remote-echo-fast-typing.pw.ts‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,15 @@ import { test as extendedTest, expect } from './fixtures'
44
extendedTest.describe('Xterm Content Extraction - Local vs Remote Echo (Fast Typing)', () => {
55
extendedTest(
66
'should demonstrate local vs remote echo behavior with fast typing',
7-
async ({ page }) => {
7+
async ({ page, api }) => {
88
await page.waitForSelector('h1:has-text("PTY Sessions")')
99

1010
// Create interactive bash session
11+
await api.sessions.create({
12+
command: 'bash',
13+
args: ['-i'],
14+
description: 'Local vs remote echo test',
15+
})
1116

1217
// Wait for session to appear and select it
1318
await page.waitForSelector('.session-item', { timeout: 5000 })

0 commit comments

Comments
 (0)