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

Head commit for run:
1909ae1ea221fe5cd75cf82279e92a4783b7bb81 / Matthew B. <[email protected]>
test(frontend): add unit tests for url util (#6626)

### What changes were proposed in this PR?
- Add `frontend/src/app/common/util/url.spec.ts`, a new Vitest spec for
`url.ts`, which previously had no dedicated unit tests.
- Cover getWebsocketUrl with and without an explicit port.
- Cover http-to-ws and https-to-wss protocol rewriting and relative
endpoint resolution.
- Cover hostname and port handling using a stubbed document.baseURI so
the tests are deterministic.
### Any related issues, documentation, discussions?
Closes: #6625
### How was this PR tested?
- Run: `cd frontend && node --max-old-space-size=8192
./node_modules/nx/dist/bin/nx.js test gui --watch=false
--include=src/app/common/util/url.spec.ts`, expect all 7 tests passing.
- Test-only change; no production code is modified.
### Was this PR authored or co-authored using generative AI tooling?
Co-authored with Claude Opus 4.8 in compliance with ASF

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

With regards,
GitHub Actions via GitBox

Reply via email to