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

   ### What changes were proposed in this PR?
   - Expand `share-access.component.spec.ts` from 4 routing-only tests to 44 
tests grouped by behavior: `ngOnInit`, `handleInputConfirm`, `onPaste`, 
`grantAccess`, `hasWriteAccess`, `verifyRevokeAccess`/`revokeAccess`, 
`changeAccessLevel`, `verifyPublish`/`verifyUnpublish`, and the individual 
publish/unpublish methods.
   - Drive modal-confirmation flows by capturing the config passed to 
`NzModalService.create` and invoking the relevant `nzFooter` button's 
`onClick`, so each test asserts against the specific Confirm/Cancel path it 
cares about.
   - Parameterize the `setupComponent` helper with `type`, `id`, `inWorkspace`, 
and `currentEmail` overrides, and reset the TestBed in `beforeEach` so each 
test reconfigures providers (e.g., a WRITE access entry for `hasWriteAccess`, 
an already-published item for `verifyPublish`) without bleed-over.
   ### Any related issues, documentation, or discussions?
   Closes: #5223
   ### How was this PR tested?
   - Ran `yarn format:fix` (touched the new spec only).
   - Ran `yarn test 
--include="src/app/dashboard/component/user/share-access/share-access.component.spec.ts"`:
 44/44 passing.
   ### Was this PR authored or co-authored using generative AI tooling?
   Co-authored with Claude Opus 4.7 in compliance with ASF


-- 
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