Skip to content

Commit

Permalink
edit expected shape of state programs in mocks and tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pearl-truss committed May 10, 2024
1 parent 59ff504 commit ba6172c
Show file tree
Hide file tree
Showing 32 changed files with 90 additions and 6 deletions.
2 changes: 2 additions & 0 deletions services/app-api/src/emailer/templateHelpers.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,7 @@ describe('findContractPrograms', () => {
id: 'abbdf9b0-c49e-4c4c-bb6f-040cb7b51cce',
name: 'CHIP',
fullName: 'MN CHIP',
isRateProgram: false,
},
]

Expand All @@ -243,6 +244,7 @@ describe('findContractPrograms', () => {
id: 'unmatched-id',
name: 'CHIP',
fullName: 'MN CHIP',
isRateProgram: false,
},
]

Expand Down
6 changes: 6 additions & 0 deletions services/app-api/src/testHelpers/emailerHelpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,21 +86,25 @@ export function mockMNState(): State {
id: 'abbdf9b0-c49e-4c4c-bb6f-040cb7b51cce',
fullName: 'Special Needs Basic Care',
name: 'SNBC',
isRateProgram: false,
},
{
id: 'd95394e5-44d1-45df-8151-1cc1ee66f100',
fullName: 'Prepaid Medical Assistance Program',
name: 'PMAP',
isRateProgram: false,
},
{
id: 'ea16a6c0-5fc6-4df8-adac-c627e76660ab',
fullName: 'Minnesota Senior Care Plus ',
name: 'MSC+',
isRateProgram: false,
},
{
id: '3fd36500-bf2c-47bc-80e8-e7aa417184c5',
fullName: 'Minnesota Senior Health Options',
name: 'MSHO',
isRateProgram: false,
},
],
code: 'MN',
Expand All @@ -115,11 +119,13 @@ export function mockMSState(): State {
id: 'e0819153-5894-4153-937e-aad00ab01a8f',
fullName: 'Mississippi Coordinated Access Network',
name: 'MSCAN',
isRateProgram: false,
},
{
id: '36c54daf-7611-4a15-8c3b-cdeb3fd7e25a',
fullName: 'CHIP',
name: 'CHIP',
isRateProgram: false,
},
],
code: 'MS',
Expand Down
2 changes: 2 additions & 0 deletions services/app-api/src/testHelpers/gqlHelpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ function defaultFloridaProgram(): ProgramType {
id: '5c10fe9f-bec9-416f-a20c-718b152ad633',
name: 'MMA',
fullName: 'Managed Medical Assistance Program ',
isRateProgram: false,
}
}

Expand All @@ -61,6 +62,7 @@ function defaultFloridaRateProgram(): ProgramType {
id: '3b8d8fa1-1fa6-4504-9c5b-ef522877fe1e',
fullName: 'Long-term Care Program',
name: 'LTC',
isRateProgram: false,
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ mutation createHealthPlanPackage($input: CreateHealthPlanPackageInput!) {
id
name
fullName
isRateProgram
}
}
status
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ mutation createQuestionResponse($input: CreateQuestionResponseInput!) {
id
name
fullName
isRateProgram
}
}
}
Expand Down
2 changes: 2 additions & 0 deletions services/app-graphql/src/mutations/submitContract.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ fragment contractFields on Contract {
id
name
fullName
isRateProgram
}
}

Expand All @@ -61,6 +62,7 @@ fragment rateFields on Rate {
id
name
fullName
isRateProgram
}
}
status
Expand Down
1 change: 1 addition & 0 deletions services/app-graphql/src/mutations/submitRate.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ mutation submitRate($input: SubmitRateInput!) {
id
name
fullName
isRateProgram
}
}
status
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ mutation unlockHealthPlanPackage($input: UnlockHealthPlanPackageInput!) {
id
name
fullName
isRateProgram
}
}
status
Expand Down
1 change: 1 addition & 0 deletions services/app-graphql/src/mutations/unlockRate.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ mutation unlockRate($input: UnlockRateInput!) {
id
name
fullName
isRateProgram
}
}
status
Expand Down
1 change: 1 addition & 0 deletions services/app-graphql/src/mutations/updateCMSUser.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ mutation updateCMSUser($input: UpdateCMSUserInput!) {
id
name
fullName
isRateProgram
}
}
divisionAssignment
Expand Down
1 change: 1 addition & 0 deletions services/app-graphql/src/mutations/updateContract.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ mutation updateContract($input: UpdateContractInput!) {
id
name
fullName
isRateProgram
}
}
status
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ mutation updateHealthPlanFormData($input: UpdateHealthPlanFormDataInput!) {
id
name
fullName
isRateProgram
}
}
status
Expand Down
2 changes: 2 additions & 0 deletions services/app-graphql/src/queries/fetchContract.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ fragment contractFieldsFetchContract on Contract {
id
name
fullName
isRateProgram
}
}

