diff --git a/test/components/views/rooms/RoomHeader-test.tsx b/test/components/views/rooms/RoomHeader-test.tsx
index abd0a93639..f6bf6e5200 100644
--- a/test/components/views/rooms/RoomHeader-test.tsx
+++ b/test/components/views/rooms/RoomHeader-test.tsx
@@ -200,6 +200,10 @@ describe("RoomHeader", () => {
});
it("opens the notifications panel", async () => {
+ jest.spyOn(SettingsStore, "getValue").mockImplementation((name: string) => {
+ if (name === "feature_notifications") return true;
+ });
+
const { container } = render(