Skip to content

Commit

Permalink
Merge pull request #984 from DFE-Digital/cypress-refactor-school-chan…
Browse files Browse the repository at this point in the history
…ge-to-fix-staging

Fixing Cypress Code for Staging Environment
  • Loading branch information
FahadDarw authored Feb 2, 2024
2 parents 1fc6b0a + 5eb6a23 commit afd4ad2
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,39 +13,40 @@ describe('Filteration Tests', { tags: ['@dev', '@stage'] }, () => {
nextMonthDate.setMonth(currentDate.getMonth() + 1);

const testData = {
projectName: 'Sponsored Cypress Project',
projectName: 'Deanshanger Primary School',
completedText: 'Completed',
projectAssignment: {
deliveryOfficer: 'Richika Dogra',
assignedOfficerMessage: 'Project is assigned',
deliveryOfficer: 'Chris Sherlock',
assignedOfficerMessage: 'Project is assigned',
},
schoolOverview: {
pan: '98765',
pfiDescription: 'PFI Description',
distance: '15',
distanceDecription: 'Distance description',
mp: 'Important Politician, Independent',
pan: '999',
pfiDescription: 'PFI Description',
distance: '15',
distanceDecription: 'Distance description',
mp: 'Important Politician, Independent',
},
budget: {
endOfFinanicalYear: currentDate,
forecastedRevenueCurrentYear: 20,
forecastedCapitalCurrentYear: 10,
endOfNextFinancialYear: nextYearDate,
forecastedRevenueNextYear: 15,
forecastedCapitalNextYear: 12
endOfFinanicalYear: currentDate,
forecastedRevenueCurrentYear: 20,
forecastedCapitalCurrentYear: 10,
endOfNextFinancialYear: nextYearDate,
forecastedRevenueNextYear: 15,
forecastedCapitalNextYear: 12
},
pupilForecast: {
additionalInfomation: 'Pupil Forecast Additional Information'
additionalInfomation: 'Pupil Forecast Additional Information'
},
rationale: 'This is why this school should become an academy',
risksAndIssues: 'Here are the risks and issues for this conversion',
localAuthority: {
comment: 'Comment',
sharepointLink: 'https://sharepoint.com'
comment: 'Comment',
sharepointLink: 'https://sharepoint.com'
},
performanceInfo: 'Additional Information',
keyStages: [4, 5]
}
keyStages: [2]
}


before(() => {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@ describe('Sponsored conversion journey', { tags: ['@dev', '@stage'] }, () => {
nextMonthDate.setMonth(currentDate.getMonth() + 1);

const testData = {
projectName: 'Sponsored Cypress Project',
projectName: 'Deanshanger Primary School',
completedText: 'Completed',
projectAssignment: {
deliveryOfficer: 'Richika Dogra',
deliveryOfficer: 'Chris Sherlock',
assignedOfficerMessage: 'Project is assigned',
},
schoolOverview: {
pan: '98765',
pan: '999',
pfiDescription: 'PFI Description',
distance: '15',
distanceDecription: 'Distance description',
Expand All @@ -55,7 +55,7 @@ describe('Sponsored conversion journey', { tags: ['@dev', '@stage'] }, () => {
sharepointLink: 'https://sharepoint.com'
},
performanceInfo: 'Additional Information',
keyStages: [4, 5]
keyStages: [2]
}

before(() => {
Expand Down

0 comments on commit afd4ad2

Please sign in to comment.