Skip to content

A continuation of HomeBox the inventory and organization system built for the Home User

Fix TypeScript null check in upgrade-verification test

copilot-swe-agent[bot]afd7a100034b
diff --git a/frontend/test/e2e/upgrade-verification.spec.ts b/frontend/test/e2e/upgrade-verification.spec.ts
index f1ebbacc..38af3343 100644
--- a/frontend/test/e2e/upgrade-verification.spec.ts
+++ b/frontend/test/e2e/upgrade-verification.spec.ts
@@ -375,7 +375,9 @@ test.describe("HomeBox Upgrade Verification", () => {
// Verify at least that the page loaded and shows some content
expect(pageContent).toBeTruthy();
- expect(pageContent.length).toBeGreaterThan(100);
+ if (pageContent) {
+ expect(pageContent.length).toBeGreaterThan(100);
+ }
});
test("verify second group users and data isolation", async ({ page }) => {