mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-10-29 22:55:24 +00:00
fix: maintenance index name, shared host read only view and badge polling
This commit is contained in:
1 parent
5ff5ae19d9
commit
3b58415f8f
16 files changed
+166
-37
No files matched your search
@@ -71,6 +71,13 @@ describe("maintenance UI", () => {
|
||||
expect(view.queryByRole("button", { name: "End maintenance" })).toBeNull();
|
||||
expect(view.queryByLabelText("Reason")).toBeNull();
|
||||
});
|
||||
it("shows a shared host's maintenance read only even with edit permission", async () => {
|
||||
const view = await render(apiFor({ ...active, owned: false }));
|
||||
await waitFor(() => expect(view.getByText("OS upgrade")).toBeTruthy());
|
||||
expect(view.getByText(locales.maintenance.sharedReadOnly)).toBeTruthy();
|
||||
expect(view.queryByRole("button", { name: "End maintenance" })).toBeNull();
|
||||
expect(view.queryByLabelText("Reason")).toBeNull();
|
||||
});
|
||||
it("submits a recurring UTC schedule with its grace period", async () => {
|
||||
const api = apiFor(emptyMaintenance());
|
||||
const view = await render(api);
|
||||
|
||||
Reference in new issue
Block a user