rm carriage returns from terminal buffer string in smoke test (#224525)

pull/224531/head
Megan Rogge 2024-08-01 14:40:21 -07:00 committed by GitHub
parent 0da24e0fe7
commit 3cf2a00cef
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -75,8 +75,8 @@ export function setup(options?: { skipSuite: boolean }) {
await terminal.assertTerminalGroups([
[{ name }]
]);
// There can be line wrapping, so remove newlines #216464
await terminal.waitForTerminalText(buffer => buffer.some(e => e.replaceAll('\n', '').includes('terminal_test_content')));
// There can be line wrapping, so remove newlines and carriage returns #216464
await terminal.waitForTerminalText(buffer => buffer.some(e => e.replaceAll(/[\r\n]/g, '').includes('terminal_test_content')));
});
});
});