Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions api/prisma/seed-helpers/reserved-community-type-factory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,23 @@ import { Prisma, PrismaClient, ReservedCommunityTypes } from '@prisma/client';
import { randomInt } from 'crypto';

const reservedCommunityTypeOptions: { name: string; description?: string }[] = [
{ name: 'specialNeeds' },
{
name: 'senior',
},
{ name: 'senior55' },
{
name: 'senior62',
description:
'This property is reserved for seniors aged 62 and older. Applicants must meet the age requirement to be eligible.',
},
{ name: 'specialNeeds' },
{ name: 'developmentalDisability' },
{ name: 'tay' },
{ name: 'veteran' },
{ name: 'schoolEmployee' },
{ name: 'farmworkerHousing' },
{ name: 'housingVoucher' },
{ name: 'referralOnly' },
];

Expand Down
2 changes: 1 addition & 1 deletion api/prisma/seed-staging.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1084,7 +1084,7 @@ export const stagingSeed = async (

// create pre-determined values
const unitTypes = await unitTypeFactoryAll(prismaClient);
// await reservedCommunityTypeFactoryAll(mainJurisdiction.id, prismaClient);
await reservedCommunityTypeFactoryAll(mainJurisdiction.id, prismaClient);
const expiredApplicationDate = process.env.APPLICATION_DAYS_TILL_EXPIRY
? dayjs(new Date()).subtract(10, 'days').toDate()
: undefined;
Expand Down
2 changes: 1 addition & 1 deletion sites/partners/cypress/e2e/default/03-listing.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1491,7 +1491,7 @@ describe("Listing Management Tests", () => {

if (getFlagActive(listing, FeatureFlagEnum.disableReservedCommunityTypeEdit)) {
// Check plaintext is shown
// cy.contains(listing.reservedCommunityTypeDescription || "")
cy.contains(listing.reservedCommunityTypeDescription || "")
} else {
verifyDataIfExists(
cy,
Expand Down
2 changes: 2 additions & 0 deletions sites/partners/cypress/fixtures/angelopolisListing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,8 @@ export const angelopolisListing: CypressListing = {
reservedCommunityTypes: {
id: "Seniors 62+",
},
reservedCommunityTypeDescription:
"This property is reserved for seniors aged 62 and older. Applicants must meet the age requirement to be eligible.",
creditScreeningFee: "150",
reviewOrderType: ReviewOrderTypeEnum.firstComeFirstServe,
disableUnitsAccordion: true,
Expand Down
2 changes: 1 addition & 1 deletion sites/partners/cypress/fixtures/bloomingtonListing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export const bloomingtonListing: CypressListing = {
neighborhood: "Basic Test Neighborhood",
yearBuilt: 2021,
reservedCommunityTypes: {
id: "Seniors 62+",
id: "Seniors",
},
listingMultiselectQuestions: [
{
Expand Down
4 changes: 2 additions & 2 deletions sites/public/cypress/support/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -662,15 +662,15 @@ Cypress.Commands.add("step18Summary", (application, verify) => {
]

if (application.accessibility.mobility) {
const val = "Mobility accessibility features"
const val = "For mobility impairments"
fields.push({ id: val, fieldValue: val })
}
if (application.accessibility.vision) {
const val = "For vision impairments"
fields.push({ id: val, fieldValue: val })
}
if (application.accessibility.hearing) {
const val = "Hearing accessibility features"
const val = "For hearing impairments"
fields.push({ id: val, fieldValue: val })
}
if (application.accessibility.hearingAndVision) {
Expand Down
Loading