Files
jobtrackingapp/docs/ui-modernisation/evidence/interview-cv-read/red.txt
T

1716 lines
79 KiB
Plaintext

console.error
An update to ApplicationFollowUp inside a test was not wrapped in act(...).
When testing, code that causes React state updates should be wrapped into act(...):
act(() => {
/* fire events that update state */
});
/* assert on the output */
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
423 | try {
424 | const result = await interviewPrepApi.followUp(jobId);
> 425 | setData(result);
| ^
426 | setDate(result.followUpAt ? result.followUpAt.slice(0, 10) : "");
427 | setAction(result.nextAction ?? "");
428 | setError(null);
at node_modules/react-dom/cjs/react-dom-client.development.js:18758:19
at runWithFiberInDEV (node_modules/react-dom/cjs/react-dom-client.development.js:874:13)
at warnIfUpdatesNotWrappedWithActDEV (node_modules/react-dom/cjs/react-dom-client.development.js:18757:9)
at scheduleUpdateOnFiber (node_modules/react-dom/cjs/react-dom-client.development.js:16409:11)
at dispatchSetStateInternal (node_modules/react-dom/cjs/react-dom-client.development.js:9170:13)
at dispatchSetState (node_modules/react-dom/cjs/react-dom-client.development.js:9127:7)
at setData (src/components/InterviewPrep.tsx:425:7)
console.error
An update to ApplicationFollowUp inside a test was not wrapped in act(...).
When testing, code that causes React state updates should be wrapped into act(...):
act(() => {
/* fire events that update state */
});
/* assert on the output */
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
424 | const result = await interviewPrepApi.followUp(jobId);
425 | setData(result);
> 426 | setDate(result.followUpAt ? result.followUpAt.slice(0, 10) : "");
| ^
427 | setAction(result.nextAction ?? "");
428 | setError(null);
429 | } catch (err) {
at node_modules/react-dom/cjs/react-dom-client.development.js:18758:19
at runWithFiberInDEV (node_modules/react-dom/cjs/react-dom-client.development.js:874:13)
at warnIfUpdatesNotWrappedWithActDEV (node_modules/react-dom/cjs/react-dom-client.development.js:18757:9)
at scheduleUpdateOnFiber (node_modules/react-dom/cjs/react-dom-client.development.js:16409:11)
at dispatchSetStateInternal (node_modules/react-dom/cjs/react-dom-client.development.js:9170:13)
at dispatchSetState (node_modules/react-dom/cjs/react-dom-client.development.js:9127:7)
at setDate (src/components/InterviewPrep.tsx:426:7)
console.error
An update to ApplicationFollowUp inside a test was not wrapped in act(...).
When testing, code that causes React state updates should be wrapped into act(...):
act(() => {
/* fire events that update state */
});
/* assert on the output */
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
425 | setData(result);
426 | setDate(result.followUpAt ? result.followUpAt.slice(0, 10) : "");
> 427 | setAction(result.nextAction ?? "");
| ^
428 | setError(null);
429 | } catch (err) {
430 | setError({ cause: err, fallback: "interviewFollowUpLoadFailed" });
at node_modules/react-dom/cjs/react-dom-client.development.js:18758:19
at runWithFiberInDEV (node_modules/react-dom/cjs/react-dom-client.development.js:874:13)
at warnIfUpdatesNotWrappedWithActDEV (node_modules/react-dom/cjs/react-dom-client.development.js:18757:9)
at scheduleUpdateOnFiber (node_modules/react-dom/cjs/react-dom-client.development.js:16409:11)
at dispatchSetStateInternal (node_modules/react-dom/cjs/react-dom-client.development.js:9170:13)
at dispatchSetState (node_modules/react-dom/cjs/react-dom-client.development.js:9127:7)
at setAction (src/components/InterviewPrep.tsx:427:7)
console.error
An update to ApplicationFollowUp inside a test was not wrapped in act(...).
When testing, code that causes React state updates should be wrapped into act(...):
act(() => {
/* fire events that update state */
});
/* assert on the output */
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
426 | setDate(result.followUpAt ? result.followUpAt.slice(0, 10) : "");
427 | setAction(result.nextAction ?? "");
> 428 | setError(null);
| ^
429 | } catch (err) {
430 | setError({ cause: err, fallback: "interviewFollowUpLoadFailed" });
431 | } finally {
at node_modules/react-dom/cjs/react-dom-client.development.js:18758:19
at runWithFiberInDEV (node_modules/react-dom/cjs/react-dom-client.development.js:874:13)
at warnIfUpdatesNotWrappedWithActDEV (node_modules/react-dom/cjs/react-dom-client.development.js:18757:9)
at scheduleUpdateOnFiber (node_modules/react-dom/cjs/react-dom-client.development.js:16409:11)
at dispatchSetStateInternal (node_modules/react-dom/cjs/react-dom-client.development.js:9170:13)
at dispatchSetState (node_modules/react-dom/cjs/react-dom-client.development.js:9127:7)
at setError (src/components/InterviewPrep.tsx:428:7)
console.error
An update to ApplicationFollowUp inside a test was not wrapped in act(...).
When testing, code that causes React state updates should be wrapped into act(...):
act(() => {
/* fire events that update state */
});
/* assert on the output */
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
430 | setError({ cause: err, fallback: "interviewFollowUpLoadFailed" });
431 | } finally {
> 432 | setLoading(false);
| ^
433 | }
434 | }, [jobId]);
435 |
at node_modules/react-dom/cjs/react-dom-client.development.js:18758:19
at runWithFiberInDEV (node_modules/react-dom/cjs/react-dom-client.development.js:874:13)
at warnIfUpdatesNotWrappedWithActDEV (node_modules/react-dom/cjs/react-dom-client.development.js:18757:9)
at scheduleUpdateOnFiber (node_modules/react-dom/cjs/react-dom-client.development.js:16409:11)
at dispatchSetStateInternal (node_modules/react-dom/cjs/react-dom-client.development.js:9170:13)
at dispatchSetState (node_modules/react-dom/cjs/react-dom-client.development.js:9127:7)
at setLoading (src/components/InterviewPrep.tsx:432:7)
console.error
An update to ApplicationInterviewPrep inside a test was not wrapped in act(...).
When testing, code that causes React state updates should be wrapped into act(...):
act(() => {
/* fire events that update state */
});
/* assert on the output */
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
55 | setLoading(true);
56 | try {
> 57 | setBoard(await interviewPrepApi.get(jobId));
| ^
58 | setError(null);
59 | } catch (err) {
60 | setError({ cause: err, fallback: "interviewPrepLoadFailed" });
at node_modules/react-dom/cjs/react-dom-client.development.js:18758:19
at runWithFiberInDEV (node_modules/react-dom/cjs/react-dom-client.development.js:874:13)
at warnIfUpdatesNotWrappedWithActDEV (node_modules/react-dom/cjs/react-dom-client.development.js:18757:9)
at scheduleUpdateOnFiber (node_modules/react-dom/cjs/react-dom-client.development.js:16409:11)
at dispatchSetStateInternal (node_modules/react-dom/cjs/react-dom-client.development.js:9170:13)
at dispatchSetState (node_modules/react-dom/cjs/react-dom-client.development.js:9127:7)
at setBoard (src/components/InterviewPrep.tsx:57:7)
console.error
An update to ApplicationInterviewPrep inside a test was not wrapped in act(...).
When testing, code that causes React state updates should be wrapped into act(...):
act(() => {
/* fire events that update state */
});
/* assert on the output */
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
56 | try {
57 | setBoard(await interviewPrepApi.get(jobId));
> 58 | setError(null);
| ^
59 | } catch (err) {
60 | setError({ cause: err, fallback: "interviewPrepLoadFailed" });
61 | } finally {
at node_modules/react-dom/cjs/react-dom-client.development.js:18758:19
at runWithFiberInDEV (node_modules/react-dom/cjs/react-dom-client.development.js:874:13)
at warnIfUpdatesNotWrappedWithActDEV (node_modules/react-dom/cjs/react-dom-client.development.js:18757:9)
at scheduleUpdateOnFiber (node_modules/react-dom/cjs/react-dom-client.development.js:16409:11)
at dispatchSetStateInternal (node_modules/react-dom/cjs/react-dom-client.development.js:9170:13)
at dispatchSetState (node_modules/react-dom/cjs/react-dom-client.development.js:9127:7)
at setError (src/components/InterviewPrep.tsx:58:7)
console.error
An update to ApplicationInterviewPrep inside a test was not wrapped in act(...).
When testing, code that causes React state updates should be wrapped into act(...):
act(() => {
/* fire events that update state */
});
/* assert on the output */
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
60 | setError({ cause: err, fallback: "interviewPrepLoadFailed" });
61 | } finally {
> 62 | setLoading(false);
| ^
63 | }
64 | }, [jobId]);
65 |
at node_modules/react-dom/cjs/react-dom-client.development.js:18758:19
at runWithFiberInDEV (node_modules/react-dom/cjs/react-dom-client.development.js:874:13)
at warnIfUpdatesNotWrappedWithActDEV (node_modules/react-dom/cjs/react-dom-client.development.js:18757:9)
at scheduleUpdateOnFiber (node_modules/react-dom/cjs/react-dom-client.development.js:16409:11)
at dispatchSetStateInternal (node_modules/react-dom/cjs/react-dom-client.development.js:9170:13)
at dispatchSetState (node_modules/react-dom/cjs/react-dom-client.development.js:9127:7)
at setLoading (src/components/InterviewPrep.tsx:62:7)
console.error
An update to ApplicationFollowUp inside a test was not wrapped in act(...).
When testing, code that causes React state updates should be wrapped into act(...):
act(() => {
/* fire events that update state */
});
/* assert on the output */
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
423 | try {
424 | const result = await interviewPrepApi.followUp(jobId);
> 425 | setData(result);
| ^
426 | setDate(result.followUpAt ? result.followUpAt.slice(0, 10) : "");
427 | setAction(result.nextAction ?? "");
428 | setError(null);
at node_modules/react-dom/cjs/react-dom-client.development.js:18758:19
at runWithFiberInDEV (node_modules/react-dom/cjs/react-dom-client.development.js:874:13)
at warnIfUpdatesNotWrappedWithActDEV (node_modules/react-dom/cjs/react-dom-client.development.js:18757:9)
at scheduleUpdateOnFiber (node_modules/react-dom/cjs/react-dom-client.development.js:16409:11)
at dispatchSetStateInternal (node_modules/react-dom/cjs/react-dom-client.development.js:9170:13)
at dispatchSetState (node_modules/react-dom/cjs/react-dom-client.development.js:9127:7)
at setData (src/components/InterviewPrep.tsx:425:7)
console.error
An update to ApplicationFollowUp inside a test was not wrapped in act(...).
When testing, code that causes React state updates should be wrapped into act(...):
act(() => {
/* fire events that update state */
});
/* assert on the output */
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
424 | const result = await interviewPrepApi.followUp(jobId);
425 | setData(result);
> 426 | setDate(result.followUpAt ? result.followUpAt.slice(0, 10) : "");
| ^
427 | setAction(result.nextAction ?? "");
428 | setError(null);
429 | } catch (err) {
at node_modules/react-dom/cjs/react-dom-client.development.js:18758:19
at runWithFiberInDEV (node_modules/react-dom/cjs/react-dom-client.development.js:874:13)
at warnIfUpdatesNotWrappedWithActDEV (node_modules/react-dom/cjs/react-dom-client.development.js:18757:9)
at scheduleUpdateOnFiber (node_modules/react-dom/cjs/react-dom-client.development.js:16409:11)
at dispatchSetStateInternal (node_modules/react-dom/cjs/react-dom-client.development.js:9170:13)
at dispatchSetState (node_modules/react-dom/cjs/react-dom-client.development.js:9127:7)
at setDate (src/components/InterviewPrep.tsx:426:7)
console.error
An update to ApplicationFollowUp inside a test was not wrapped in act(...).
When testing, code that causes React state updates should be wrapped into act(...):
act(() => {
/* fire events that update state */
});
/* assert on the output */
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
425 | setData(result);
426 | setDate(result.followUpAt ? result.followUpAt.slice(0, 10) : "");
> 427 | setAction(result.nextAction ?? "");
| ^
428 | setError(null);
429 | } catch (err) {
430 | setError({ cause: err, fallback: "interviewFollowUpLoadFailed" });
at node_modules/react-dom/cjs/react-dom-client.development.js:18758:19
at runWithFiberInDEV (node_modules/react-dom/cjs/react-dom-client.development.js:874:13)
at warnIfUpdatesNotWrappedWithActDEV (node_modules/react-dom/cjs/react-dom-client.development.js:18757:9)
at scheduleUpdateOnFiber (node_modules/react-dom/cjs/react-dom-client.development.js:16409:11)
at dispatchSetStateInternal (node_modules/react-dom/cjs/react-dom-client.development.js:9170:13)
at dispatchSetState (node_modules/react-dom/cjs/react-dom-client.development.js:9127:7)
at setAction (src/components/InterviewPrep.tsx:427:7)
console.error
An update to ApplicationFollowUp inside a test was not wrapped in act(...).
When testing, code that causes React state updates should be wrapped into act(...):
act(() => {
/* fire events that update state */
});
/* assert on the output */
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
426 | setDate(result.followUpAt ? result.followUpAt.slice(0, 10) : "");
427 | setAction(result.nextAction ?? "");
> 428 | setError(null);
| ^
429 | } catch (err) {
430 | setError({ cause: err, fallback: "interviewFollowUpLoadFailed" });
431 | } finally {
at node_modules/react-dom/cjs/react-dom-client.development.js:18758:19
at runWithFiberInDEV (node_modules/react-dom/cjs/react-dom-client.development.js:874:13)
at warnIfUpdatesNotWrappedWithActDEV (node_modules/react-dom/cjs/react-dom-client.development.js:18757:9)
at scheduleUpdateOnFiber (node_modules/react-dom/cjs/react-dom-client.development.js:16409:11)
at dispatchSetStateInternal (node_modules/react-dom/cjs/react-dom-client.development.js:9170:13)
at dispatchSetState (node_modules/react-dom/cjs/react-dom-client.development.js:9127:7)
at setError (src/components/InterviewPrep.tsx:428:7)
console.error
An update to ApplicationFollowUp inside a test was not wrapped in act(...).
When testing, code that causes React state updates should be wrapped into act(...):
act(() => {
/* fire events that update state */
});
/* assert on the output */
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
430 | setError({ cause: err, fallback: "interviewFollowUpLoadFailed" });
431 | } finally {
> 432 | setLoading(false);
| ^
433 | }
434 | }, [jobId]);
435 |
at node_modules/react-dom/cjs/react-dom-client.development.js:18758:19
at runWithFiberInDEV (node_modules/react-dom/cjs/react-dom-client.development.js:874:13)
at warnIfUpdatesNotWrappedWithActDEV (node_modules/react-dom/cjs/react-dom-client.development.js:18757:9)
at scheduleUpdateOnFiber (node_modules/react-dom/cjs/react-dom-client.development.js:16409:11)
at dispatchSetStateInternal (node_modules/react-dom/cjs/react-dom-client.development.js:9170:13)
at dispatchSetState (node_modules/react-dom/cjs/react-dom-client.development.js:9127:7)
at setLoading (src/components/InterviewPrep.tsx:432:7)
console.error
An update to ApplicationInterviewPrep inside a test was not wrapped in act(...).
When testing, code that causes React state updates should be wrapped into act(...):
act(() => {
/* fire events that update state */
});
/* assert on the output */
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
55 | setLoading(true);
56 | try {
> 57 | setBoard(await interviewPrepApi.get(jobId));
| ^
58 | setError(null);
59 | } catch (err) {
60 | setError({ cause: err, fallback: "interviewPrepLoadFailed" });
at node_modules/react-dom/cjs/react-dom-client.development.js:18758:19
at runWithFiberInDEV (node_modules/react-dom/cjs/react-dom-client.development.js:874:13)
at warnIfUpdatesNotWrappedWithActDEV (node_modules/react-dom/cjs/react-dom-client.development.js:18757:9)
at scheduleUpdateOnFiber (node_modules/react-dom/cjs/react-dom-client.development.js:16409:11)
at dispatchSetStateInternal (node_modules/react-dom/cjs/react-dom-client.development.js:9170:13)
at dispatchSetState (node_modules/react-dom/cjs/react-dom-client.development.js:9127:7)
at setBoard (src/components/InterviewPrep.tsx:57:7)
console.error
An update to ApplicationInterviewPrep inside a test was not wrapped in act(...).
When testing, code that causes React state updates should be wrapped into act(...):
act(() => {
/* fire events that update state */
});
/* assert on the output */
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
56 | try {
57 | setBoard(await interviewPrepApi.get(jobId));
> 58 | setError(null);
| ^
59 | } catch (err) {
60 | setError({ cause: err, fallback: "interviewPrepLoadFailed" });
61 | } finally {
at node_modules/react-dom/cjs/react-dom-client.development.js:18758:19
at runWithFiberInDEV (node_modules/react-dom/cjs/react-dom-client.development.js:874:13)
at warnIfUpdatesNotWrappedWithActDEV (node_modules/react-dom/cjs/react-dom-client.development.js:18757:9)
at scheduleUpdateOnFiber (node_modules/react-dom/cjs/react-dom-client.development.js:16409:11)
at dispatchSetStateInternal (node_modules/react-dom/cjs/react-dom-client.development.js:9170:13)
at dispatchSetState (node_modules/react-dom/cjs/react-dom-client.development.js:9127:7)
at setError (src/components/InterviewPrep.tsx:58:7)
console.error
An update to ApplicationInterviewPrep inside a test was not wrapped in act(...).
When testing, code that causes React state updates should be wrapped into act(...):
act(() => {
/* fire events that update state */
});
/* assert on the output */
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
60 | setError({ cause: err, fallback: "interviewPrepLoadFailed" });
61 | } finally {
> 62 | setLoading(false);
| ^
63 | }
64 | }, [jobId]);
65 |
at node_modules/react-dom/cjs/react-dom-client.development.js:18758:19
at runWithFiberInDEV (node_modules/react-dom/cjs/react-dom-client.development.js:874:13)
at warnIfUpdatesNotWrappedWithActDEV (node_modules/react-dom/cjs/react-dom-client.development.js:18757:9)
at scheduleUpdateOnFiber (node_modules/react-dom/cjs/react-dom-client.development.js:16409:11)
at dispatchSetStateInternal (node_modules/react-dom/cjs/react-dom-client.development.js:9170:13)
at dispatchSetState (node_modules/react-dom/cjs/react-dom-client.development.js:9127:7)
at setLoading (src/components/InterviewPrep.tsx:62:7)
console.error
An update to ApplicationFollowUp inside a test was not wrapped in act(...).
When testing, code that causes React state updates should be wrapped into act(...):
act(() => {
/* fire events that update state */
});
/* assert on the output */
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
423 | try {
424 | const result = await interviewPrepApi.followUp(jobId);
> 425 | setData(result);
| ^
426 | setDate(result.followUpAt ? result.followUpAt.slice(0, 10) : "");
427 | setAction(result.nextAction ?? "");
428 | setError(null);
at node_modules/react-dom/cjs/react-dom-client.development.js:18758:19
at runWithFiberInDEV (node_modules/react-dom/cjs/react-dom-client.development.js:874:13)
at warnIfUpdatesNotWrappedWithActDEV (node_modules/react-dom/cjs/react-dom-client.development.js:18757:9)
at scheduleUpdateOnFiber (node_modules/react-dom/cjs/react-dom-client.development.js:16409:11)
at dispatchSetStateInternal (node_modules/react-dom/cjs/react-dom-client.development.js:9170:13)
at dispatchSetState (node_modules/react-dom/cjs/react-dom-client.development.js:9127:7)
at setData (src/components/InterviewPrep.tsx:425:7)
console.error
An update to ApplicationFollowUp inside a test was not wrapped in act(...).
When testing, code that causes React state updates should be wrapped into act(...):
act(() => {
/* fire events that update state */
});
/* assert on the output */
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
424 | const result = await interviewPrepApi.followUp(jobId);
425 | setData(result);
> 426 | setDate(result.followUpAt ? result.followUpAt.slice(0, 10) : "");
| ^
427 | setAction(result.nextAction ?? "");
428 | setError(null);
429 | } catch (err) {
at node_modules/react-dom/cjs/react-dom-client.development.js:18758:19
at runWithFiberInDEV (node_modules/react-dom/cjs/react-dom-client.development.js:874:13)
at warnIfUpdatesNotWrappedWithActDEV (node_modules/react-dom/cjs/react-dom-client.development.js:18757:9)
at scheduleUpdateOnFiber (node_modules/react-dom/cjs/react-dom-client.development.js:16409:11)
at dispatchSetStateInternal (node_modules/react-dom/cjs/react-dom-client.development.js:9170:13)
at dispatchSetState (node_modules/react-dom/cjs/react-dom-client.development.js:9127:7)
at setDate (src/components/InterviewPrep.tsx:426:7)
console.error
An update to ApplicationFollowUp inside a test was not wrapped in act(...).
When testing, code that causes React state updates should be wrapped into act(...):
act(() => {
/* fire events that update state */
});
/* assert on the output */
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
425 | setData(result);
426 | setDate(result.followUpAt ? result.followUpAt.slice(0, 10) : "");
> 427 | setAction(result.nextAction ?? "");
| ^
428 | setError(null);
429 | } catch (err) {
430 | setError({ cause: err, fallback: "interviewFollowUpLoadFailed" });
at node_modules/react-dom/cjs/react-dom-client.development.js:18758:19
at runWithFiberInDEV (node_modules/react-dom/cjs/react-dom-client.development.js:874:13)
at warnIfUpdatesNotWrappedWithActDEV (node_modules/react-dom/cjs/react-dom-client.development.js:18757:9)
at scheduleUpdateOnFiber (node_modules/react-dom/cjs/react-dom-client.development.js:16409:11)
at dispatchSetStateInternal (node_modules/react-dom/cjs/react-dom-client.development.js:9170:13)
at dispatchSetState (node_modules/react-dom/cjs/react-dom-client.development.js:9127:7)
at setAction (src/components/InterviewPrep.tsx:427:7)
console.error
An update to ApplicationFollowUp inside a test was not wrapped in act(...).
When testing, code that causes React state updates should be wrapped into act(...):
act(() => {
/* fire events that update state */
});
/* assert on the output */
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
426 | setDate(result.followUpAt ? result.followUpAt.slice(0, 10) : "");
427 | setAction(result.nextAction ?? "");
> 428 | setError(null);
| ^
429 | } catch (err) {
430 | setError({ cause: err, fallback: "interviewFollowUpLoadFailed" });
431 | } finally {
at node_modules/react-dom/cjs/react-dom-client.development.js:18758:19
at runWithFiberInDEV (node_modules/react-dom/cjs/react-dom-client.development.js:874:13)
at warnIfUpdatesNotWrappedWithActDEV (node_modules/react-dom/cjs/react-dom-client.development.js:18757:9)
at scheduleUpdateOnFiber (node_modules/react-dom/cjs/react-dom-client.development.js:16409:11)
at dispatchSetStateInternal (node_modules/react-dom/cjs/react-dom-client.development.js:9170:13)
at dispatchSetState (node_modules/react-dom/cjs/react-dom-client.development.js:9127:7)
at setError (src/components/InterviewPrep.tsx:428:7)
console.error
An update to ApplicationFollowUp inside a test was not wrapped in act(...).
When testing, code that causes React state updates should be wrapped into act(...):
act(() => {
/* fire events that update state */
});
/* assert on the output */
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
430 | setError({ cause: err, fallback: "interviewFollowUpLoadFailed" });
431 | } finally {
> 432 | setLoading(false);
| ^
433 | }
434 | }, [jobId]);
435 |
at node_modules/react-dom/cjs/react-dom-client.development.js:18758:19
at runWithFiberInDEV (node_modules/react-dom/cjs/react-dom-client.development.js:874:13)
at warnIfUpdatesNotWrappedWithActDEV (node_modules/react-dom/cjs/react-dom-client.development.js:18757:9)
at scheduleUpdateOnFiber (node_modules/react-dom/cjs/react-dom-client.development.js:16409:11)
at dispatchSetStateInternal (node_modules/react-dom/cjs/react-dom-client.development.js:9170:13)
at dispatchSetState (node_modules/react-dom/cjs/react-dom-client.development.js:9127:7)
at setLoading (src/components/InterviewPrep.tsx:432:7)
console.error
An update to ApplicationInterviewPrep inside a test was not wrapped in act(...).
When testing, code that causes React state updates should be wrapped into act(...):
act(() => {
/* fire events that update state */
});
/* assert on the output */
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
55 | setLoading(true);
56 | try {
> 57 | setBoard(await interviewPrepApi.get(jobId));
| ^
58 | setError(null);
59 | } catch (err) {
60 | setError({ cause: err, fallback: "interviewPrepLoadFailed" });
at node_modules/react-dom/cjs/react-dom-client.development.js:18758:19
at runWithFiberInDEV (node_modules/react-dom/cjs/react-dom-client.development.js:874:13)
at warnIfUpdatesNotWrappedWithActDEV (node_modules/react-dom/cjs/react-dom-client.development.js:18757:9)
at scheduleUpdateOnFiber (node_modules/react-dom/cjs/react-dom-client.development.js:16409:11)
at dispatchSetStateInternal (node_modules/react-dom/cjs/react-dom-client.development.js:9170:13)
at dispatchSetState (node_modules/react-dom/cjs/react-dom-client.development.js:9127:7)
at setBoard (src/components/InterviewPrep.tsx:57:7)
console.error
An update to ApplicationInterviewPrep inside a test was not wrapped in act(...).
When testing, code that causes React state updates should be wrapped into act(...):
act(() => {
/* fire events that update state */
});
/* assert on the output */
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
56 | try {
57 | setBoard(await interviewPrepApi.get(jobId));
> 58 | setError(null);
| ^
59 | } catch (err) {
60 | setError({ cause: err, fallback: "interviewPrepLoadFailed" });
61 | } finally {
at node_modules/react-dom/cjs/react-dom-client.development.js:18758:19
at runWithFiberInDEV (node_modules/react-dom/cjs/react-dom-client.development.js:874:13)
at warnIfUpdatesNotWrappedWithActDEV (node_modules/react-dom/cjs/react-dom-client.development.js:18757:9)
at scheduleUpdateOnFiber (node_modules/react-dom/cjs/react-dom-client.development.js:16409:11)
at dispatchSetStateInternal (node_modules/react-dom/cjs/react-dom-client.development.js:9170:13)
at dispatchSetState (node_modules/react-dom/cjs/react-dom-client.development.js:9127:7)
at setError (src/components/InterviewPrep.tsx:58:7)
console.error
An update to ApplicationInterviewPrep inside a test was not wrapped in act(...).
When testing, code that causes React state updates should be wrapped into act(...):
act(() => {
/* fire events that update state */
});
/* assert on the output */
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
60 | setError({ cause: err, fallback: "interviewPrepLoadFailed" });
61 | } finally {
> 62 | setLoading(false);
| ^
63 | }
64 | }, [jobId]);
65 |
at node_modules/react-dom/cjs/react-dom-client.development.js:18758:19
at runWithFiberInDEV (node_modules/react-dom/cjs/react-dom-client.development.js:874:13)
at warnIfUpdatesNotWrappedWithActDEV (node_modules/react-dom/cjs/react-dom-client.development.js:18757:9)
at scheduleUpdateOnFiber (node_modules/react-dom/cjs/react-dom-client.development.js:16409:11)
at dispatchSetStateInternal (node_modules/react-dom/cjs/react-dom-client.development.js:9170:13)
at dispatchSetState (node_modules/react-dom/cjs/react-dom-client.development.js:9127:7)
at setLoading (src/components/InterviewPrep.tsx:62:7)
console.error
An update to ApplicationFollowUp inside a test was not wrapped in act(...).
When testing, code that causes React state updates should be wrapped into act(...):
act(() => {
/* fire events that update state */
});
/* assert on the output */
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
423 | try {
424 | const result = await interviewPrepApi.followUp(jobId);
> 425 | setData(result);
| ^
426 | setDate(result.followUpAt ? result.followUpAt.slice(0, 10) : "");
427 | setAction(result.nextAction ?? "");
428 | setError(null);
at node_modules/react-dom/cjs/react-dom-client.development.js:18758:19
at runWithFiberInDEV (node_modules/react-dom/cjs/react-dom-client.development.js:874:13)
at warnIfUpdatesNotWrappedWithActDEV (node_modules/react-dom/cjs/react-dom-client.development.js:18757:9)
at scheduleUpdateOnFiber (node_modules/react-dom/cjs/react-dom-client.development.js:16409:11)
at dispatchSetStateInternal (node_modules/react-dom/cjs/react-dom-client.development.js:9170:13)
at dispatchSetState (node_modules/react-dom/cjs/react-dom-client.development.js:9127:7)
at setData (src/components/InterviewPrep.tsx:425:7)
console.error
An update to ApplicationFollowUp inside a test was not wrapped in act(...).
When testing, code that causes React state updates should be wrapped into act(...):
act(() => {
/* fire events that update state */
});
/* assert on the output */
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
424 | const result = await interviewPrepApi.followUp(jobId);
425 | setData(result);
> 426 | setDate(result.followUpAt ? result.followUpAt.slice(0, 10) : "");
| ^
427 | setAction(result.nextAction ?? "");
428 | setError(null);
429 | } catch (err) {
at node_modules/react-dom/cjs/react-dom-client.development.js:18758:19
at runWithFiberInDEV (node_modules/react-dom/cjs/react-dom-client.development.js:874:13)
at warnIfUpdatesNotWrappedWithActDEV (node_modules/react-dom/cjs/react-dom-client.development.js:18757:9)
at scheduleUpdateOnFiber (node_modules/react-dom/cjs/react-dom-client.development.js:16409:11)
at dispatchSetStateInternal (node_modules/react-dom/cjs/react-dom-client.development.js:9170:13)
at dispatchSetState (node_modules/react-dom/cjs/react-dom-client.development.js:9127:7)
at setDate (src/components/InterviewPrep.tsx:426:7)
console.error
An update to ApplicationFollowUp inside a test was not wrapped in act(...).
When testing, code that causes React state updates should be wrapped into act(...):
act(() => {
/* fire events that update state */
});
/* assert on the output */
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
425 | setData(result);
426 | setDate(result.followUpAt ? result.followUpAt.slice(0, 10) : "");
> 427 | setAction(result.nextAction ?? "");
| ^
428 | setError(null);
429 | } catch (err) {
430 | setError({ cause: err, fallback: "interviewFollowUpLoadFailed" });
at node_modules/react-dom/cjs/react-dom-client.development.js:18758:19
at runWithFiberInDEV (node_modules/react-dom/cjs/react-dom-client.development.js:874:13)
at warnIfUpdatesNotWrappedWithActDEV (node_modules/react-dom/cjs/react-dom-client.development.js:18757:9)
at scheduleUpdateOnFiber (node_modules/react-dom/cjs/react-dom-client.development.js:16409:11)
at dispatchSetStateInternal (node_modules/react-dom/cjs/react-dom-client.development.js:9170:13)
at dispatchSetState (node_modules/react-dom/cjs/react-dom-client.development.js:9127:7)
at setAction (src/components/InterviewPrep.tsx:427:7)
console.error
An update to ApplicationFollowUp inside a test was not wrapped in act(...).
When testing, code that causes React state updates should be wrapped into act(...):
act(() => {
/* fire events that update state */
});
/* assert on the output */
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
426 | setDate(result.followUpAt ? result.followUpAt.slice(0, 10) : "");
427 | setAction(result.nextAction ?? "");
> 428 | setError(null);
| ^
429 | } catch (err) {
430 | setError({ cause: err, fallback: "interviewFollowUpLoadFailed" });
431 | } finally {
at node_modules/react-dom/cjs/react-dom-client.development.js:18758:19
at runWithFiberInDEV (node_modules/react-dom/cjs/react-dom-client.development.js:874:13)
at warnIfUpdatesNotWrappedWithActDEV (node_modules/react-dom/cjs/react-dom-client.development.js:18757:9)
at scheduleUpdateOnFiber (node_modules/react-dom/cjs/react-dom-client.development.js:16409:11)
at dispatchSetStateInternal (node_modules/react-dom/cjs/react-dom-client.development.js:9170:13)
at dispatchSetState (node_modules/react-dom/cjs/react-dom-client.development.js:9127:7)
at setError (src/components/InterviewPrep.tsx:428:7)
console.error
An update to ApplicationFollowUp inside a test was not wrapped in act(...).
When testing, code that causes React state updates should be wrapped into act(...):
act(() => {
/* fire events that update state */
});
/* assert on the output */
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
430 | setError({ cause: err, fallback: "interviewFollowUpLoadFailed" });
431 | } finally {
> 432 | setLoading(false);
| ^
433 | }
434 | }, [jobId]);
435 |
at node_modules/react-dom/cjs/react-dom-client.development.js:18758:19
at runWithFiberInDEV (node_modules/react-dom/cjs/react-dom-client.development.js:874:13)
at warnIfUpdatesNotWrappedWithActDEV (node_modules/react-dom/cjs/react-dom-client.development.js:18757:9)
at scheduleUpdateOnFiber (node_modules/react-dom/cjs/react-dom-client.development.js:16409:11)
at dispatchSetStateInternal (node_modules/react-dom/cjs/react-dom-client.development.js:9170:13)
at dispatchSetState (node_modules/react-dom/cjs/react-dom-client.development.js:9127:7)
at setLoading (src/components/InterviewPrep.tsx:432:7)
console.error
An update to ApplicationInterviewPrep inside a test was not wrapped in act(...).
When testing, code that causes React state updates should be wrapped into act(...):
act(() => {
/* fire events that update state */
});
/* assert on the output */
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
55 | setLoading(true);
56 | try {
> 57 | setBoard(await interviewPrepApi.get(jobId));
| ^
58 | setError(null);
59 | } catch (err) {
60 | setError({ cause: err, fallback: "interviewPrepLoadFailed" });
at node_modules/react-dom/cjs/react-dom-client.development.js:18758:19
at runWithFiberInDEV (node_modules/react-dom/cjs/react-dom-client.development.js:874:13)
at warnIfUpdatesNotWrappedWithActDEV (node_modules/react-dom/cjs/react-dom-client.development.js:18757:9)
at scheduleUpdateOnFiber (node_modules/react-dom/cjs/react-dom-client.development.js:16409:11)
at dispatchSetStateInternal (node_modules/react-dom/cjs/react-dom-client.development.js:9170:13)
at dispatchSetState (node_modules/react-dom/cjs/react-dom-client.development.js:9127:7)
at setBoard (src/components/InterviewPrep.tsx:57:7)
console.error
An update to ApplicationInterviewPrep inside a test was not wrapped in act(...).
When testing, code that causes React state updates should be wrapped into act(...):
act(() => {
/* fire events that update state */
});
/* assert on the output */
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
56 | try {
57 | setBoard(await interviewPrepApi.get(jobId));
> 58 | setError(null);
| ^
59 | } catch (err) {
60 | setError({ cause: err, fallback: "interviewPrepLoadFailed" });
61 | } finally {
at node_modules/react-dom/cjs/react-dom-client.development.js:18758:19
at runWithFiberInDEV (node_modules/react-dom/cjs/react-dom-client.development.js:874:13)
at warnIfUpdatesNotWrappedWithActDEV (node_modules/react-dom/cjs/react-dom-client.development.js:18757:9)
at scheduleUpdateOnFiber (node_modules/react-dom/cjs/react-dom-client.development.js:16409:11)
at dispatchSetStateInternal (node_modules/react-dom/cjs/react-dom-client.development.js:9170:13)
at dispatchSetState (node_modules/react-dom/cjs/react-dom-client.development.js:9127:7)
at setError (src/components/InterviewPrep.tsx:58:7)
console.error
An update to ApplicationInterviewPrep inside a test was not wrapped in act(...).
When testing, code that causes React state updates should be wrapped into act(...):
act(() => {
/* fire events that update state */
});
/* assert on the output */
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
60 | setError({ cause: err, fallback: "interviewPrepLoadFailed" });
61 | } finally {
> 62 | setLoading(false);
| ^
63 | }
64 | }, [jobId]);
65 |
at node_modules/react-dom/cjs/react-dom-client.development.js:18758:19
at runWithFiberInDEV (node_modules/react-dom/cjs/react-dom-client.development.js:874:13)
at warnIfUpdatesNotWrappedWithActDEV (node_modules/react-dom/cjs/react-dom-client.development.js:18757:9)
at scheduleUpdateOnFiber (node_modules/react-dom/cjs/react-dom-client.development.js:16409:11)
at dispatchSetStateInternal (node_modules/react-dom/cjs/react-dom-client.development.js:9170:13)
at dispatchSetState (node_modules/react-dom/cjs/react-dom-client.development.js:9127:7)
at setLoading (src/components/InterviewPrep.tsx:62:7)
FAIL src/interview-prep.test.tsx (11.48 s)
● pending linked CV is loading, not an empty selection (en)
TestingLibraryElementError: Unable to find an accessible element with the role "progressbar" and name "Loading..."
Here are the accessible roles:
banner:
Name "":
<header
class="MuiBox-root css-163u82n"
/>
--------------------------------------------------
heading:
Name "AI interview coach":
<h3
class="MuiTypography-root MuiTypography-sectionTitle css-uf4832-MuiTypography-root"
id="_r_3_"
/>
--------------------------------------------------
paragraph:
Name "":
<p
class="MuiTypography-root MuiTypography-pageDescription css-1sqgc3a-MuiTypography-root"
/>
--------------------------------------------------status:
Name "":
<span
aria-atomic="true"
aria-live="polite"
class="MuiBox-root css-ty8jgw"
role="status"
/>
--------------------------------------------------
alert:
Name "":
<div
class="MuiPaper-root MuiPaper-elevation MuiPaper-rounded MuiPaper-elevation0 MuiAlert-root MuiAlert-colorInfo MuiAlert-standardInfo MuiAlert-standard css-1j6ncn2-MuiPaper-root-MuiAlert-root"
role="alert"
style="--Paper-shadow: none;"
/>
--------------------------------------------------
combobox:
Name "Preparation focus":
<div
aria-expanded="false"
aria-haspopup="listbox"
aria-labelledby="_r_4_-label _r_4_"
class="MuiSelect-select MuiSelect-outlined MuiInputBase-input MuiOutlinedInput-input MuiInputBase-inputSizeSmall css-19marfc-MuiNativeSelect-root-MuiSelect-select-MuiInputBase-input-MuiOutlinedInput-input"
id="_r_4_"
role="combobox"
tabindex="0"
/>
Name "Document language":
<div
aria-expanded="false"
aria-haspopup="listbox"
aria-labelledby="_r_6_-label _r_6_"
class="MuiSelect-select MuiSelect-outlined MuiInputBase-input MuiOutlinedInput-input MuiInputBase-inputSizeSmall css-19marfc-MuiNativeSelect-root-MuiSelect-select-MuiInputBase-input-MuiOutlinedInput-input"
id="_r_6_"
role="combobox"
tabindex="0"
/>
--------------------------------------------------
textbox:
Name "Additional instructions":
<textarea
aria-invalid="false"
class="MuiInputBase-input MuiOutlinedInput-input MuiInputBase-inputMultiline css-1cuox7w-MuiInputBase-input-MuiOutlinedInput-input"
id="_r_8_"
style="height: 0px; overflow: hidden;"
/>
--------------------------------------------------
button:
Name "Generate preparation":
<button
class="MuiButtonBase-root MuiButton-root MuiButton-contained MuiButton-containedPrimary MuiButton-sizeMedium MuiButton-containedSizeMedium MuiButton-colorPrimary Mui-disabled MuiButton-root MuiButton-contained MuiButton-containedPrimary MuiButton-sizeMedium MuiButton-containedSizeMedium MuiButton-colorPrimary css-71rffq-MuiButtonBase-root-MuiButton-root"
disabled=""
tabindex="-1"
type="button"
/>
--------------------------------------------------
Ignored nodes: comments, script, style
<section
aria-labelledby="_r_3_"
class="MuiBox-root css-rw0fp9"
>
<header
class="MuiBox-root css-163u82n"
>
<div
class="MuiBox-root css-14m33b5"
>
<h3
class="MuiTypography-root MuiTypography-sectionTitle css-uf4832-MuiTypography-root"
id="_r_3_"
>
AI interview coach
</h3>
<p
class="MuiTypography-root MuiTypography-pageDescription css-1sqgc3a-MuiTypography-root"
>
Uses the linked CV, job advert and application analysis. Suggestions never overwrite your notes.
</p>
</div>
</header>
<div
class="MuiBox-root css-31l7gp"
>
<span
aria-atomic="true"
aria-live="polite"
class="MuiBox-root css-ty8jgw"
role="status"
/>
<div
class="MuiStack-root css-1sazv7p-MuiStack-root"
>
<div
class="MuiPaper-root MuiPaper-elevation MuiPaper-rounded MuiPaper-elevation0 MuiAlert-root MuiAlert-colorInfo MuiAlert-standardInfo MuiAlert-standard css-1j6ncn2-MuiPaper-root-MuiAlert-root"
role="alert"
style="--Paper-shadow: none;"
>
<div
class="MuiAlert-icon css-1wrdnka-MuiAlert-icon"
>
<svg
aria-hidden="true"
class="MuiSvgIcon-root MuiSvgIcon-fontSizeInherit css-1ckov0h-MuiSvgIcon-root"
data-testid="InfoOutlinedIcon"
focusable="false"
viewBox="0 0 24 24"
>
<path
d="M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"
/>
</svg>
</div>
<div
class="MuiAlert-message css-zioonp-MuiAlert-message"
>
Select a CV on the CV tab before generating tailored interview preparation.
</div>
</div>
<div
class="MuiStack-root css-10svwat-MuiStack-root"
>
<div
class="MuiFormControl-root MuiTextField-root css-i9wwiv-MuiFormControl-root-MuiTextField-root"
>
<label
class="MuiFormLabel-root MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated MuiInputLabel-shrink MuiInputLabel-sizeSmall MuiInputLabel-outlined MuiFormLabel-colorPrimary MuiFormLabel-filled MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated MuiInputLabel-shrink MuiInputLabel-sizeSmall MuiInputLabel-outlined css-fluw5i-MuiFormLabel-root-MuiInputLabel-root"
data-shrink="true"
for="_r_4_"
id="_r_4_-label"
>
Preparation focus
</label>
<div
class="MuiInputBase-root MuiOutlinedInput-root MuiInputBase-colorPrimary MuiInputBase-formControl MuiInputBase-sizeSmall MuiSelect-root css-1tft0rd-MuiInputBase-root-MuiOutlinedInput-root"
>
<div
aria-expanded="false"
aria-haspopup="listbox"
aria-labelledby="_r_4_-label _r_4_"
class="MuiSelect-select MuiSelect-outlined MuiInputBase-input MuiOutlinedInput-input MuiInputBase-inputSizeSmall css-19marfc-MuiNativeSelect-root-MuiSelect-select-MuiInputBase-input-MuiOutlinedInput-input"
id="_r_4_"
role="combobox"
tabindex="0"
>
Complete interview brief
</div>
<input
aria-hidden="true"
aria-invalid="false"
class="MuiSelect-nativeInput css-j0riat-MuiSelect-nativeInput"
tabindex="-1"
value="full"
/>
<svg
aria-hidden="true"
class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium MuiSelect-icon MuiSelect-iconOutlined css-1rfqz7c-MuiSvgIcon-root-MuiNativeSelect-root-MuiSelect-icon"
data-testid="ArrowDropDownIcon"
focusable="false"
viewBox="0 0 24 24"
>
<path
d="M7 10l5 5 5-5z"
/>
</svg>
<fieldset
aria-hidden="true"
class="MuiOutlinedInput-notchedOutline css-18p5xg2-MuiNotchedOutlined-root-MuiOutlinedInput-notchedOutline"
>
<legend
class="css-ex8a5f-MuiNotchedOutlined-root"
>
<span>
Preparation focus
</span>
</legend>
</fieldset>
</div>
</div>
<div
class="MuiFormControl-root MuiTextField-root css-1saqx64-MuiFormControl-root-MuiTextField-root"
>
<label
class="MuiFormLabel-root MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated MuiInputLabel-shrink MuiInputLabel-sizeSmall MuiInputLabel-outlined MuiFormLabel-colorPrimary MuiFormLabel-filled MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated MuiInputLabel-shrink MuiInputLabel-sizeSmall MuiInputLabel-outlined css-fluw5i-MuiFormLabel-root-MuiInputLabel-root"
data-shrink="true"
for="_r_6_"
...
328 | render(<ApplicationInterviewPrep jobId={7} />);
329 | const assistant = within(screen.getByRole('region', { name: translations[language].interviewAiTitle }));
> 330 | expect(assistant.getByRole('progressbar', { name: translations[language].loading })).toBeVisible();
| ^
331 | expect(assistant.queryByText(translations[language].interviewAiSelectCv)).not.toBeInTheDocument();
332 | expect(assistant.getByRole('button', { name: translations[language].interviewAiGenerate })).toBeDisabled();
333 | await act(async () => finish({ data: { attachedVariantId: null, attachedVariantName: null } }));
at Object.getElementError (node_modules/@testing-library/dom/dist/config.js:37:19)
at node_modules/@testing-library/dom/dist/query-helpers.js:76:38
at node_modules/@testing-library/dom/dist/query-helpers.js:52:17
at node_modules/@testing-library/dom/dist/query-helpers.js:95:19
at getByRole (src/interview-prep.test.tsx:330:20)
● pending linked CV is loading, not an empty selection (nb)
TestingLibraryElementError: Unable to find an accessible element with the role "progressbar" and name "Laster..."
Here are the accessible roles:
banner:
Name "":
<header
class="MuiBox-root css-163u82n"
/>
--------------------------------------------------
heading:
Name "AI-intervjutrening":
<h3
class="MuiTypography-root MuiTypography-sectionTitle css-uf4832-MuiTypography-root"
id="_r_f_"
/>
--------------------------------------------------
paragraph:
Name "":
<p
class="MuiTypography-root MuiTypography-pageDescription css-1sqgc3a-MuiTypography-root"
/>
--------------------------------------------------status:
Name "":
<span
aria-atomic="true"
aria-live="polite"
class="MuiBox-root css-ty8jgw"
role="status"
/>
--------------------------------------------------
alert:
Name "":
<div
class="MuiPaper-root MuiPaper-elevation MuiPaper-rounded MuiPaper-elevation0 MuiAlert-root MuiAlert-colorInfo MuiAlert-standardInfo MuiAlert-standard css-1j6ncn2-MuiPaper-root-MuiAlert-root"
role="alert"
style="--Paper-shadow: none;"
/>
--------------------------------------------------
combobox:
Name "Fokus for forberedelsen":
<div
aria-expanded="false"
aria-haspopup="listbox"
aria-labelledby="_r_g_-label _r_g_"
class="MuiSelect-select MuiSelect-outlined MuiInputBase-input MuiOutlinedInput-input MuiInputBase-inputSizeSmall css-19marfc-MuiNativeSelect-root-MuiSelect-select-MuiInputBase-input-MuiOutlinedInput-input"
id="_r_g_"
role="combobox"
tabindex="0"
/>
Name "Dokumentspråk":
<div
aria-expanded="false"
aria-haspopup="listbox"
aria-labelledby="_r_i_-label _r_i_"
class="MuiSelect-select MuiSelect-outlined MuiInputBase-input MuiOutlinedInput-input MuiInputBase-inputSizeSmall css-19marfc-MuiNativeSelect-root-MuiSelect-select-MuiInputBase-input-MuiOutlinedInput-input"
id="_r_i_"
role="combobox"
tabindex="0"
/>
--------------------------------------------------
textbox:
Name "Tilleggsinstruksjoner":
<textarea
aria-invalid="false"
class="MuiInputBase-input MuiOutlinedInput-input MuiInputBase-inputMultiline css-1cuox7w-MuiInputBase-input-MuiOutlinedInput-input"
id="_r_k_"
style="height: 0px; overflow: hidden;"
/>
--------------------------------------------------
button:
Name "Generer forberedelse":
<button
class="MuiButtonBase-root MuiButton-root MuiButton-contained MuiButton-containedPrimary MuiButton-sizeMedium MuiButton-containedSizeMedium MuiButton-colorPrimary Mui-disabled MuiButton-root MuiButton-contained MuiButton-containedPrimary MuiButton-sizeMedium MuiButton-containedSizeMedium MuiButton-colorPrimary css-71rffq-MuiButtonBase-root-MuiButton-root"
disabled=""
tabindex="-1"
type="button"
/>
--------------------------------------------------
Ignored nodes: comments, script, style
<section
aria-labelledby="_r_f_"
class="MuiBox-root css-rw0fp9"
>
<header
class="MuiBox-root css-163u82n"
>
<div
class="MuiBox-root css-14m33b5"
>
<h3
class="MuiTypography-root MuiTypography-sectionTitle css-uf4832-MuiTypography-root"
id="_r_f_"
>
AI-intervjutrening
</h3>
<p
class="MuiTypography-root MuiTypography-pageDescription css-1sqgc3a-MuiTypography-root"
>
Bruker tilknyttet CV, stillingsannonse og søknadsanalyse. Forslag overskriver aldri notatene dine.
</p>
</div>
</header>
<div
class="MuiBox-root css-31l7gp"
>
<span
aria-atomic="true"
aria-live="polite"
class="MuiBox-root css-ty8jgw"
role="status"
/>
<div
class="MuiStack-root css-1sazv7p-MuiStack-root"
>
<div
class="MuiPaper-root MuiPaper-elevation MuiPaper-rounded MuiPaper-elevation0 MuiAlert-root MuiAlert-colorInfo MuiAlert-standardInfo MuiAlert-standard css-1j6ncn2-MuiPaper-root-MuiAlert-root"
role="alert"
style="--Paper-shadow: none;"
>
<div
class="MuiAlert-icon css-1wrdnka-MuiAlert-icon"
>
<svg
aria-hidden="true"
class="MuiSvgIcon-root MuiSvgIcon-fontSizeInherit css-1ckov0h-MuiSvgIcon-root"
data-testid="InfoOutlinedIcon"
focusable="false"
viewBox="0 0 24 24"
>
<path
d="M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"
/>
</svg>
</div>
<div
class="MuiAlert-message css-zioonp-MuiAlert-message"
>
Velg en CV i CV-fanen før du genererer tilpasset intervjuforberedelse.
</div>
</div>
<div
class="MuiStack-root css-10svwat-MuiStack-root"
>
<div
class="MuiFormControl-root MuiTextField-root css-i9wwiv-MuiFormControl-root-MuiTextField-root"
>
<label
class="MuiFormLabel-root MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated MuiInputLabel-shrink MuiInputLabel-sizeSmall MuiInputLabel-outlined MuiFormLabel-colorPrimary MuiFormLabel-filled MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated MuiInputLabel-shrink MuiInputLabel-sizeSmall MuiInputLabel-outlined css-fluw5i-MuiFormLabel-root-MuiInputLabel-root"
data-shrink="true"
for="_r_g_"
id="_r_g_-label"
>
Fokus for forberedelsen
</label>
<div
class="MuiInputBase-root MuiOutlinedInput-root MuiInputBase-colorPrimary MuiInputBase-formControl MuiInputBase-sizeSmall MuiSelect-root css-1tft0rd-MuiInputBase-root-MuiOutlinedInput-root"
>
<div
aria-expanded="false"
aria-haspopup="listbox"
aria-labelledby="_r_g_-label _r_g_"
class="MuiSelect-select MuiSelect-outlined MuiInputBase-input MuiOutlinedInput-input MuiInputBase-inputSizeSmall css-19marfc-MuiNativeSelect-root-MuiSelect-select-MuiInputBase-input-MuiOutlinedInput-input"
id="_r_g_"
role="combobox"
tabindex="0"
>
Komplett intervjuforberedelse
</div>
<input
aria-hidden="true"
aria-invalid="false"
class="MuiSelect-nativeInput css-j0riat-MuiSelect-nativeInput"
tabindex="-1"
value="full"
/>
<svg
aria-hidden="true"
class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium MuiSelect-icon MuiSelect-iconOutlined css-1rfqz7c-MuiSvgIcon-root-MuiNativeSelect-root-MuiSelect-icon"
data-testid="ArrowDropDownIcon"
focusable="false"
viewBox="0 0 24 24"
>
<path
d="M7 10l5 5 5-5z"
/>
</svg>
<fieldset
aria-hidden="true"
class="MuiOutlinedInput-notchedOutline css-18p5xg2-MuiNotchedOutlined-root-MuiOutlinedInput-notchedOutline"
>
<legend
class="css-ex8a5f-MuiNotchedOutlined-root"
>
<span>
Fokus for forberedelsen
</span>
</legend>
</fieldset>
</div>
</div>
<div
class="MuiFormControl-root MuiTextField-root css-1saqx64-MuiFormControl-root-MuiTextField-root"
>
<label
class="MuiFormLabel-root MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated MuiInputLabel-shrink MuiInputLabel-sizeSmall MuiInputLabel-outlined MuiFormLabel-colorPrimary MuiFormLabel-filled MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated MuiInputLabel-shrink MuiInputLabel-sizeSmall MuiInputLabel-outlined css-fluw5i-MuiFormLabel-root-MuiInputLabel-root"
data-shrink="true"
for="_r_i_"...
328 | render(<ApplicationInterviewPrep jobId={7} />);
329 | const assistant = within(screen.getByRole('region', { name: translations[language].interviewAiTitle }));
> 330 | expect(assistant.getByRole('progressbar', { name: translations[language].loading })).toBeVisible();
| ^
331 | expect(assistant.queryByText(translations[language].interviewAiSelectCv)).not.toBeInTheDocument();
332 | expect(assistant.getByRole('button', { name: translations[language].interviewAiGenerate })).toBeDisabled();
333 | await act(async () => finish({ data: { attachedVariantId: null, attachedVariantName: null } }));
at Object.getElementError (node_modules/@testing-library/dom/dist/config.js:37:19)
at node_modules/@testing-library/dom/dist/query-helpers.js:76:38
at node_modules/@testing-library/dom/dist/query-helpers.js:52:17
at node_modules/@testing-library/dom/dist/query-helpers.js:95:19
at getByRole (src/interview-prep.test.tsx:330:20)
● linked-CV failure has current-language GET-only retry and preserves instructions (en)
Unable to find an element with the text: Could not load this section.. This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible.
Ignored nodes: comments, script, style
<section
aria-labelledby="_r_r_"
class="MuiBox-root css-rw0fp9"
>
<header
class="MuiBox-root css-163u82n"
>
<div
class="MuiBox-root css-14m33b5"
>
<h3
class="MuiTypography-root MuiTypography-sectionTitle css-uf4832-MuiTypography-root"
id="_r_r_"
>
AI interview coach
</h3>
<p
class="MuiTypography-root MuiTypography-pageDescription css-1sqgc3a-MuiTypography-root"
>
Uses the linked CV, job advert and application analysis. Suggestions never overwrite your notes.
</p>
</div>
</header>
<div
class="MuiBox-root css-31l7gp"
>
<span
aria-atomic="true"
aria-live="polite"
class="MuiBox-root css-ty8jgw"
role="status"
/>
<div
class="MuiStack-root css-1sazv7p-MuiStack-root"
>
<div
class="MuiPaper-root MuiPaper-elevation MuiPaper-rounded MuiPaper-elevation0 MuiAlert-root MuiAlert-colorInfo MuiAlert-standardInfo MuiAlert-standard css-1j6ncn2-MuiPaper-root-MuiAlert-root"
role="alert"
style="--Paper-shadow: none;"
>
<div
class="MuiAlert-icon css-1wrdnka-MuiAlert-icon"
>
<svg
aria-hidden="true"
class="MuiSvgIcon-root MuiSvgIcon-fontSizeInherit css-1ckov0h-MuiSvgIcon-root"
data-testid="InfoOutlinedIcon"
focusable="false"
viewBox="0 0 24 24"
>
<path
d="M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"
/>
</svg>
</div>
<div
class="MuiAlert-message css-zioonp-MuiAlert-message"
>
Select a CV on the CV tab before generating tailored interview preparation.
</div>
</div>
<div
class="MuiStack-root css-10svwat-MuiStack-root"
>
<div
class="MuiFormControl-root MuiTextField-root css-i9wwiv-MuiFormControl-root-MuiTextField-root"
>
<label
class="MuiFormLabel-root MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated MuiInputLabel-shrink MuiInputLabel-sizeSmall MuiInputLabel-outlined MuiFormLabel-colorPrimary MuiFormLabel-filled MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated MuiInputLabel-shrink MuiInputLabel-sizeSmall MuiInputLabel-outlined css-fluw5i-MuiFormLabel-root-MuiInputLabel-root"
data-shrink="true"
for="_r_s_"
id="_r_s_-label"
>
Preparation focus
</label>
<div
class="MuiInputBase-root MuiOutlinedInput-root MuiInputBase-colorPrimary MuiInputBase-formControl MuiInputBase-sizeSmall MuiSelect-root css-1tft0rd-MuiInputBase-root-MuiOutlinedInput-root"
>
<div
aria-expanded="false"
aria-haspopup="listbox"
aria-labelledby="_r_s_-label _r_s_"
class="MuiSelect-select MuiSelect-outlined MuiInputBase-input MuiOutlinedInput-input MuiInputBase-inputSizeSmall css-19marfc-MuiNativeSelect-root-MuiSelect-select-MuiInputBase-input-MuiOutlinedInput-input"
id="_r_s_"
role="combobox"
tabindex="0"
>
Complete interview brief
</div>
<input
aria-hidden="true"
aria-invalid="false"
class="MuiSelect-nativeInput css-j0riat-MuiSelect-nativeInput"
tabindex="-1"
value="full"
/>
<svg
aria-hidden="true"
class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium MuiSelect-icon MuiSelect-iconOutlined css-1rfqz7c-MuiSvgIcon-root-MuiNativeSelect-root-MuiSelect-icon"
data-testid="ArrowDropDownIcon"
focusable="false"
viewBox="0 0 24 24"
>
<path
d="M7 10l5 5 5-5z"
/>
</svg>
<fieldset
aria-hidden="true"
class="MuiOutlinedInput-notchedOutline css-18p5xg2-MuiNotchedOutlined-root-MuiOutlinedInput-notchedOutline"
>
<legend
class="css-ex8a5f-MuiNotchedOutlined-root"
>
<span>
Preparation focus
</span>
</legend>
</fieldset>
</div>
</div>
<div
class="MuiFormControl-root MuiTextField-root css-1saqx64-MuiFormControl-root-MuiTextField-root"
>
<label
class="MuiFormLabel-root MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated MuiInputLabel-shrink MuiInputLabel-sizeSmall MuiInputLabel-outlined MuiFormLabel-colorPrimary MuiFormLabel-filled MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated MuiInputLabel-shrink MuiInputLabel-sizeSmall MuiInputLabel-outlined css-fluw5i-MuiFormLabel-root-MuiInputLabel-root"
data-shrink="true"
for="_r_u_"
...
347 | const region = screen.getByRole('region', { name: translations[from].interviewAiTitle });
348 | const assistant = within(region);
> 349 | expect(await assistant.findByText(translations[from].assetsLoadFailed)).toBeVisible();
| ^
350 | expect(assistant.queryByText(translations[from].interviewAiSelectCv)).not.toBeInTheDocument();
351 | fireEvent.change(assistant.getByLabelText(translations[from].coverAiAdditionalInstructions), { target: { value: 'Keep my context Øresund' } });
352 | await act(async () => window.dispatchEvent(new StorageEvent('storage', { key: 'uiLanguage', newValue: to })));
at waitForWrapper (node_modules/@testing-library/dom/dist/wait-for.js:163:27)
at node_modules/@testing-library/dom/dist/query-helpers.js:86:33
at findByText (src/interview-prep.test.tsx:349:26)
● linked-CV failure has current-language GET-only retry and preserves instructions (nb)
Unable to find an element with the text: Kunne ikke laste denne delen.. This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible.
Ignored nodes: comments, script, style
<section
aria-labelledby="_r_1l_"
class="MuiBox-root css-rw0fp9"
>
<header
class="MuiBox-root css-163u82n"
>
<div
class="MuiBox-root css-14m33b5"
>
<h3
class="MuiTypography-root MuiTypography-sectionTitle css-uf4832-MuiTypography-root"
id="_r_1l_"
>
AI-intervjutrening
</h3>
<p
class="MuiTypography-root MuiTypography-pageDescription css-1sqgc3a-MuiTypography-root"
>
Bruker tilknyttet CV, stillingsannonse og søknadsanalyse. Forslag overskriver aldri notatene dine.
</p>
</div>
</header>
<div
class="MuiBox-root css-31l7gp"
>
<span
aria-atomic="true"
aria-live="polite"
class="MuiBox-root css-ty8jgw"
role="status"
/>
<div
class="MuiStack-root css-1sazv7p-MuiStack-root"
>
<div
class="MuiPaper-root MuiPaper-elevation MuiPaper-rounded MuiPaper-elevation0 MuiAlert-root MuiAlert-colorInfo MuiAlert-standardInfo MuiAlert-standard css-1j6ncn2-MuiPaper-root-MuiAlert-root"
role="alert"
style="--Paper-shadow: none;"
>
<div
class="MuiAlert-icon css-1wrdnka-MuiAlert-icon"
>
<svg
aria-hidden="true"
class="MuiSvgIcon-root MuiSvgIcon-fontSizeInherit css-1ckov0h-MuiSvgIcon-root"
data-testid="InfoOutlinedIcon"
focusable="false"
viewBox="0 0 24 24"
>
<path
d="M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"
/>
</svg>
</div>
<div
class="MuiAlert-message css-zioonp-MuiAlert-message"
>
Velg en CV i CV-fanen før du genererer tilpasset intervjuforberedelse.
</div>
</div>
<div
class="MuiStack-root css-10svwat-MuiStack-root"
>
<div
class="MuiFormControl-root MuiTextField-root css-i9wwiv-MuiFormControl-root-MuiTextField-root"
>
<label
class="MuiFormLabel-root MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated MuiInputLabel-shrink MuiInputLabel-sizeSmall MuiInputLabel-outlined MuiFormLabel-colorPrimary MuiFormLabel-filled MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated MuiInputLabel-shrink MuiInputLabel-sizeSmall MuiInputLabel-outlined css-fluw5i-MuiFormLabel-root-MuiInputLabel-root"
data-shrink="true"
for="_r_1m_"
id="_r_1m_-label"
>
Fokus for forberedelsen
</label>
<div
class="MuiInputBase-root MuiOutlinedInput-root MuiInputBase-colorPrimary MuiInputBase-formControl MuiInputBase-sizeSmall MuiSelect-root css-1tft0rd-MuiInputBase-root-MuiOutlinedInput-root"
>
<div
aria-expanded="false"
aria-haspopup="listbox"
aria-labelledby="_r_1m_-label _r_1m_"
class="MuiSelect-select MuiSelect-outlined MuiInputBase-input MuiOutlinedInput-input MuiInputBase-inputSizeSmall css-19marfc-MuiNativeSelect-root-MuiSelect-select-MuiInputBase-input-MuiOutlinedInput-input"
id="_r_1m_"
role="combobox"
tabindex="0"
>
Komplett intervjuforberedelse
</div>
<input
aria-hidden="true"
aria-invalid="false"
class="MuiSelect-nativeInput css-j0riat-MuiSelect-nativeInput"
tabindex="-1"
value="full"
/>
<svg
aria-hidden="true"
class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium MuiSelect-icon MuiSelect-iconOutlined css-1rfqz7c-MuiSvgIcon-root-MuiNativeSelect-root-MuiSelect-icon"
data-testid="ArrowDropDownIcon"
focusable="false"
viewBox="0 0 24 24"
>
<path
d="M7 10l5 5 5-5z"
/>
</svg>
<fieldset
aria-hidden="true"
class="MuiOutlinedInput-notchedOutline css-18p5xg2-MuiNotchedOutlined-root-MuiOutlinedInput-notchedOutline"
>
<legend
class="css-ex8a5f-MuiNotchedOutlined-root"
>
<span>
Fokus for forberedelsen
</span>
</legend>
</fieldset>
</div>
</div>
<div
class="MuiFormControl-root MuiTextField-root css-1saqx64-MuiFormControl-root-MuiTextField-root"
>
<label
class="MuiFormLabel-root MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated MuiInputLabel-shrink MuiInputLabel-sizeSmall MuiInputLabel-outlined MuiFormLabel-colorPrimary MuiFormLabel-filled MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated MuiInputLabel-shrink MuiInputLabel-sizeSmall MuiInputLabel-outlined css-fluw5i-MuiFormLabel-root-MuiInputLabel-root"
data-shrink="true"
for=...
347 | const region = screen.getByRole('region', { name: translations[from].interviewAiTitle });
348 | const assistant = within(region);
> 349 | expect(await assistant.findByText(translations[from].assetsLoadFailed)).toBeVisible();
| ^
350 | expect(assistant.queryByText(translations[from].interviewAiSelectCv)).not.toBeInTheDocument();
351 | fireEvent.change(assistant.getByLabelText(translations[from].coverAiAdditionalInstructions), { target: { value: 'Keep my context Øresund' } });
352 | await act(async () => window.dispatchEvent(new StorageEvent('storage', { key: 'uiLanguage', newValue: to })));
at waitForWrapper (node_modules/@testing-library/dom/dist/wait-for.js:163:27)
at node_modules/@testing-library/dom/dist/query-helpers.js:86:33
at findByText (src/interview-prep.test.tsx:349:26)
● changing application hides the previous linked CV while the new read is pending (en)
expect(element).not.toBeInTheDocument()
expected document not to contain element, found <strong>Backend CV</strong> instead
372 | view.rerender(<I18nProvider><ConfirmProvider><ApplicationInterviewPrep jobId={8} /></ConfirmProvider></I18nProvider>);
373 | const assistant = within(screen.getByRole('region', { name: translations[language].interviewAiTitle }));
> 374 | expect(assistant.queryByText('Backend CV')).not.toBeInTheDocument();
| ^
375 | expect(assistant.getByRole('progressbar', { name: translations[language].loading })).toBeVisible();
376 | await act(async () => finish({ data: { attachedVariantId: 8, attachedVariantName: 'Current application CV' } }));
377 | expect(await assistant.findByText('Current application CV')).toBeVisible();
at toBeInTheDocument (src/interview-prep.test.tsx:374:51)
● changing application hides the previous linked CV while the new read is pending (nb)
expect(element).not.toBeInTheDocument()
expected document not to contain element, found <strong>Backend CV</strong> instead
372 | view.rerender(<I18nProvider><ConfirmProvider><ApplicationInterviewPrep jobId={8} /></ConfirmProvider></I18nProvider>);
373 | const assistant = within(screen.getByRole('region', { name: translations[language].interviewAiTitle }));
> 374 | expect(assistant.queryByText('Backend CV')).not.toBeInTheDocument();
| ^
375 | expect(assistant.getByRole('progressbar', { name: translations[language].loading })).toBeVisible();
376 | await act(async () => finish({ data: { attachedVariantId: 8, attachedVariantName: 'Current application CV' } }));
377 | expect(await assistant.findByText('Current application CV')).toBeVisible();
at toBeInTheDocument (src/interview-prep.test.tsx:374:51)
Test Suites: 1 failed, 1 total
Tests: 6 failed, 40 skipped, 46 total
Snapshots: 0 total
Time: 12.288 s
Ran all test suites matching src/interview-prep.test.tsx with tests matching "pending linked CV|linked-CV failure has|changing application hides".
Test results written to: E:\Storage\Projects\Active\temp docs\jobjakt-local-build\interview-cv-read-red.json