mirror of
https://github.com/getpaseo/paseo.git
synced 2026-10-14 13:22:37 +00:00
test(terminal): send exit through the terminal session interface
This commit is contained in:
@@ -583,7 +583,7 @@ describe("createTerminal", () => {
|
||||
}),
|
||||
);
|
||||
const state = await waitForState(session, (current) => getRowText(current, 0) === "FULLSCREEN");
|
||||
session.write("q");
|
||||
session.send({ type: "input", data: "q" });
|
||||
const exited = await waitForState(session, (current) => getRowText(current, 1) === "PROMPT");
|
||||
const expected = getLines(exited).join("\n").trim();
|
||||
expect(expected).toBe("SHELL\nPROMPT");
|
||||
|
||||
Reference in New Issue
Block a user