The GitHub Actions job "Required Checks" on texera.git/main has succeeded.
Run started by GitHub user github-merge-queue[bot] (triggered by 
github-merge-queue[bot]).

Head commit for run:
87415b56dbcc8a5b2320ddb0a98ff92c600d95b7 / Meng Wang <[email protected]>
test(frontend): cover WorkflowEditorComponent connection validation, clipboard, 
and delete paths (#6829)

### What changes were proposed in this PR?

Extends the existing `WorkflowEditorComponent` spec with the file's
non-rendering
slice — connection validation, the clipboard handlers, and the delete /
select-all paths the keyboard tests never reach. The paper-event and
pointer
handlers stay out of scope (they need real `dia.Paper` geometry /
browser mode).

12 new tests take the component from 68.6% to 74.0% statement coverage
(+31
lines) and bring every targeted method to 100%:

- `validateJointOperatorConnection` — rejects a link drawn out of an
input port
and one dropped onto an output port; delegates an output→input pair to
the
  operator-level check (proved by re-running once the link exists).
- `validateOperatorConnection` guards — self-connection, a missing port
on
  either end, and an endpoint that is not an operator.
- `deleteElements` — highlighted links and comment boxes are deleted,
not just
  operators.
- `handleElementSelectAll` — ⌘/Ctrl+A also highlights links and comment
boxes.
- `handleElementCopy` / `handleElementCut` / `handleElementPaste` — copy
caches
the selection, cut caches then deletes it, paste delegates to the
operator menu.
- `handleDisableOperator` — repaints the operator on disable and on
re-enable.

No production code was changed.

### Any related issues, documentation, discussions?

Closes #6827.

### How was this PR tested?

`ng test --watch=false --include
src/app/workspace/component/workflow-editor/workflow-editor.component.spec.ts`
— 57 passed (45 existing + 12 new), run 3× for determinism. The failure
path was
verified by breaking an assertion (red, non-zero exit), and
eslint/prettier are
clean. Coverage was measured with `--coverage` before and after to
confirm each
targeted method reached 100%.

### Was this PR authored or co-authored using generative AI tooling?

Generated-by: Claude Code (Opus 4.8 [1M context])

Report URL: https://github.com/apache/texera/actions/runs/30056422597

With regards,
GitHub Actions via GitBox

Reply via email to