Persist login status for room servers. Closes #244.

This commit is contained in:
Jack Kingsman
2026-05-13 16:52:32 -07:00
parent 79c8b45d89
commit b77660196b
3 changed files with 97 additions and 28 deletions
+2 -1
View File
@@ -1,7 +1,7 @@
import { fireEvent, render, screen, waitFor } from '@testing-library/react';
import { beforeEach, describe, expect, it, vi, type Mock } from 'vitest';
import { RoomServerPanel } from '../components/RoomServerPanel';
import { RoomServerPanel, resetRoomCacheForTests } from '../components/RoomServerPanel';
import type { Contact } from '../types';
vi.mock('../api', () => ({
@@ -50,6 +50,7 @@ describe('RoomServerPanel', () => {
beforeEach(() => {
vi.clearAllMocks();
localStorage.clear();
resetRoomCacheForTests();
});
it('keeps room controls available when login is not confirmed', async () => {