test(site): workaround for reattached xterm-rows (#9790)

This commit is contained in:
Marcin Tojek
2023-09-20 14:25:30 +02:00
committed by GitHub
parent a18bf73131
commit 8e012e4e1a
+4
View File
@@ -45,6 +45,10 @@ test("web terminal", async ({ context, page }) => {
state: "visible",
});
// Workaround: delay next steps as "div.xterm-rows" can be recreated/reattached
// after a couple of milliseconds.
await terminal.waitForTimeout(2000);
// Ensure that we can type in it
await terminal.keyboard.type("echo he${justabreak}llo123456");
await terminal.keyboard.press("Enter");