mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-10-31 23:55:23 +00:00
feat: convert file manager into a plugin
This commit is contained in:
1 parent
b76da9ab52
commit
c85c1fdb86
259 files changed
+54155
-16791
No files matched your search
@@ -219,16 +219,16 @@ describe("HostItem density parity", () => {
|
||||
|
||||
it("learns repeated local actions and preloads the preferred host tool", () => {
|
||||
renderHostItem("comfortable");
|
||||
const filesButton = screen.getByTitle("Files");
|
||||
fireEvent.click(filesButton);
|
||||
fireEvent.click(filesButton);
|
||||
fireEvent.click(filesButton);
|
||||
const tunnelButton = screen.getByTitle("Tunnel");
|
||||
fireEvent.click(tunnelButton);
|
||||
fireEvent.click(tunnelButton);
|
||||
fireEvent.click(tunnelButton);
|
||||
|
||||
const hostRow = screen.getByText("web-01").closest(".cursor-pointer");
|
||||
expect(hostRow).toBeTruthy();
|
||||
fireEvent.pointerEnter(hostRow!);
|
||||
|
||||
expect(preloadTabSurfaceMock).toHaveBeenCalledWith("terminal");
|
||||
expect(preloadTabSurfaceMock).toHaveBeenCalledWith("files");
|
||||
expect(preloadTabSurfaceMock).toHaveBeenCalledWith("tunnel");
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user