fix flaky terminal persistence smoke test (#224414)

fix #216464
This commit is contained in:
Megan Rogge 2024-07-31 11:25:36 -07:00 committed by GitHub
parent 52e0f91d25
commit 14253f3cd9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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