Add calculator route coverage for near misses and unusual queries
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 75/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- javascript, typescript
- Domain
- testing
Research direction
Start with website/src/__tests__/config/property-tax-relief-routes.test.ts and inspect the existing resolveRoute cases for calculator paths and generated queries. Add coverage for the listed near-miss paths and repeated, empty, and percent-encoded query values, comparing the page rewrite with the host’s trailing-slash redirect. Done when the new assertions pass and routing behavior remains unchanged.
Written by the indexing model from the issue text.
Description
Add calculator route coverage for near misses and unusual queries
The calculator routing tests at 2e30a17 cover exact pages, deep files and assets, but omit /calculators, /calculator-x and /Calculator under /us/rent-and-property-taxes. The generated query cases use one key with a nonempty value and omit repeated keys, empty values and percent-encoded values.
Add these cases through the existing resolveRoute helper, preserving the current routing and query semantics. Assert that near-miss paths do not receive the exact calculator page's added slash. Compare repeated, empty and encoded query values through both the page rewrite and the host's trailing-slash redirect. Track this as optional P3 regression coverage for PR #1570.
- Dominant language
- HTML
- Stars
- 1
- Forks
- 3
- Avg merge
- 1d 6h
- Merged PRs (30d)
- 113
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from PolicyEngine/policyengine-app-v2
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
PolicyEngine/policyengine-app-v2#1157 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
PolicyEngine/policyengine-app-v2#954 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
PolicyEngine/policyengine-app-v2#951 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
PolicyEngine/policyengine-app-v2#952 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
PolicyEngine/policyengine-app-v2#906 ·
Maintainers usually reply within 1 day
All issues in PolicyEngine/policyengine-app-v2
Similar issues
-
bug
Difficulty 1/5 1-3 hours Newbie friendliness 86/100
meetecho/juturna_nodes#36 ·
Maintainers usually reply within 2 days
-
needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
MakazhanAlpamys/Soup#3415 ·
Maintainers usually reply within 1 day
-
backlog bug priority: low risk: low
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
davidteren/mutineer#600 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
mermaid-js/mermaid-v13#1370 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
PolicyEngine/ai-inequality#64 ·
Maintainers usually reply within 1 day