mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-10-31 15:45:23 +00:00
feat(tmux): add a per-host mouse toggle and preserve remote configuration (#1513)
This commit is contained in:
1 parent
99cffc9ba6
commit
9801cc7fc7
10 files changed
+183
-44
No files matched your search
@@ -92,11 +92,17 @@ describe("host editor section", () => {
|
||||
protocols: { ssh: true },
|
||||
});
|
||||
|
||||
fireEvent.click(screen.getByRole("button"));
|
||||
fireEvent.click(screen.getAllByRole("button")[0]);
|
||||
|
||||
const settings = (form.pluginSettings as Record<string, unknown>)[
|
||||
"tmux-monitor"
|
||||
] as { enableTmuxMonitor: boolean };
|
||||
expect(settings.enableTmuxMonitor).toBe(true);
|
||||
fireEvent.click(screen.getAllByRole("button")[1]);
|
||||
expect(
|
||||
(form.pluginSettings as Record<string, Record<string, unknown>>)[
|
||||
"tmux-monitor"
|
||||
],
|
||||
).toEqual({ enableTmuxMonitor: true, mouseEnabled: false });
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user