mengw15 opened a new pull request, #6760:
URL: https://github.com/apache/texera/pull/6760

   ### What changes were proposed in this PR?
   
   Extends two dashboard component specs to cover their remaining untested
   edit/interaction methods (Vitest; no production code changed).
   
   **`ListItemComponent`** (+5 tests) — `setEditingState` (toggles the name /
   description edit flags), `renderMarkdownPreview` (strips markdown syntax and
   collapses whitespace), and `updateProperty` (missing-id guard, success
   persistence + exit-edit-mode, and error revert + notify).
   
   > Note: the other ListItem methods the issue lists (`onEditName` /
   > `onEditDescription` / `toggleLike` / `onCheckboxChange` / 
`openDetailModal` /
   > `initializeEntry` / `confirmUpdate*`) are already covered on `main` (added 
in
   > #6557), so this PR only fills the remaining gaps.
   
   **`FilesUploaderComponent`** (+4 tests) — `markForceRestart` (flags the 
item),
   `getOwnerAndName` (returns the owner/name inputs), and `askResumeOrSkip` /
   `askUploadOrSkip` (resolve with the clicked conflict-modal footer action). 
The
   modal is driven through the spec's existing capturing double.
   
   ### Any related issues, documentation, discussions?
   
   Closes #6749
   
   ### How was this PR tested?
   
   Extended unit tests, run locally in `frontend/` (all green; each spec's 
failure
   path was verified by breaking an assertion to confirm it goes red):
   
   ```
   ng test --watch=false --include 
src/app/dashboard/component/user/list-item/list-item.component.spec.ts        # 
25 passed
   ng test --watch=false --include 
src/app/dashboard/component/user/files-uploader/files-uploader.component.spec.ts
 # 12 passed
   prettier --write <specs>   # clean
   eslint  <specs>            # clean
   ```
   
   ### Was this PR authored or co-authored using generative AI tooling?
   
   Generated-by: Claude Code (Opus 4.8 [1M context])
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to