mengw15 opened a new pull request, #5460:
URL: https://github.com/apache/texera/pull/5460
### What changes were proposed in this PR?
Extends the existing `gmail.service.spec.ts` (added in #5164, which covered
`sendEmail`'s success/error toasts) to cover the remaining surface of the
3-method service:
- `sendEmail` request-body shape — explicit receiver, and the empty-string
default when omitted
- `sendEmail` error branch also logs `console.error("Send email error:", …)`
- `getSenderEmail()` — a `GET` to `/gmail/sender/email` (text) that emits
the body with no `NotificationService` side-effect
- `notifyUnauthorizedLogin` — POST body shape, success toast, and error
toast + `console.error` logging
Follows `frontend/TESTING.md` (Vitest, `HttpClientTestingModule`).
### Any related issues, documentation, discussions?
Closes #5456. Builds on #5164.
### How was this PR tested?
`yarn test --include='**/gmail.service.spec.ts'` → 9 passed. `prettier
--check` clean.
### Was this PR authored or co-authored using generative AI tooling?
Generated-by: Claude Code (claude-opus-4-7)
--
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]