Files
jobtrackingapp/docs/ui-modernisation/evidence/letter-restore-dialog/green.json
T

2 lines
33 KiB
JSON

{"numFailedTestSuites":1,"numFailedTests":2,"numPassedTestSuites":1,"numPassedTests":71,"numPendingTestSuites":0,"numPendingTests":0,"numRuntimeErrorTestSuites":0,"numTodoTests":0,"numTotalTestSuites":2,"numTotalTests":73,"openHandles":[],"snapshot":{"added":0,"didUpdate":false,"failure":false,"filesAdded":0,"filesRemoved":0,"filesRemovedList":[],"filesUnmatched":0,"filesUpdated":0,"matched":0,"total":0,"unchecked":0,"uncheckedKeysByFile":[],"unmatched":0,"updated":0},"startTime":1794936318262,"success":false,"testResults":[{"assertionResults":[{"ancestorTitles":[],"duration":149,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"frozen attachment size follows UI language without changing stored package data","invocations":1,"location":null,"numPassingAsserts":5,"retryReasons":[],"startAt":1794936321937,"status":"passed","title":"frozen attachment size follows UI language without changing stored package data"},{"ancestorTitles":[],"duration":360,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"[P7-11 tailoring] generated metadata and known history enums follow locale while evidence, unknown metadata and dirty prose stay verbatim","invocations":1,"location":null,"numPassingAsserts":13,"retryReasons":[],"startAt":1794936322087,"status":"passed","title":"[P7-11 tailoring] generated metadata and known history enums follow locale while evidence, unknown metadata and dirty prose stay verbatim"},{"ancestorTitles":[],"duration":96,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"document package history is read-only and separates captured notes from answers","invocations":1,"location":null,"numPassingAsserts":7,"retryReasons":[],"startAt":1794936322447,"status":"passed","title":"document package history is read-only and separates captured notes from answers"},{"ancestorTitles":[],"duration":59,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"cv section shows the attached variant and the ones available to attach","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"startAt":1794936322543,"status":"passed","title":"cv section shows the attached variant and the ones available to attach"},{"ancestorTitles":[],"duration":127,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"attaching a different variant only re-points the application","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"startAt":1794936322603,"status":"passed","title":"attaching a different variant only re-points the application"},{"ancestorTitles":[],"duration":30,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"cv section points at the builder when there are no variants","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"startAt":1794936322731,"status":"passed","title":"cv section points at the builder when there are no variants"},{"ancestorTitles":[],"duration":46,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"tailoring renders suggestions grouped by kind","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"startAt":1794936322761,"status":"passed","title":"tailoring renders suggestions grouped by kind"},{"ancestorTitles":[],"duration":46,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"tailoring asks for a career profile when there is none","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"startAt":1794936322807,"status":"passed","title":"tailoring asks for a career profile when there is none"},{"ancestorTitles":[],"duration":62,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"submitted package capture appends an immutable history entry","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"startAt":1794936322853,"status":"passed","title":"submitted package capture appends an immutable history entry"},{"ancestorTitles":[],"duration":112,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"cover letter loads the current text and its history","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"startAt":1794936322916,"status":"passed","title":"cover letter loads the current text and its history"},{"ancestorTitles":[],"duration":243,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"editing marks the draft dirty and saving sends the new text","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"startAt":1794936323028,"status":"passed","title":"editing marks the draft dirty and saving sends the new text"},{"ancestorTitles":[],"duration":224,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"discarding returns to the saved text","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"startAt":1794936323271,"status":"passed","title":"discarding returns to the saved text"},{"ancestorTitles":[],"duration":156,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"restoring an old version calls the restore endpoint","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"startAt":1794936323495,"status":"passed","title":"restoring an old version calls the restore endpoint"},{"ancestorTitles":[],"duration":117,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"an empty cover letter offers the template and an empty history","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"startAt":1794936323651,"status":"passed","title":"an empty cover letter offers the template and an empty history"},{"ancestorTitles":[],"duration":122,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"the empty cover-letter template and rich-text controls follow Bokmål UI language","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"startAt":1794936323768,"status":"passed","title":"the empty cover-letter template and rich-text controls follow Bokmål UI language"},{"ancestorTitles":[],"duration":217,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"AI letter results are discarded when the source changes during generation","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"startAt":1794936323890,"status":"passed","title":"AI letter results are discarded when the source changes during generation"},{"ancestorTitles":[],"duration":228,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"letter Improve writing uses the existing reviewed action","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"startAt":1794936324107,"status":"passed","title":"letter Improve writing uses the existing reviewed action"},{"ancestorTitles":[],"duration":234,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"letter Suggest content uses the existing reviewed action","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"startAt":1794936324335,"status":"passed","title":"letter Suggest content uses the existing reviewed action"},{"ancestorTitles":[],"duration":198,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"letter Grammar check uses the existing reviewed action","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"startAt":1794936324569,"status":"passed","title":"letter Grammar check uses the existing reviewed action"},{"ancestorTitles":[],"duration":137,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"letter Shorter uses the existing reviewed action","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"startAt":1794936324767,"status":"passed","title":"letter Shorter uses the existing reviewed action"},{"ancestorTitles":[],"duration":198,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"cancelling letter generation ignores its late response","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"startAt":1794936324904,"status":"passed","title":"cancelling letter generation ignores its late response"},{"ancestorTitles":[],"duration":499,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"AI cover letter suggestions use the linked CV and require explicit apply","invocations":1,"location":null,"numPassingAsserts":7,"retryReasons":[],"startAt":1794936325102,"status":"passed","title":"AI cover letter suggestions use the linked CV and require explicit apply"},{"ancestorTitles":[],"duration":283,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"letter AI revalidates its recorded source before applying and refuses a cross-tab source conflict","invocations":1,"location":null,"numPassingAsserts":5,"retryReasons":[],"startAt":1794936325601,"status":"passed","title":"letter AI revalidates its recorded source before applying and refuses a cross-tab source conflict"},{"ancestorTitles":[],"duration":437,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"letter AI language follows the saved document and updates the same local language draft","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"startAt":1794936325884,"status":"passed","title":"letter AI language follows the saved document and updates the same local language draft"},{"ancestorTitles":[],"duration":414,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"letter AI ignores a late source validation after local edit","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"startAt":1794936326321,"status":"passed","title":"letter AI ignores a late source validation after local edit"},{"ancestorTitles":[],"duration":234,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"letter AI ignores a late source validation after local cancel","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"startAt":1794936326736,"status":"passed","title":"letter AI ignores a late source validation after local cancel"},{"ancestorTitles":[],"duration":406,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"letter AI ignores a late source validation after local job change","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"startAt":1794936326970,"status":"passed","title":"letter AI ignores a late source validation after local job change"},{"ancestorTitles":[],"duration":472,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"a held letter Save prevents an in-flight AI validation from replacing the submitted snapshot","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"startAt":1794936327376,"status":"passed","title":"a held letter Save prevents an in-flight AI validation from replacing the submitted snapshot"},{"ancestorTitles":[],"duration":228,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"[PRES-W06] rejecting an AI cover letter preserves the saved draft without a write","invocations":1,"location":null,"numPassingAsserts":8,"retryReasons":[],"startAt":1794936327848,"status":"passed","title":"[PRES-W06] rejecting an AI cover letter preserves the saved draft without a write"},{"ancestorTitles":[],"duration":49,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"a failed load surfaces an error","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"startAt":1794936328076,"status":"passed","title":"a failed load surfaces an error"},{"ancestorTitles":[],"duration":140,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"application answer and recruiter drafts save from the dedicated workspace","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"startAt":1794936328126,"status":"passed","title":"application answer and recruiter drafts save from the dedicated workspace"},{"ancestorTitles":[],"duration":168,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"application package drafts can be cleared without deleting ordinary notes","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"startAt":1794936328266,"status":"passed","title":"application package drafts can be cleared without deleting ordinary notes"},{"ancestorTitles":[],"duration":513,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"failed cover-letter saving retains editable dirty text and original Save recovery across a live locale change","invocations":1,"location":null,"numPassingAsserts":16,"retryReasons":[],"startAt":1794936328434,"status":"passed","title":"failed cover-letter saving retains editable dirty text and original Save recovery across a live locale change"},{"ancestorTitles":[],"duration":197,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"failed application-answer saving keeps both dirty drafts editable and retries only the original save payload","invocations":1,"location":null,"numPassingAsserts":14,"retryReasons":[],"startAt":1794936328947,"status":"passed","title":"failed application-answer saving keeps both dirty drafts editable and retries only the original save payload"},{"ancestorTitles":[],"duration":229,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"failed CV attachment leaves the current association and selector available for the original explicit action","invocations":1,"location":null,"numPassingAsserts":10,"retryReasons":[],"startAt":1794936329144,"status":"passed","title":"failed CV attachment leaves the current association and selector available for the original explicit action"},{"ancestorTitles":[],"duration":949,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"dirty version restore cancels without a write and confirmed held restore appends history exactly once","invocations":1,"location":null,"numPassingAsserts":16,"retryReasons":[],"startAt":1794936329373,"status":"passed","title":"dirty version restore cancels without a write and confirmed held restore appends history exactly once"},{"ancestorTitles":[],"duration":496,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"held letter Save submits one snapshot and prevents an AI Apply from replacing its pending draft","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"startAt":1794936330322,"status":"passed","title":"held letter Save submits one snapshot and prevents an AI Apply from replacing its pending draft"},{"ancestorTitles":[],"duration":663,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"held AI generation locks its controls and preserves captured action attribution after a later action selection","invocations":1,"location":null,"numPassingAsserts":9,"retryReasons":[],"startAt":1794936330818,"status":"passed","title":"held AI generation locks its controls and preserves captured action attribution after a later action selection"},{"ancestorTitles":[],"duration":658,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"capture, detail and download failures keep owned frozen history and recover only through their original explicit actions","invocations":1,"location":null,"numPassingAsserts":23,"retryReasons":[],"startAt":1794936331481,"status":"passed","title":"capture, detail and download failures keep owned frozen history and recover only through their original explicit actions"},{"ancestorTitles":[],"duration":557,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"all five asset read owners expose GET-only recovery without false empty history or locale refetch","invocations":1,"location":null,"numPassingAsserts":34,"retryReasons":[],"startAt":1794936332139,"status":"passed","title":"all five asset read owners expose GET-only recovery without false empty history or locale refetch"},{"ancestorTitles":[],"duration":322,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"keyed job changes stop a late CV copy from attaching and never reuse another job's saved-copy recovery","invocations":1,"location":null,"numPassingAsserts":19,"retryReasons":[],"startAt":1794936332696,"status":"passed","title":"keyed job changes stop a late CV copy from attaching and never reuse another job's saved-copy recovery"},{"ancestorTitles":[],"duration":324,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"keyed job changes keep job B's answer drafts and callbacks independent of job A's late save","invocations":1,"location":null,"numPassingAsserts":11,"retryReasons":[],"startAt":1794936333018,"status":"passed","title":"keyed job changes keep job B's answer drafts and callbacks independent of job A's late save"},{"ancestorTitles":[],"duration":231,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"a parent refresh cannot attach a newer revision to dirty application drafts","invocations":1,"location":null,"numPassingAsserts":5,"retryReasons":[],"startAt":1794936333342,"status":"passed","title":"a parent refresh cannot attach a newer revision to dirty application drafts"},{"ancestorTitles":[],"duration":320,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"cover-letter rejection (409) retains draft and source revision without a fresh read","invocations":1,"location":null,"numPassingAsserts":5,"retryReasons":[],"startAt":1794936333573,"status":"passed","title":"cover-letter rejection (409) retains draft and source revision without a fresh read"},{"ancestorTitles":[],"duration":238,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"cover-letter rejection (0) retains draft and source revision without a fresh read","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"startAt":1794936333893,"status":"passed","title":"cover-letter rejection (0) retains draft and source revision without a fresh read"},{"ancestorTitles":[],"duration":182,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"letter text preview shows unsaved formatting, hides the inactive narrow pane and never saves on switching","invocations":1,"location":null,"numPassingAsserts":11,"retryReasons":[],"startAt":1794936334131,"status":"passed","title":"letter text preview shows unsaved formatting, hides the inactive narrow pane and never saves on switching"},{"ancestorTitles":[],"duration":259,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"letter text preview renders unsafe Markdown as inert text","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"startAt":1794936334313,"status":"passed","title":"letter text preview renders unsafe Markdown as inert text"},{"ancestorTitles":[],"duration":718,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"letter preview retains the draft after cancelled restore and failed save","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"startAt":1794936334572,"status":"passed","title":"letter preview retains the draft after cancelled restore and failed save"},{"ancestorTitles":[],"duration":1076,"failing":false,"failureDetails":[{"matcherResult":{"message":"expect(jest.fn()).toHaveBeenCalledWith(...expected)\n\n- Expected\n+ Received\n\n- \"/jobapplications/7/cover-letter/restore/1\",\n+ \"/jobapplications/7/cover-letter/versions/1/restore\",\n {\"expectedVersion\": 7},\n\nNumber of calls: 1","pass":false}}],"failureMessages":["Error: expect(jest.fn()).toHaveBeenCalledWith(...expected)\n\n- Expected\n+ Received\n\n- \"/jobapplications/7/cover-letter/restore/1\",\n+ \"/jobapplications/7/cover-letter/versions/1/restore\",\n {\"expectedVersion\": 7},\n\nNumber of calls: 1\n at toHaveBeenCalledWith (C:\\Users\\Connor\\.codex\\worktrees\\direct-roadmap-integration\\Job tracker\\job-tracker-ui\\src\\application-assets.test.tsx:986:26)\n at runNextTicks (node:internal/process/task_queues:65:5)\n at listOnTimeout (node:internal/timers:597:9)\n at processTimers (node:internal/timers:571:7)"],"fullName":"pending letter history restore follows en without losing text, design or revision","invocations":1,"location":null,"numPassingAsserts":10,"retryReasons":[],"startAt":1794936335290,"status":"failed","title":"pending letter history restore follows en without losing text, design or revision"},{"ancestorTitles":[],"duration":1173,"failing":false,"failureDetails":[{"matcherResult":{"message":"expect(jest.fn()).toHaveBeenCalledWith(...expected)\n\n- Expected\n+ Received\n\n- \"/jobapplications/7/cover-letter/restore/1\",\n+ \"/jobapplications/7/cover-letter/versions/1/restore\",\n {\"expectedVersion\": 7},\n\nNumber of calls: 1","pass":false}}],"failureMessages":["Error: expect(jest.fn()).toHaveBeenCalledWith(...expected)\n\n- Expected\n+ Received\n\n- \"/jobapplications/7/cover-letter/restore/1\",\n+ \"/jobapplications/7/cover-letter/versions/1/restore\",\n {\"expectedVersion\": 7},\n\nNumber of calls: 1\n at toHaveBeenCalledWith (C:\\Users\\Connor\\.codex\\worktrees\\direct-roadmap-integration\\Job tracker\\job-tracker-ui\\src\\application-assets.test.tsx:986:26)\n at runNextTicks (node:internal/process/task_queues:65:5)\n at listOnTimeout (node:internal/timers:597:9)\n at processTimers (node:internal/timers:571:7)"],"fullName":"pending letter history restore follows nb without losing text, design or revision","invocations":1,"location":null,"numPassingAsserts":10,"retryReasons":[],"startAt":1794936336384,"status":"failed","title":"pending letter history restore follows nb without losing text, design or revision"},{"ancestorTitles":[],"duration":520,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"keyed letter job changes discard the old preview and ignore its late save","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"startAt":1794936337557,"status":"passed","title":"keyed letter job changes discard the old preview and ignore its late save"},{"ancestorTitles":[],"duration":114,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"letter workspace at 768px keeps one editor and its preview available without writing","invocations":1,"location":null,"numPassingAsserts":5,"retryReasons":[],"startAt":1794936338077,"status":"passed","title":"letter workspace at 768px keeps one editor and its preview available without writing"},{"ancestorTitles":[],"duration":105,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"letter workspace at 1000px keeps one editor and its preview available without writing","invocations":1,"location":null,"numPassingAsserts":5,"retryReasons":[],"startAt":1794936338191,"status":"passed","title":"letter workspace at 1000px keeps one editor and its preview available without writing"},{"ancestorTitles":[],"duration":96,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"letter workspace at 1440px keeps one editor and its preview available without writing","invocations":1,"location":null,"numPassingAsserts":5,"retryReasons":[],"startAt":1794936338296,"status":"passed","title":"letter workspace at 1440px keeps one editor and its preview available without writing"},{"ancestorTitles":[],"duration":442,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"letter preview controls follow Bokmål without translating or saving the local draft","invocations":1,"location":null,"numPassingAsserts":5,"retryReasons":[],"startAt":1794936338393,"status":"passed","title":"letter preview controls follow Bokmål without translating or saving the local draft"},{"ancestorTitles":[],"duration":611,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"document settings are dirty local drafts until explicit Save, and Discard restores saved details","invocations":1,"location":null,"numPassingAsserts":5,"retryReasons":[],"startAt":1794936338835,"status":"passed","title":"document settings are dirty local drafts until explicit Save, and Discard restores saved details"},{"ancestorTitles":[],"duration":576,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"letter PDF awaits durable settings and blocks duplicate exports; failed save never exports","invocations":1,"location":null,"numPassingAsserts":5,"retryReasons":[],"startAt":1794936339446,"status":"passed","title":"letter PDF awaits durable settings and blocks duplicate exports; failed save never exports"},{"ancestorTitles":[],"duration":2237,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"letter document preview ignores stale responses, keeps last good HTML on failure and retries without saving","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"startAt":1794936340022,"status":"passed","title":"letter document preview ignores stale responses, keeps last good HTML on failure and retries without saving"}],"endTime":1794936342290,"message":" ● pending letter history restore follows en without losing text, design or revision\n\n expect(jest.fn()).toHaveBeenCalledWith(...expected)\n\n - Expected\n + Received\n\n - \"/jobapplications/7/cover-letter/restore/1\",\n + \"/jobapplications/7/cover-letter/versions/1/restore\",\n {\"expectedVersion\": 7},\n\n Number of calls: 1\n\n 984 | fireEvent.click(within(await screen.findByRole('dialog')).getByRole('button', { name: copy('assetsRestoreConfirm') }));\n 985 | await waitFor(() => expect(mockedApi.post).toHaveBeenCalledTimes(1));\n > 986 | expect(mockedApi.post).toHaveBeenCalledWith('/jobapplications/7/cover-letter/versions/1/restore', { expectedVersion: 7 });\n | ^\n 987 | });\n 988 |\n 989 | test(\"keyed letter job changes discard the old preview and ignore its late save\", async () => {\n\n at toHaveBeenCalledWith (src/application-assets.test.tsx:986:26)\n\n ● pending letter history restore follows nb without losing text, design or revision\n\n expect(jest.fn()).toHaveBeenCalledWith(...expected)\n\n - Expected\n + Received\n\n - \"/jobapplications/7/cover-letter/restore/1\",\n + \"/jobapplications/7/cover-letter/versions/1/restore\",\n {\"expectedVersion\": 7},\n\n Number of calls: 1\n\n 984 | fireEvent.click(within(await screen.findByRole('dialog')).getByRole('button', { name: copy('assetsRestoreConfirm') }));\n 985 | await waitFor(() => expect(mockedApi.post).toHaveBeenCalledTimes(1));\n > 986 | expect(mockedApi.post).toHaveBeenCalledWith('/jobapplications/7/cover-letter/versions/1/restore', { expectedVersion: 7 });\n | ^\n 987 | });\n 988 |\n 989 | test(\"keyed letter job changes discard the old preview and ignore its late save\", async () => {\n\n at toHaveBeenCalledWith (src/application-assets.test.tsx:986:26)\n","name":"C:\\Users\\Connor\\.codex\\worktrees\\direct-roadmap-integration\\Job tracker\\job-tracker-ui\\src\\application-assets.test.tsx","startTime":1794936319068,"status":"failed","summary":""},{"assertionResults":[{"ancestorTitles":[],"duration":509,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"contact copy is a reviewed canonical snapshot; cancel is inert and apply preserves recipient and design","invocations":1,"location":null,"numPassingAsserts":17,"retryReasons":[],"startAt":1794936343035,"status":"passed","title":"contact copy is a reviewed canonical snapshot; cancel is inert and apply preserves recipient and design"},{"ancestorTitles":[],"duration":407,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"contact location copies only after selection and unselected contact values preserve destination fields","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"startAt":1794936343544,"status":"passed","title":"contact location copies only after selection and unselected contact values preserve destination fields"},{"ancestorTitles":[],"duration":238,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"blank source contacts and choosing no fields never clear destination contacts","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"startAt":1794936343951,"status":"passed","title":"blank source contacts and choosing no fields never clear destination contacts"},{"ancestorTitles":[],"duration":389,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"letter language is an explicit document draft and saves independently of interface and CV language","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"startAt":1794936344189,"status":"passed","title":"letter language is an explicit document draft and saves independently of interface and CV language"},{"ancestorTitles":[],"duration":233,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"design copy resolves null overrides through actual theme defaults and effective CV density","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"startAt":1794936344578,"status":"passed","title":"design copy resolves null overrides through actual theme defaults and effective CV density"},{"ancestorTitles":[],"duration":202,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"letter template chooser uses nine actual matching themes and preserves destination letter details","invocations":1,"location":null,"numPassingAsserts":7,"retryReasons":[],"startAt":1794936344811,"status":"passed","title":"letter template chooser uses nine actual matching themes and preserves destination letter details"},{"ancestorTitles":[],"duration":177,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"letter template load failures retry and cancel never changes the local letter","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"startAt":1794936345013,"status":"passed","title":"letter template load failures retry and cancel never changes the local letter"},{"ancestorTitles":[],"duration":805,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"applying a letter template updates the existing letter preview using the current body without saving","invocations":1,"location":null,"numPassingAsserts":5,"retryReasons":[],"startAt":1794936345190,"status":"passed","title":"applying a letter template updates the existing letter preview using the current body without saving"},{"ancestorTitles":[],"duration":39,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"disabled letter drafting cannot open the template chooser","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"startAt":1794936345995,"status":"passed","title":"disabled letter drafting cannot open the template chooser"},{"ancestorTitles":[],"duration":230,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"matching a customized CV copies heading density and paper but preserves letter language","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"startAt":1794936346034,"status":"passed","title":"matching a customized CV copies heading density and paper but preserves letter language"},{"ancestorTitles":[],"duration":221,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"closing a copy dialog ignores a late selected CV read","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"startAt":1794936346264,"status":"passed","title":"closing a copy dialog ignores a late selected CV read"},{"ancestorTitles":[],"duration":259,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"failed copy reads are retryable and cannot apply or save a partial snapshot","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"startAt":1794936346485,"status":"passed","title":"failed copy reads are retryable and cannot apply or save a partial snapshot"},{"ancestorTitles":[],"duration":704,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"restoring a historical letter restores saved details with text after explicit dirty confirmation","invocations":1,"location":null,"numPassingAsserts":7,"retryReasons":[],"startAt":1794936346744,"status":"passed","title":"restoring a historical letter restores saved details with text after explicit dirty confirmation"},{"ancestorTitles":[],"duration":485,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"successful export waits for the committed local snapshot and uses its returned revision once","invocations":1,"location":null,"numPassingAsserts":8,"retryReasons":[],"startAt":1794936347449,"status":"passed","title":"successful export waits for the committed local snapshot and uses its returned revision once"},{"ancestorTitles":[],"duration":440,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"a late letter PDF from a previous keyed job never downloads or replaces the current draft","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"startAt":1794936347934,"status":"passed","title":"a late letter PDF from a previous keyed job never downloads or replaces the current draft"}],"endTime":1794936348375,"message":"","name":"C:\\Users\\Connor\\.codex\\worktrees\\direct-roadmap-integration\\Job tracker\\job-tracker-ui\\src\\cover-letter-document.test.tsx","startTime":1794936342302,"status":"passed","summary":""}],"wasInterrupted":false}