Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions tests/browser/smoke.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@ try {

await page.waitForFunction(
(sentinel) => {
// The WebGL renderer draws to a canvas atlas and never puts text in
// .xterm-rows, so prefer the shell's buffer-API readout when present;
// fall back to DOM scraping for builds without it (DOM renderer).
if (window.xsofyTermText) return window.xsofyTermText().includes(sentinel);
const el = document.querySelector('.xterm-rows');
return el && el.textContent.includes(sentinel);
},
Expand Down
Loading
Loading