Skip to content

Commit

Permalink
Fix Grad Path cypress tests
Browse files Browse the repository at this point in the history
- Add fixture for testing school
- Update values to reflect fixture data
- Reformat constants.json for readability
  • Loading branch information
chuckwerner committed Jan 30, 2025
1 parent 01e269a commit d92e20b
Show file tree
Hide file tree
Showing 3 changed files with 406 additions and 4 deletions.
37 changes: 36 additions & 1 deletion test/cypress/fixtures/paying-for-college/constants.json
Original file line number Diff line number Diff line change
@@ -1 +1,36 @@
{"apiYear": 2016, "constantsYear": "2020-21", "militaryAssistanceCap": 4500, "pellCap": 9293, "perkinsGradCap": 8000, "perkinsUnderCap": 5500, "salaryYear": 2014, "subsidizedCapYearOne": 3500, "subsidizedCapYearThree": 5500, "subsidizedCapYearTwo": 4500, "unsubsidizedCapGrad": 47167, "unsubsidizedCapIndepYearOne": 9500, "unsubsidizedCapIndepYearThree": 12500, "unsubsidizedCapIndepYearTwo": 10500, "unsubsidizedCapYearOne": 5500, "unsubsidizedCapYearThree": 7500, "unsubsidizedCapYearTwo": 6500, "DLOriginationFee": "0.01057", "existingDebtRate": "0.05000", "gradPlusRate": "0.07540", "homeEquityLoanRate": "0.07900", "institutionalLoanRate": "0.07900", "loanDefaultRateHigh": "0.14500", "loanDefaultRateLow": "0.13500", "nationalLoanDefaultRate": "0.13700", "parentplusRate": "0.07540", "perkinsRate": "0.05000", "plusOriginationFee": "0.04228", "privateLoanFee": "0.00000", "privateLoanRate": "0.07900", "subsidizedRate": "0.04990", "unsubsidizedRate": "0.04990", "unsubsidizedRateGrad": "0.06540", "unsubsidizedRateUndergrad": "0.04990"}
{
"apiYear": 2016,
"constantsYear": "2020-21",
"militaryAssistanceCap": 4500,
"pellCap": 9293,
"perkinsGradCap": 8000,
"perkinsUnderCap": 5500,
"salaryYear": 2014,
"subsidizedCapYearOne": 3500,
"subsidizedCapYearThree": 5500,
"subsidizedCapYearTwo": 4500,
"unsubsidizedCapGrad": 47167,
"unsubsidizedCapIndepYearOne": 9500,
"unsubsidizedCapIndepYearThree": 12500,
"unsubsidizedCapIndepYearTwo": 10500,
"unsubsidizedCapYearOne": 5500,
"unsubsidizedCapYearThree": 7500,
"unsubsidizedCapYearTwo": 6500,
"DLOriginationFee": "0.01057",
"existingDebtRate": "0.05000",
"gradPlusRate": "0.07540",
"homeEquityLoanRate": "0.07900",
"institutionalLoanRate": "0.07900",
"loanDefaultRateHigh": "0.14500",
"loanDefaultRateLow": "0.13500",
"nationalLoanDefaultRate": "0.13700",
"parentplusRate": "0.07540",
"perkinsRate": "0.05000",
"plusOriginationFee": "0.04228",
"privateLoanFee": "0.00000",
"privateLoanRate": "0.07900",
"subsidizedRate": "0.04990",
"unsubsidizedRate": "0.04990",
"unsubsidizedRateGrad": "0.06540",
"unsubsidizedRateUndergrad": "0.04990"
}
352 changes: 352 additions & 0 deletions test/cypress/fixtures/paying-for-college/school-166027.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,352 @@
{
"books": "1000",
"city": "Cambridge",
"cohortRankByControl":
{
"grad_rate":
{
"cohort_count": 1100,
"percentile_rank": 100
},
"repay_3yr":
{
"cohort_count": 1285,
"percentile_rank": 76
},
"median_total_debt":
{
"cohort_count": 1283,
"percentile_rank": 27
}
},
"cohortRankByHighestDegree":
{
"grad_rate":
{
"cohort_count": 1621,
"percentile_rank": 100
},
"repay_3yr":
{
"cohort_count": 1850,
"percentile_rank": 77
},
"median_total_debt":
{
"cohort_count": 1851,
"percentile_rank": 27
}
},
"cohortRankByState":
{
"grad_rate":
{
"cohort_count": 62,
"percentile_rank": 100
},
"repay_3yr":
{
"cohort_count": 73,
"percentile_rank": 58
},
"median_total_debt":
{
"cohort_count": 71,
"percentile_rank": 18
}
},
"control": "Private",
"defaultRate": "0.012",
"enrollment": 7938,
"gradRate": "0.972",
"highestDegree": "Graduate degree",
"medianAnnualPay": 95114,
"medianAnnualPay6Yr": 87213,
"medianMonthlyDebt": "148.42",
"medianTotalDebt": "12500.0",
"netPriceAvg": 13259,
"netPriceAvgSlices":
{
"0_30k": 1754,
"30k_48k": -273,
"48k_75k": 538,
"75k_110k": 10912,
"110k_plus": 48113
},
"nicknames": "Crimson",
"offersPerkins": true,
"onCampusAvail": "Yes",
"online": false,
"otherOffCampus": null,
"otherOnCampus": "3070",
"otherWFamily": null,
"predominantDegree": "Bachelor's degree",
"programCodes":
{
"graduate":
[
{
"code": "402-5",
"name": "Architecture",
"level": "Master's degree",
"salary": 58100
},
{
"code": "403-5",
"name": "City/Urban, Community and Regional Planning",
"level": "Master's degree",
"salary": 62000
},
{
"code": "406-5",
"name": "Landscape Architecture",
"level": "Master's degree",
"salary": 53600
},
{
"code": "1301-5",
"name": "Education, General",
"level": "Master's degree",
"salary": 55400
},
{
"code": "1301-6",
"name": "Education, General",
"level": "Doctoral degree",
"salary": 94100
},
{
"code": "1304-5",
"name": "Educational Administration and Supervision",
"level": "Master's degree",
"salary": 70000
},
{
"code": "1305-5",
"name": "Educational/Instructional Media Design",
"level": "Master's degree",
"salary": 59800
},
{
"code": "1307-5",
"name": "International and Comparative Education",
"level": "Master's degree",
"salary": 53200
},
{
"code": "1312-5",
"name": "Teacher Education and Professional Development, Specific Levels and Methods",
"level": "Master's degree",
"salary": 51300
},
{
"code": "1399-5",
"name": "Education, Other",
"level": "Master's degree",
"salary": 57700
},
{
"code": "2201-7",
"name": "Law",
"level": "First professional degree",
"salary": 158200
},
{
"code": "2401-5",
"name": "Liberal Arts and Sciences, General Studies and Humanities",
"level": "Master's degree",
"salary": 54200
},
{
"code": "2613-6",
"name": "Ecology, Evolution, Systematics, and Population Biology",
"level": "Doctoral degree",
"salary": 67600
},
{
"code": "3906-5",
"name": "Theological and Ministerial Studies",
"level": "Master's degree",
"salary": 33000
},
{
"code": "3906-7",
"name": "Theological and Ministerial Studies",
"level": "First professional degree",
"salary": 41000
},
{
"code": "4404-5",
"name": "Public Administration",
"level": "Master's degree",
"salary": 98300
},
{
"code": "4405-5",
"name": "Public Policy Analysis",
"level": "Master's degree",
"salary": 75900
},
{
"code": "5104-7",
"name": "Dentistry",
"level": "First professional degree",
"salary": 58100
},
{
"code": "5105-8",
"name": "Advanced/Graduate Dentistry and Oral Sciences",
"level": "Graduate/professional certificate",
"salary": 143200
},
{
"code": "5112-7",
"name": "Medicine",
"level": "First professional degree",
"salary": 62900
},
{
"code": "5122-5",
"name": "Public Health",
"level": "Master's degree",
"salary": 94700
},
{
"code": "5202-5",
"name": "Business Administration, Management and Operations",
"level": "Master's degree",
"salary": 91600
},
{
"code": "5202-7",
"name": "Business Administration, Management and Operations",
"level": "First professional degree",
"salary": 161400
}
],
"undergrad":
[
{
"code": "1107-3",
"name": "Computer Science",
"level": "Bachelor's degree",
"salary": 128900
},
{
"code": "2301-3",
"name": "English Language and Literature, General",
"level": "Bachelor's degree",
"salary": 37300
},
{
"code": "2604-3",
"name": "Cell/Cellular Biology and Anatomical Sciences",
"level": "Bachelor's degree",
"salary": 48200
},
{
"code": "2613-3",
"name": "Ecology, Evolution, Systematics, and Population Biology",
"level": "Bachelor's degree",
"salary": 39100
},
{
"code": "2615-3",
"name": "Neurobiology and Neurosciences",
"level": "Bachelor's degree",
"salary": 45100
},
{
"code": "2703-3",
"name": "Applied Mathematics",
"level": "Bachelor's degree",
"salary": 80500
},
{
"code": "2705-3",
"name": "Statistics",
"level": "Bachelor's degree",
"salary": 126100
},
{
"code": "4227-3",
"name": "Research and Experimental Psychology",
"level": "Bachelor's degree",
"salary": 47000
},
{
"code": "4501-3",
"name": "Social Sciences, General",
"level": "Bachelor's degree",
"salary": 52000
},
{
"code": "4506-3",
"name": "Economics",
"level": "Bachelor's degree",
"salary": 78800
},
{
"code": "4510-3",
"name": "Political Science and Government",
"level": "Bachelor's degree",
"salary": 51800
},
{
"code": "4511-3",
"name": "Sociology",
"level": "Bachelor's degree",
"salary": 53800
},
{
"code": "5401-3",
"name": "History",
"level": "Bachelor's degree",
"salary": 48000
}
]
},
"programCount": 17,
"programsPopular":
[
"Social Sciences",
"Biological and Biomedical Sciences",
"Mathematics and Statistics",
"Computer and Information Sciences and Support Services",
"History",
"Physical Sciences",
"Psychology",
"Multi/Interdisciplinary Studies",
"Engineering",
"English Language and Literature/Letters",
"Visual and Performing Arts",
"Liberal Arts and Sciences, General Studies and Humanities",
"Foreign Languages, Literatures, and Linguistics",
"Philosophy and Religious Studies",
"Natural Resources and Conservation",
"Area, Ethnic, Cultural, Gender, and Group Studies",
"Business, Management, Marketing, and Related Support Services"
],
"rateAssociateTransfer": null,
"rateDefault": "0.012",
"rateGraduation": "0.972",
"rateRepay3yr": "0.7071428571",
"region": "NE",
"repay3yr": "0.7071428571",
"roomBrdOffCampus": null,
"roomBrdOnCampus": "17160",
"school": "Harvard University",
"schoolID": 166027,
"schoolSalary": 95114,
"settlementSchool": "demo",
"state": "MA",
"tuitionGradInDis": "46384",
"tuitionGradInS": "46384",
"tuitionGradOss": "46384",
"tuitionUnderInDis": "46340",
"tuitionUnderInS": 55587,
"tuitionUnderOoss": 55587,
"underInvestigation": false,
"url": "www.harvard.edu/",
"zip5": "02138"
}
Loading

0 comments on commit d92e20b

Please sign in to comment.