feat: expand advanced widget experiences
This commit is contained in:
1 parent
9437d211c8
commit
c099a8eef6
119 files changed
+3624
-844
No files matched your search
@@ -1,6 +1,6 @@
|
||||
import { describe, expect, test } from "vitest";
|
||||
|
||||
import { getGridCols, getIconSize } from "./component";
|
||||
import { getGridCols, getIconSize, getVisibleBazarrStatKeys } from "./component";
|
||||
|
||||
describe("Bazarr responsive layout", () => {
|
||||
test("uses two columns for a short widget so all stats remain visible", () => {
|
||||
@@ -15,4 +15,18 @@ describe("Bazarr responsive layout", () => {
|
||||
expect(getIconSize(180)).toBe(16);
|
||||
expect(getIconSize(340)).toBe(22);
|
||||
});
|
||||
|
||||
test("advanced mode includes hidden summaries and all fetched status fields", () => {
|
||||
expect(
|
||||
getVisibleBazarrStatKeys(
|
||||
{
|
||||
showMissingEpisodes: false,
|
||||
showMissingMovies: false,
|
||||
showProviderIssues: false,
|
||||
showHealthIssues: false,
|
||||
},
|
||||
"advanced",
|
||||
),
|
||||
).toEqual(["episodes", "movies", "providers", "status", "sonarrSignalr", "radarrSignalr", "announcements"]);
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user