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

   ### What changes were proposed in this PR?
   
   Extends the existing `MenuComponent` spec to cover the toolbar methods it had
   left untested
   (`frontend/src/app/workspace/component/menu/menu.component.ts`).
   
   > Note: the existing spec already covers most of the methods the issue lists
   > (`getRunButtonBehavior`, `applyRunButtonBehavior`, `hasOperators`, the 
other
   > toggles/handlers, name change). The remaining gaps were the four below.
   
   5 tests cover:
   
   - `toggleGrid` — sets the joint paper grid size from the `showGrid` flag.
   - `toggleNumWorkers` — toggles the `hide-worker-count` class from the flag.
   - `onClickGenerateReport` — shows the blocking notification and builds the 
report HTML from the snapshot + operator results.
   - `adjustWorkflowNameWidth` — no-op without the name input; sizes the input 
in px otherwise.
   
   The joint-graph wrapper, notification, and report services are stubbed. No
   production code was changed.
   
   ### Any related issues, documentation, discussions?
   
   Closes #6746
   
   ### How was this PR tested?
   
   Extended unit tests, run locally in `frontend/` (all green; the failure path 
was
   verified by breaking an assertion to confirm the suite goes red):
   
   ```
   ng test --watch=false --include 
src/app/workspace/component/menu/menu.component.spec.ts
   # Test Files 1 passed (1) | Tests 55 passed (55)
   prettier --write <spec>   # clean
   eslint  <spec>            # 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