Expand All @@ -61,6 +62,7 @@ fragment rateFields on Rate {
id
name
fullName
isRateProgram
}
}
status
Expand Down
2 changes: 2 additions & 0 deletions services/app-graphql/src/queries/fetchCurrentUser.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ query fetchCurrentUser {
id
name
fullName
isRateProgram
}
}
divisionAssignment
Expand All @@ -30,6 +31,7 @@ query fetchCurrentUser {
id
name
fullName
isRateProgram
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ query fetchHealthPlanPackage($input: FetchHealthPlanPackageInput!) {
id
name
fullName
isRateProgram
}
}
status
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ fragment questionEdgeFragment on QuestionEdge {
id
name
fullName
isRateProgram
}
}
}
Expand All @@ -42,6 +43,7 @@ fragment questionEdgeFragment on QuestionEdge {
id
name
fullName
isRateProgram
}
}
}
Expand All @@ -68,6 +70,7 @@ query fetchHealthPlanPackageWithQuestions($input: FetchHealthPlanPackageInput!)
id
name
fullName
isRateProgram
}
}
revisions {
Expand Down
1 change: 1 addition & 0 deletions services/app-graphql/src/queries/fetchRate.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ fragment rateFields on Rate {
id
name
fullName
isRateProgram
}
}
status
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ query indexHealthPlanPackages {
id
name
fullName
isRateProgram
}
}
status
Expand Down
2 changes: 2 additions & 0 deletions services/app-graphql/src/queries/indexQuestions.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ fragment questionEdgeFragment on QuestionEdge {
id
name
fullName
isRateProgram
}
}
}
Expand All @@ -42,6 +43,7 @@ fragment questionEdgeFragment on QuestionEdge {
id
name
fullName
isRateProgram
}
}
}
Expand Down
1 change: 1 addition & 0 deletions services/app-graphql/src/queries/indexRates.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ query indexRates {
id
name
fullName
isRateProgram
}
}
status
Expand Down
2 changes: 2 additions & 0 deletions services/app-graphql/src/queries/indexUsers.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ query indexUsers {
id
name
fullName
isRateProgram
}
}
divisionAssignment
Expand All @@ -33,6 +34,7 @@ query indexUsers {
id
name
fullName
isRateProgram
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,25 @@ export function mockMNState(): State {
id: 'abbdf9b0-c49e-4c4c-bb6f-040cb7b51cce',
fullName: 'Special Needs Basic Care',
name: 'SNBC',
isRateProgram: false,
},
{
id: 'd95394e5-44d1-45df-8151-1cc1ee66f100',
fullName: 'Prepaid Medical Assistance Program',
name: 'PMAP',
isRateProgram: false,
},
{
id: 'ea16a6c0-5fc6-4df8-adac-c627e76660ab',
fullName: 'Minnesota Senior Care Plus ',
name: 'MSC+',
isRateProgram: false,
},
{
id: '3fd36500-bf2c-47bc-80e8-e7aa417184c5',
fullName: 'Minnesota Senior Health Options',
name: 'MSHO',
isRateProgram: false
},
],
code: 'MN',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ const submissionData: HealthPlanPackage = {
id: 'd95394e5-44d1-45df-8151-1cc1ee66f100',
fullName: 'Prepaid Medical Assistance Program',
name: 'PMAP',
isRateProgram: false,
},
],
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,25 @@ describe('Page Heading Row', () => {
id: 'abbdf9b0-c49e-4c4c-bb6f-040cb7b51cce',
fullName: 'Special Needs Basic Care',
name: 'SNBC',
isRateProgram: false,
},
{
id: 'd95394e5-44d1-45df-8151-1cc1ee66f100',
fullName: 'Prepaid Medical Assistance Program',
name: 'PMAP',
isRateProgram: false,
},
{
id: 'ea16a6c0-5fc6-4df8-adac-c627e76660ab',
fullName: 'Minnesota Senior Care Plus ',
name: 'MSC+',
isRateProgram: false,
},
{
id: '3fd36500-bf2c-47bc-80e8-e7aa417184c5',
fullName: 'Minnesota Senior Health Options',
name: 'MSHO',
isRateProgram: false,
},
],
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ const tableData: PackageInDashboardType[] = [
id: 'd95394e5-44d1-45df-8151-1cc1ee66f100',
name: 'PMAP',
fullName: 'Prepaid Medical Assistance Program',
isRateProgram: false,
},
],
submittedAt: '2022-12-05',
Expand All @@ -34,6 +35,7 @@ const tableData: PackageInDashboardType[] = [
id: 'd95394e5-44d1-45df-8151-1cc1ee66f100',
name: 'PMAP',
fullName: 'Prepaid Medical Assistance Program',
isRateProgram: false,
},
],
submittedAt: '2022-11-05',
Expand All @@ -51,6 +53,7 @@ const tableData: PackageInDashboardType[] = [
id: 'd95394e5-44d1-45df-8151-1cc1ee66f100',
name: 'PMAP',
fullName: 'Prepaid Medical Assistance Program',
isRateProgram: false,
},
],
submittedAt: '2022-10-05',
Expand All @@ -68,6 +71,7 @@ const tableData: PackageInDashboardType[] = [
id: 'd95394e5-44d1-45df-8151-1cc1ee66f100',
name: 'PMAP',
fullName: 'Prepaid Medical Assistance Program',
isRateProgram: false,
},
],
submittedAt: '2022-09-05',
Expand Down
Loading

0 comments on commit ba6172c

Please sign in to comment.