fix: address mobile board review

This commit is contained in:
ajnart committed 2026-08-08 12:34:10 +02:00
1 parent bc90faf5f2
commit 0d1dd02184
4 files changed
+24 -17

No files matched your search

+1 -1
View File
@@ -49,7 +49,7 @@ describe("automatic mobile layout upgrade default", () => {
test.each([
{ boardId: "board", name: "Phone", breakpoint: 0 },
{ boardId: "board", name: "Base", breakpoint: 480 },
])("preserves legacy mode for a noncanonical saved layout", (existingLayout) => {
])("preserves legacy mode for a noncanonical saved layout $name/$breakpoint", (existingLayout) => {
expect(shouldEnableAutomaticMobileLayoutForUpgrade([existingLayout])).toBe(false);
});
@@ -88,10 +88,12 @@ const waitForHomeAssistantAsync = async (container: StartedTestContainer) => {
try {
const response = await fetch(url, {
headers: { Authorization: `Bearer ${DEFAULT_API_KEY}` },
signal: AbortSignal.timeout(500),
});
if (response.ok) return;
} catch {
// Home Assistant is still restarting.
continue;
}
await new Promise((resolve) => setTimeout(resolve, 500));