mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-10-30 15:15:24 +00:00
feat: move the terminal fully into the ssh-terminal plugin (B9)
This commit is contained in:
1 parent
535126fd1b
commit
79d77678c9
309 files changed
+41789
-14958
No files matched your search
@@ -58,10 +58,36 @@ describe(`${manifest.id} activate`, () => {
|
||||
"terminal.listSessions",
|
||||
"terminal.sendToActive",
|
||||
"terminal.sendToSession",
|
||||
"terminal.open",
|
||||
]),
|
||||
);
|
||||
});
|
||||
|
||||
it("registers the command history panel and its rail item", async () => {
|
||||
rendered = await renderWithApp(plugin, { manifest, locales });
|
||||
expect(rendered.registered.panels()).toContain("history");
|
||||
expect(rendered.registered.railItems().map((item) => item.id)).toContain(
|
||||
"history",
|
||||
);
|
||||
});
|
||||
|
||||
it("offers the local terminal only in the desktop app", async () => {
|
||||
rendered = await renderWithApp(plugin, { manifest, locales });
|
||||
expect(rendered.registered.tabs()).not.toContain("local-terminal");
|
||||
await rendered.deactivate();
|
||||
|
||||
(window as { IS_ELECTRON?: boolean }).IS_ELECTRON = true;
|
||||
try {
|
||||
rendered = await renderWithApp(plugin, { manifest, locales });
|
||||
expect(rendered.registered.tabs()).toContain("local-terminal");
|
||||
expect(rendered.registered.railItems().map((item) => item.id)).toContain(
|
||||
"local-terminal",
|
||||
);
|
||||
} finally {
|
||||
delete (window as { IS_ELECTRON?: boolean }).IS_ELECTRON;
|
||||
}
|
||||
});
|
||||
|
||||
it("terminal.sendToActive and terminal.listSessions report no session when none is registered", async () => {
|
||||
rendered = await renderWithApp(plugin, { manifest, locales });
|
||||
await expect(
|
||||
|
||||
Reference in new issue
Block a user