diff --git a/apps/app/src/views/RootComposeSecondaryContent.test.tsx b/apps/app/src/views/RootComposeSecondaryContent.test.tsx
index 1400bc8f4..605347c35 100644
--- a/apps/app/src/views/RootComposeSecondaryContent.test.tsx
+++ b/apps/app/src/views/RootComposeSecondaryContent.test.tsx
@@ -241,6 +241,46 @@ afterEach(() => {
});
describe("RootComposeSecondaryContent desktop layout", () => {
+ it("mounts compact scroll content only while the compact home layout is active", () => {
+ const compactContent = (
+
+ {Array.from({ length: 1000 }, (_, index) => (
+ - Thread {index}
+ ))}
+
+ );
+ const content = (isCompactViewport: boolean) => (
+
+
+
+
+
+ );
+ const view = render(content(false));
+
+ expect(screen.queryByTestId("compact-recents")).toBeNull();
+ expect(screen.getByTestId("root-compose-content")).not.toBeNull();
+ expect(screen.getByTestId("plugin-homepage-sections")).not.toBeNull();
+
+ view.rerender(content(true));
+
+ expect(screen.getByTestId("compact-recents").children).toHaveLength(1000);
+ expect(screen.getByTestId("root-compose-content")).not.toBeNull();
+ expect(screen.getByTestId("plugin-homepage-sections")).not.toBeNull();
+
+ view.rerender(content(false));
+
+ expect(screen.queryByTestId("compact-recents")).toBeNull();
+ expect(screen.getByTestId("root-compose-content")).not.toBeNull();
+ expect(screen.getByTestId("plugin-homepage-sections")).not.toBeNull();
+ });
+
it("always offers a new tab from the new-thread right panel", async () => {
renderRootCompose({
isCompactViewport: false,