The GitHub Actions job "Required Checks" on 
texera.git/gh-readonly-queue/main/pr-5233-d5bc8b7cf8d2e515280934a9c3e52c305fe3c002
 has failed.
Run started by GitHub user aglinxinyuan (triggered by aglinxinyuan).

Head commit for run:
da64ffb3c921be4608a22bd68109f9649e3cdb1b / Matthew B. <[email protected]>
test: cover ShareAccessComponent behaviors in spec (#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

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

With regards,
GitHub Actions via GitBox

Reply via email to