Skip to content

Commit ea9f96d

Browse files
authored
feat: add new jurisdiction for seeded data (#5520)
* feat: add new jurisdiction for seeded data * test: select proper jurisdiction
1 parent 4672281 commit ea9f96d

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed

api/prisma/seed-staging.ts

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,25 @@ export const stagingSeed = async (
153153
requiredListingFields: ['name'],
154154
}),
155155
});
156+
const angelopolisJurisdiction = await prismaClient.jurisdictions.create({
157+
data: jurisdictionFactory('Angelopolis', {
158+
featureFlags: [],
159+
requiredListingFields: [
160+
'listingsBuildingAddress',
161+
'name',
162+
'listingImages',
163+
'leasingAgentEmail',
164+
'leasingAgentName',
165+
'leasingAgentPhone',
166+
'jurisdictions',
167+
'units',
168+
'digitalApplication',
169+
'paperApplication',
170+
'referralOpportunity',
171+
'rentalAssistance',
172+
],
173+
}),
174+
});
156175
// create super admin user
157176
await prismaClient.userAccounts.create({
158177
data: await userFactory({
@@ -164,6 +183,7 @@ export const stagingSeed = async (
164183
lakeviewJurisdiction.id,
165184
bridgeBayJurisdiction.id,
166185
nadaHill.id,
186+
angelopolisJurisdiction.id,
167187
],
168188
acceptedTerms: true,
169189
password: 'abcdef',
@@ -180,6 +200,7 @@ export const stagingSeed = async (
180200
lakeviewJurisdiction.id,
181201
bridgeBayJurisdiction.id,
182202
nadaHill.id,
203+
angelopolisJurisdiction.id,
183204
],
184205
acceptedTerms: true,
185206
password: 'abcdef',
@@ -197,6 +218,7 @@ export const stagingSeed = async (
197218
lakeviewJurisdiction.id,
198219
bridgeBayJurisdiction.id,
199220
nadaHill.id,
221+
angelopolisJurisdiction.id,
200222
],
201223
}),
202224
});
@@ -272,6 +294,7 @@ export const stagingSeed = async (
272294
lakeviewJurisdiction.id,
273295
bridgeBayJurisdiction.id,
274296
nadaHill.id,
297+
angelopolisJurisdiction.id,
275298
],
276299
acceptedTerms: true,
277300
}),

sites/partners/cypress/e2e/default/06-admin-user-mangement.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ describe("Admin User Mangement Tests", () => {
150150
[]
151151
)
152152
})
153-
cy.getByTestId("jurisdictions").first().click()
153+
cy.getByTestId("jurisdictions").eq(1).click()
154154
cy.getByTestId("listings_Bloomington").first().click({ force: true })
155155
cy.getByTestId("listings_Bloomington").last().click({ force: true })
156156
cy.getByID("invite-user").click()

0 commit comments

Comments
 (0)