Commit 79e43a6
test: cover repeated legacy login query params (#15054)
## Summary
Ports the repeated-query regression coverage identified in superseded PR
#15022 after #15026 merged the legacy `/login` redirect. Original
coverage and test approach are attributed to #15022 / @dante01yoon.
## Changes
- **What**: Extend the existing real-router redirect test to verify
`/login?campaign=one&campaign=two` reaches `cloud-login` with
`query.campaign` equal to `['one', 'two']`.
## Review Focus
Confirm the assertion covers Vue Router's repeated-query parsing while
retaining the existing query, hash, and no-loop coverage.
## Validation
- `pnpm test:unit
src/platform/cloud/onboarding/onboardingCloudRoutes.test.ts` — 11 tests
passed
- `pnpm exec oxfmt --check
src/platform/cloud/onboarding/onboardingCloudRoutes.test.ts` — passed
- `git diff --check origin/main...HEAD` — passed
- Commit hooks: typecheck, Oxlint, ESLint, and formatting passed; push
hook Knip passed
## Screenshots (if applicable)
Not applicable; this PR is test-only.
Co-authored-by: Amp <amp@ampcode.com>1 parent cb2b7c6 commit 79e43a6
1 file changed
Lines changed: 4 additions & 1 deletion
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | | - | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
82 | 84 | | |
83 | 85 | | |
84 | 86 | | |
| 87 | + | |
85 | 88 | | |
86 | 89 | | |
87 | 90 | | |
| |||
0 commit comments