diff --git a/src/build-output.test.ts b/src/build-output.test.ts index 0f0979a7..0f8d9e76 100644 --- a/src/build-output.test.ts +++ b/src/build-output.test.ts @@ -1357,6 +1357,13 @@ describe("Forgejo 15 native integration", () => { expect(home).toContain('{{template "components/dashboard/context/context" dict "Data" . "Page" ""}}'); expect(home).toContain('{{template "components/dashboard/context/pages" dict "Data" . "Current" "home"}}'); expect(home).toContain('template "components/repository/picker/picker"'); + // With organizations, the repositories heading opens a menu that swaps in the organizations, chosen before paint. + expect(home).toContain('"Items" "user/dashboard/home_lists"'); + expect(home).toContain("{{range .Orgs}}"); + expect(home).toContain('localStorage.getItem(key) === "organizations"'); + // Switching lists is not an unsaved change: Forgejo's leave-page warning skips the form. + expect(home).toContain('