test(ui): stabilize slow suites and repair stale trust-loop mocks
- Raise testing-library asyncUtilTimeout to 4s and jest timeout to 30s: heavy MUI views exceeded the 1s default on slower machines (profile-page, daily-control-loop double-mount). - end-to-end-trust-loop: mock the /tailored-cv-draft endpoint the redesigned Tailored CV tab now loads, and assert on the structured draft instead of the removed legacy tailoredCvText textarea. Full suite now green locally: 18/18 suites, 39/39 tests. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -1,4 +1,11 @@
|
||||
import React from 'react';
|
||||
import { configure } from '@testing-library/react';
|
||||
|
||||
// Heavy MUI views (job table, workspace dialog, profile page) can exceed the
|
||||
// 1s default async query timeout on slower machines; findBy*/waitFor assertions
|
||||
// still resolve as soon as the element appears.
|
||||
configure({ asyncUtilTimeout: 4000 });
|
||||
jest.setTimeout(30000);
|
||||
|
||||
jest.mock('./api', () => ({
|
||||
api: {
|
||||
|
||||
Reference in New Issue
Block a user