estate harness: the failure driver closes its browser on timeout; the run waits for each fake server to exit; prettier

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-10-31 21:29:03 +01:00
commit cdfd43fe9f
4 changed files with 7 additions and 8 deletions

View file

@ -51,7 +51,9 @@ describe('activateEstateRoom', () => {
);
it('falls back to the error message, then to a generic one', async () => {
const named = recordingClient(vi.fn().mockRejectedValue(Object.assign(new Error('Boom'), { httpStatus: 500 })));
const named = recordingClient(
vi.fn().mockRejectedValue(Object.assign(new Error('Boom'), { httpStatus: 500 }))
);
expect(await activateEstateRoom(named.mx, room('joinable'))).toEqual({
kind: 'refused',
message: 'Boom',

View file

@ -45,10 +45,7 @@ import {
} from '../../../utils/room';
import { nameInitials } from '../../../utils/common';
import { RoomAvatar } from '../../../components/room-avatar';
import {
getMxIdLocalPart,
rateLimitedActions,
} from '../../../utils/matrix';
import { getMxIdLocalPart, rateLimitedActions } from '../../../utils/matrix';
import { activateEstateRoom } from '../../../features/estate/joinEstateRoom';
import { Time } from '../../../components/message';
import { useElementSizeObserver } from '../../../hooks/useElementSizeObserver';