diff --git a/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/Accessibility-check/accessibility-check.cy.js b/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/Accessibility-check/accessibility-check.cy.js
deleted file mode 100644
index dc12e5886..000000000
--- a/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/Accessibility-check/accessibility-check.cy.js
+++ /dev/null
@@ -1,27 +0,0 @@
-// ///
-// import conversionLinks from '../../fixtures/conversionLinks.json'
-
-
-// const wcagStandards = ["wcag22aa"];
-// const impactLevel = ["critical", "minor", "moderate", "serious"];
-// const continueOnFail = false;
-
-// Cypress._.each(['ipad-mini'], (viewport) => {
-// describe(`Check accessibility of the different pages ${viewport}`, function () {
-// conversionLinks.forEach((link) => {
-
-// it('Validate accessibility on different pages on Dev env.', function () {
-// let url = Cypress.env('url')
-// if (url.toString().includes('dev')) {
-// cy.visit(url)
-// cy.visit(url + link)
-// cy.excuteAccessibilityTests(wcagStandards, continueOnFail, impactLevel)
-// }
-// else {
-// cy.log('Staging env.') //Accessibility check only at Dev. env. atm
-// Cypress.runner.stop()
-// }
-// })
-// })
-// })
-// })
diff --git a/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/Cookies/cookie-content.cy.js b/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/Cookies/cookie-content.cy.js
deleted file mode 100644
index 52a2840fd..000000000
--- a/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/Cookies/cookie-content.cy.js
+++ /dev/null
@@ -1,57 +0,0 @@
-Cypress._.each(['ipad-mini'], (viewport) => {
- describe(`112372: Cookie content details on Conversion on ${viewport}`, () => {
- beforeEach(() => {
- cy.viewport(viewport);
- cy.login();
- })
-
- afterEach(() => {
- cy.clearCookies();
- });
-
- it('TC01: should navigate to preference page when user click on collect information link', () => {
- //Log the test run environment
- cy.url().then((url) => {
- cy.log('Tests running on env.: ' + url)
- })
-
- //Navigate to collect information link
- cy.get('[data-test="cookie-banner-link-1"]')
- .should('have.text', 'collect information')
- .click();
- cy.url().then(href => {
- expect(href).includes('/cookie-preferences');
- cy.get('h1').contains('Cookie preferences');
- });
- });
-
- it('TC02: should navigate to preference page when user click on conversion part of our service link', () => {
- cy.get('[data-test="cookie-banner-conversion-link"]')
- .should('contain', 'conversions part of our service')
- .click();
- cy.url().then(href => {
- expect(href).includes('/project-list');
- });
- });
-
- it('TC03: should navigate to preference page when user click on Accept cookies link', () => {
- cy.get('[data-test="cookie-banner-accept"]')
- .should('contain', 'Accept cookies for the conversions part of this service')
- .click();
- cy.url().then(href => {
- expect(href).includes('/project-list');
- cy.get('[data-cy="select-projectlist-filter-count"]');
- });
- });
-
- it('TC04: should navigate to preference page when user click on set your cookie preferences link', () => {
- cy.get('[data-test="cookie-banner-link-2"]')
- .should('have.text', 'set your cookie preferences')
- .click();
- cy.url().then(href => {
- expect(href).includes('/cookie-preferences');
- cy.get('h1').contains('Cookie preferences');
- });
- });
- });
-});
diff --git a/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/Cookies/happy-path-cookie-consent-preferences.cy.js b/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/Cookies/happy-path-cookie-consent-preferences.cy.js
deleted file mode 100644
index 6e6747424..000000000
--- a/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/Cookies/happy-path-cookie-consent-preferences.cy.js
+++ /dev/null
@@ -1,62 +0,0 @@
-// ///
-
-// Cypress._.each(['ipad-mini'], (viewport) => {
-// describe(`86314 Cookie consent details on ${viewport}`, () => {
-// beforeEach(() => {
-// cy.login({titleFilter: 'Gloucester school'})
-// cy.viewport(viewport)
-// cy.selectSchoolListing(0)
-// cy.url().then(url => {
-// //Changes the current URL
-// let modifiedUrl = url + '/confirm-general-information'
-// cy.visit(modifiedUrl)
-// });
-// })
-
-// it('TC01: should show top cookie banner when no consent option set', () => {
-// cy.get('[data-test="cookie-banner"]').should('be.visible')
-// });
-
-// context("when cookie banner clicked", () => {
-// beforeEach(() => {
-// cy.get('[data-test="cookie-banner-accept"]').click()
-// })
-
-// it('TC02: should consent to cookies from cookie header button', () => {
-// cy.getCookie('.ManageAnAcademyConversion.Consent')
-// .should('have.property', 'value', 'True');
-// });
-
-// it('TC03: should hide the cookie banner when consent has been given', () => {
-// cy.get("[data-test='cookie-banner']").should('not.exist')
-// });
-// })
-
-// context("when footer link clicked", () => {
-// beforeEach(() => {
-// cy.get("[data-test='cookie-preferences']").click()
-// })
-
-// it('TC04: should navigate to cookies page', () => {
-// cy.url().then(href => {
-// expect(href).includes('cookie-preferences')
-// });
-// });
-
-// it('TC05: should set cookie preferences', () => {
-// cy.get('#cookie-consent-deny').click()
-// cy.get("[data-qa='submit']").click()
-// cy.getCookie('.ManageAnAcademyConversion.Consent').should('have.property', 'value', 'False')
-// });
-
-// it('TC06: should return show success banner', () => {
-// cy.get('#cookie-consent-deny').click()
-// cy.get("[data-qa='submit']").click()
-// cy.get('[data-test="success-banner-return-link"]').click()
-// cy.url().then(href => {
-// expect(href).includes('/confirm-general-information')
-// });
-// });
-// })
-// });
-// });
\ No newline at end of file
diff --git a/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/Core-journeys/sponsored-conversion.cy.js b/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/Core-journeys/sponsored-conversion.cy.js
index e57942da0..3169ef5d2 100644
--- a/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/Core-journeys/sponsored-conversion.cy.js
+++ b/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/Core-journeys/sponsored-conversion.cy.js
@@ -13,7 +13,7 @@ import LocalAuthorityInfomation from "../../pages/localAuthorityInformation";
import Performance from "../../pages/performance";
-describe('Sponsored conversion', { tags: ['@dev', '@stage'] }, () => {
+describe('Sponsored conversion journey', { tags: ['@dev', '@stage'] }, () => {
const currentDate = new Date();
const nextYearDate = new Date();
@@ -57,30 +57,25 @@ describe('Sponsored conversion', { tags: ['@dev', '@stage'] }, () => {
performanceInfo: 'Additional Information',
keyStages: [4, 5]
}
-
- beforeEach(() => {
+
+ before(() => {
cy.callAcademisationApi('POST', `cypress-data/add-sponsored-project.cy`, "{}")
- .then(() => {
- projectList.selectProject(testData.projectName)
- });
})
- it('TC01: Sponsored conversion journey ', () => {
- // ---------------------------
- // - Assign Delivery Officer -
- // ---------------------------
+ beforeEach(() => {
+ projectList.selectProject(testData.projectName)
+ })
+ it('TC01: Assign Project', () => {
projectTaskList.selectAssignProject();
projectAssignment.assignProject(testData.projectAssignment.deliveryOfficer)
projectTaskList.getNotificationMessage().should('contain.text', testData.projectAssignment.assignedOfficerMessage);
projectTaskList.getAssignedUser().should('contain.text', testData.projectAssignment.deliveryOfficer);
projectList.filterProjectList(testData.projectName);
projectList.getNthProjectDeliveryOfficer().should('contain.text', testData.projectAssignment.deliveryOfficer);
+ })
- // -------------------
- // - School Overview -
- // -------------------
-
+ it('TC02: School Overview', () => {
projectList.selectProject(testData.projectName);
projectTaskList.selectSchoolOverview();
//PAN
@@ -111,11 +106,9 @@ describe('Sponsored conversion', { tags: ['@dev', '@stage'] }, () => {
schoolOverview.markComplete();
cy.confirmContinueBtn().click();
projectTaskList.getSchoolOverviewStatus().should('contain.text', testData.completedText);
+ })
- // ----------
- // - Budget -
- // ----------
-
+ it('TC03: Budget ', () => {
projectTaskList.selectBudget();
budget.updateBudgetInfomation(testData.budget);
@@ -134,21 +127,16 @@ describe('Sponsored conversion', { tags: ['@dev', '@stage'] }, () => {
budget.markComplete();
cy.confirmContinueBtn().click();
projectTaskList.getBudgetStatus().should('contain.text', testData.completedText);
+ });
-
- // ------------------
- // - Pupil Forecast -
- // ------------------
-
+ it('TC04: Pupil Forecast ', () => {
projectTaskList.selectPupilForecast();
PupilForecast.enterAditionalInfomation(testData.pupilForecast.additionalInfomation);
PupilForecast.getAdditionalInfomation().should('contain.text', testData.pupilForecast.additionalInfomation);
cy.confirmContinueBtn().click();
+ });
- // ----------------------
- // - Conversion Details -
- // ----------------------
-
+ it('TC05: Conversion Details ', () => {
projectTaskList.selectConversionDetails();
// Form 7
@@ -201,33 +189,27 @@ describe('Sponsored conversion', { tags: ['@dev', '@stage'] }, () => {
ConversionDetails.markComplete();
cy.confirmContinueBtn().click();
projectTaskList.getConversionDetailsStatus().should('contain.text', testData.completedText);
+ });
- // -------------
- // - Rationale -
- // -------------
-
+ it('TC06: Rationale ', () => {
projectTaskList.selectRationale();
Rationale.changeRationale(testData.rationale);
Rationale.getRationale().should('contain.text', testData.rationale);
Rationale.markComplete();
cy.confirmContinueBtn().click();
projectTaskList.getRationaleStatus().should('contain.text', testData.completedText);
+ });
- // --------------------
- // - Risks and issues -
- // --------------------
-
+ it('TC07: Risks and issues ', () => {
projectTaskList.selectRisksAndIssues();
RisksAndIssues.changeRisksAndIssues(testData.risksAndIssues);
RisksAndIssues.getRisksAndIssues().should('contain.text', testData.risksAndIssues);
RisksAndIssues.markComplete();
cy.confirmContinueBtn().click();
projectTaskList.getRisksAndIssuesStatus().should('contain.text', testData.completedText);
+ });
- // -------------------
- // - Local Authority -
- // -------------------
-
+ it('TC08: Local authority ', () => {
projectTaskList.selectLA();
LocalAuthorityInfomation.changeTemplateDates(oneMonthAgoDate, nextMonthDate);
LocalAuthorityInfomation.getTemplateSentDate().should('contain.text', oneMonthAgoDate.getDate());
@@ -247,22 +229,20 @@ describe('Sponsored conversion', { tags: ['@dev', '@stage'] }, () => {
cy.confirmContinueBtn().click();
projectTaskList.getLAStatus().should('contain.text', testData.completedText);
+ });
- // --------------------
- // - Performance Info -
- // --------------------
-
+ it('TC09: Performance Info ', () => {
projectTaskList.selectOfsted();
Performance.changeOfstedInfo(testData.performanceInfo);
Performance.getOfstedInfo().should('contain.text', testData.performanceInfo);
cy.confirmContinueBtn().click();
- for(const keyStage of testData.keyStages){
+ for (const keyStage of testData.keyStages) {
console.log(keyStage)
projectTaskList.selectKeyStage(keyStage);
Performance.changeKeyStageInfo(keyStage, testData.performanceInfo);
Performance.getKeyStageInfo(keyStage).should('contain.text', testData.performanceInfo);
cy.confirmContinueBtn().click();
}
- })
+ });
})
diff --git a/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/Disable-x-xss-protection/disable-x-xss-protection.cy.js b/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/Disable-x-xss-protection/disable-x-xss-protection.cy.js
deleted file mode 100644
index 318a586d7..000000000
--- a/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/Disable-x-xss-protection/disable-x-xss-protection.cy.js
+++ /dev/null
@@ -1,19 +0,0 @@
-///
-
-Cypress._.each(['ipad-mini'], (viewport) => {
- describe(`113746 X-xss-Protection Header on conversion ${viewport}`, () => {
- beforeEach(() => {
- cy.login()
- cy.viewport(viewport)
- });
-
- it('TC01: should be disabled', () => {
- cy.url().then(urlString => {
- let modifiedUrl = urlString
- cy.request('GET', modifiedUrl).then((response) => {
- expect(response.headers).to.have.property('x-xss-protection', '0')
- });
- });
- });
- });
-});
diff --git a/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/Error-404-checks-url-routing/advisory-board-urls.cy.js b/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/Error-404-checks-url-routing/advisory-board-urls.cy.js
deleted file mode 100644
index 2e96ccfe3..000000000
--- a/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/Error-404-checks-url-routing/advisory-board-urls.cy.js
+++ /dev/null
@@ -1,69 +0,0 @@
-// ///
-
-// import ProjectList from '../../pages/projectList'
-
-// Cypress._.each(['ipad-mini'], (viewport) => {
-// describe(`86339 validate advisory board urls on ${viewport}`, () => {
-// beforeEach(() => {
-// ProjectList.selectProject().then(id => {
-// cy.sqlServer(`update
-// academisation.Project set
-// LocalAuthorityInformationTemplateReturnedDate = '2023-01-01',
-// LocalAuthorityInformationTemplateSentDate = '2023-01-01',
-// HeadTeacherBoardDate = '2024-01-01'
-// where Id = ${id}`);
-// });
-// });
-
-// after(function () {
-// cy.clearLocalStorage()
-// });
-
-// it('TC01: should correctly render a page when user visits /confirm-school-trust-information-project-dates/advisory-board-date', () => {
-// cy.viewport(viewport)
-// //Changes the current URL
-// cy.urlPath().then(url => cy.visit(url + '/confirm-school-trust-information-project-dates/advisory-board-date'));
-// cy.get('h1').contains('Set the advisory board date')
-// });
-
-// it('TC02: should correctly render a page when user visits /confirm-school-trust-information-project-dates/previous-advisory-board-date', () => {
-// cy.viewport(viewport)
-// cy.urlPath().then(url => cy.visit(url + '/confirm-school-trust-information-project-dates/previous-advisory-board-date'));
-// //Changes the current URL
-
-// cy.get('h1').contains('Date of previous advisory board')
-// });
-
-// it('TC03: should correctly render a page when user visits /confirm-school-trust-information-project-dates/previous-advisory-board', () => {
-// cy.viewport(viewport)
-// //Changes the current URL
-// cy.urlPath().then(url => cy.visit(url + '/confirm-school-trust-information-project-dates/previous-advisory-board'));
-// cy.get('h1').contains('Has this project been to a previous advisory board?')
-// });
-
-// it('TC04: should correctly render a page when user visits /preview-project-template', () => {
-// cy.viewport(viewport)
-// //Changes the current URL
-// cy.urlPath().then(url => cy.visit(url + '/preview-project-template'));
-// cy.get('h1').contains('Preview project template')
-// });
-
-// // download-project-template feature is currently removed
-// it('TC05: should correctly render a page when user visits /download-project-template', () => {
-// cy.viewport(viewport)
-// //Changes the current URL
-// cy.urlPath().then(url => cy.visit(url + '/download-project-template'));
-// cy.get('h1').contains('Download project template')
-// });
-
-// it('TC06: Should generate correct error message if and when text is typed in date field', () => {
-// cy.viewport(viewport)
-// cy.urlPath().then(url => cy.visit(url + '/confirm-local-authority-information-template-dates'));
-// cy.get('[data-test="change-la-info-template-sent-date"]').click()
-// cy.get('[id="la-info-template-sent-date-day"]').clear()
-// cy.get('[id="la-info-template-sent-date-day"]').type('a')
-// cy.get('[data-module="govuk-button"]').click()
-// cy.get('[id="error-summary-title"]').invoke('text').should('contain', 'There is a problem')
-// });
-// });
-// });
\ No newline at end of file
diff --git a/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/Footer/footer-links-navigation.cy.js b/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/Footer/footer-links-navigation.cy.js
deleted file mode 100644
index fff946d95..000000000
--- a/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/Footer/footer-links-navigation.cy.js
+++ /dev/null
@@ -1,31 +0,0 @@
-///
-
-Cypress._.each(['ipad-mini'], (viewport) => {
- describe(`112379: Footer Links on ${viewport}`, () => {
- beforeEach(() => {
- cy.login();
- cy.viewport(viewport);
- });
-
- it('TC01: should navigate to Get Support email link', () => {
- cy.get('h2').should('contain', 'Get support');
- cy.get('li').should('contain', 'Email');
- cy.get('[data-cy="get-support-email"]')
- .should('contain', 'regionalservices.rg@education.gov.uk');
- });
-
- it('TC02: should navigate to Give Feedback link', () => {
- cy.get('h2').should('contain', 'Give feedback');
- cy.get('li').should('contain', 'Email');
- cy.get('#footer-feedback-link')
- .should('contain', 'Give feedback on Prepare conversions and transfers (opens in a new tab)');
- });
-
- it('TC03: should not have unwanted content', () => {
- cy.get('h2').should('contain', 'Get support');
- cy.get('li').should('contain', 'Email');
- cy.get('[data-cy="get-support-section"]')
- .should('not.have.text', "You'll get a response in 2 working days");
- });
- });
-});
diff --git a/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/Form-a-MAT/add-form-a-mat-project.cy.js b/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/Form-a-MAT/add-form-a-mat-project.cy.js
deleted file mode 100644
index 950a93868..000000000
--- a/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/Form-a-MAT/add-form-a-mat-project.cy.js
+++ /dev/null
@@ -1,94 +0,0 @@
-// ///
-// let APPLICATION_ID = 31;
-// let URN_ID = null;
-// let apiKey = Cypress.env('academisationApiKey');
-// describe('Add Form-a-MAT application through API request and verify on the frontend', () => {
-// beforeEach(() => {
-// cy.sqlServer(`UPDATE [academisation].[ConversionApplication]
-// SET [academisation].[ConversionApplication].ApplicationStatus = 'InProgress'
-// SELECT TOP (1000) [Id]
-// ,[ApplicationType]
-// ,[CreatedOn]
-// ,[LastModifiedOn]
-// ,[ApplicationStatus]
-// ,[FormTrustId]
-// ,[JoinTrustId]
-// ,[ApplicationSubmittedDate]
-// ,[DynamicsApplicationId]
-// ,[ApplicationReference]
-// FROM [academisation].[ConversionApplication]
-// WHERE [academisation].[ConversionApplication].ApplicationReference = 'A2B_31'`);
-// });
-
-// it('TC01: should create a Form-a-MAT project using Api', () => {
-// cy.callAcademisationApi('POST', `application/${APPLICATION_ID}/submit`)
-// .then((response) => {
-// console.log(response.body)
-// assert.equal(response.status, 201)
-// expect(response.body).to.not.be.null
-// console.log(response)
-// expect(response.body).to.be.a('array')
-// expect(response.status).to.equal(201);
-// expect(response.body[0]).to.have.property('academyTypeAndRoute');
-// expect(response.body[0].academyTypeAndRoute).to.equal('Form a Mat');
-// expect(response.body[0]).to.have.property('schoolName');
-// expect(response.body[0]).to.have.property('urn');
-// URN_ID = response.body[0].urn;
-// console.log(URN_ID)
-// expect(response.body[0]).to.have.property('projectStatus');
-// // expect(response.body[0]).to.have.property('nameOfTrust');
-// expect(response.body[1]).to.have.property('academyTypeAndRoute');
-// expect(response.body[1].academyTypeAndRoute).to.equal('Form a Mat');
-// expect(response.body[1]).to.have.property('schoolName');
-// expect(response.body[1]).to.have.property('urn');
-// });
-
-// //TC02: should NOT create a Form a MAT project if it's NOT in Progress to submit
-// cy.callAcademisationApi('POST', `application/${APPLICATION_ID}/submit`, null, false)
-// .then((response) => {
-// expect(response.status).to.equal(400);
-// expect(response.body[0]).to.have.property('errorMessage');
-// expect(response.body[0].errorMessage).to.equal('Application must be In Progress to submit');
-// });
-// });
-
-// it('TC03: should create a Form a MAT project on the FE with correct details', () => {
-// cy.login({ titleFilter: 'Redruth School' })
-// cy.get('[data-cy="select-projectlist-filter-row"]').first().should('be.visible')
-// .invoke('text')
-// .then((text) => {
-// if (text.includes('Route: Form a MAT')) {
-// cy.get('#urn-0').invoke('text')
-// .should('match', /\D+\d+/);
-// cy.get('#urn-0').contains('URN: ')
-// cy.get('#application-to-join-trust-0').contains('Application to join a trust: ')
-// cy.get('#application-received-date-0').contains('Project created date: ')
-// cy.get('#opening-date-0').contains('Opening date: ')
-// cy.get('#school-name-0').click()
-// cy.url().should('include', 'form-a-mat')
-
-// //verify school application form tab info
-// cy.get('[class="moj-sub-navigation__link"]').contains('School application form')
-// .click()
-// cy.schoolApplicationForm();
-
-// //verify Other schools in this MAT tab info
-// cy.get('[class="moj-sub-navigation__link"]').contains('Other schools in this MAT')
-// .click()
-// cy.schoolsInThisMAT();
-
-// //navigate to other school
-// cy.get('#school-name-0').click()
-// cy.title().should('contain', 'School Application Form')
-// cy.get('h1').should('not.contain', 'Page not found')
-// cy.get('[class="moj-sub-navigation__link"]').contains('Other schools in this MAT')
-// .click()
-// cy.get('h1').should('not.contain', 'Page not found')
-// }
-// else {
-// cy.log('this is not Form a MAT project')
-// Cypress.runner.stop()
-// }
-// });
-// });
-// });
diff --git a/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/Generate-project-template/error-handling-advisory-board-date-errors.cy.js b/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/Generate-project-template/error-handling-advisory-board-date-errors.cy.js
deleted file mode 100644
index 1ee591526..000000000
--- a/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/Generate-project-template/error-handling-advisory-board-date-errors.cy.js
+++ /dev/null
@@ -1,37 +0,0 @@
-///
-
-Cypress._.each(['ipad-mini'], (viewport) => {
- describe(`86341: Error messaging should be correct on ${viewport}`, () => {
- beforeEach(() => {
- cy.viewport(viewport)
- cy.login({titleFilter: 'Gloucester school'})
- cy.get('#school-name-0').click()
- })
-
- it('TC01: Should open first school in the list', () => {
- cy.get('*[href*="/confirm-school-trust-information-project-dates"]')
- .should('be.visible')
- });
-
- context("when form submitted", () => {
- beforeEach(() => {
- cy.get('*[href*="/confirm-school-trust-information-project-dates"]').click()
- cy.get('*[data-test="change-advisory-board-date"]').click()
- })
-
- it('TC03: Should display "Advisory Board must be a valid date" when submitting invalid month', () => {
- cy.submitDateSchoolTrust(11, 222, 2005)
- cy.saveAndContinueButton().click()
- cy.get('.govuk-error-summary__list li a')
- .should('have.text', 'Month must be between 1 and 12')
- });
-
- it('TC04: Should display "Advisory Board date must be a valid date" when submitting out-of-index month', () => {
- cy.submitDateSchoolTrust(11, 0, 2005)
- cy.saveAndContinueButton().click()
- cy.get('.govuk-error-summary__list li a')
- .should('have.text', 'Month must be between 1 and 12')
- });
- })
- });
-});
\ No newline at end of file
diff --git a/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/Involuntary-project/annex-b-form-tab.cy.js b/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/Involuntary-project/annex-b-form-tab.cy.js
deleted file mode 100644
index 67872a016..000000000
--- a/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/Involuntary-project/annex-b-form-tab.cy.js
+++ /dev/null
@@ -1,55 +0,0 @@
-// ///
-
-// Cypress._.each(['ipad-mini'], (viewport) => {
-// describe(`126074: Verify Annex B form tab for involuntary project ${viewport}`, { tags: ['@dao'] }, () => {
-// beforeEach(() => {
-// cy.login({ titleFilter: 'Gloucester school' })
-// cy.viewport(viewport)
-// cy.get('[data-cy="select-projectlist-filter-row"]').first().should('be.visible')
-// .invoke('text')
-// .then((text) => {
-// if (text.includes('Route: Involuntary conversion')) {
-// cy.get('[id="school-name-0"]').click()
-// cy.url().should('include', '/task-list')
-// cy.get(':nth-child(1) > .moj-sub-navigation__link').should('contain', 'Task list')
-// cy.get(':nth-child(3) > .moj-sub-navigation__link').should('contain', 'Project notes')
-// cy.get(':nth-child(2) > .moj-sub-navigation__link').should('contain', 'Annex B form')
-// .click()
-// cy.title('Confirm Annex B received - Manage an academy conversion')
-// cy.get('[data-cy="select-annex-b-form-returned-change"] > .govuk-link').should('contain', 'Change')
-// .click()
-// cy.title('Have you saved the Annex B form - Manage an academy conversion')
-// cy.get('.govuk-heading-l').should('have.text', `Have you saved the school's completed Annex B form in SharePoint?`)
-// cy.get('.govuk-details__summary-text').should('contain', 'What is the Annex B form?')
-// }
-// else {
-// cy.log('this is not involuntary project')
-// }
-// });
-// });
-
-// it('TC01: Changes should show in summary page when Yes option is selected', () => {
-// cy.get('[data-cy="select-radio-yes"]').click()
-// cy.get('[data-cy="select-sharepoint-url"]').type('test link')
-// cy.get('[data-cy="select-save-and-continue"]').click()
-// cy.get('[data-cy="select-annex-b-form-returned-answer"]').should('contain', 'Yes')
-// cy.get('[data-cy="select-annex-b-sharepoint-link"] > .govuk-summary-list__key').should('be.visible')
-// cy.get('[data-cy="select-annex-b-sharepoint-change"] > .govuk-link').should('be.visible')
-// })
-
-// it('TC02: Changes should show in summary page when No option is selected', () => {
-// cy.get('[data-cy="select-radio-no"]').click()
-// cy.get('[data-cy="select-save-and-continue"]').click()
-// cy.get('[data-cy="select-annex-b-form-returned-answer"]').should('contain', 'No')
-// })
-
-// it('TC03: Error message should show when user does not enter link for option Yes', () => {
-// cy.get('[data-cy="select-radio-yes"]').click()
-// cy.get('[data-cy="select-sharepoint-url"]')
-// cy.get('[data-cy="select-save-and-continue"]').click()
-// cy.get('#AnnexFormUrl-error').should('contain', 'You must enter valid link for the Annex B form')
-// cy.get('.govuk-error-summary')
-// cy.get('[data-cy="error-summary"] > li').should('contain', 'You must enter valid link for the Annex B form')
-// })
-// });
-// });
\ No newline at end of file
diff --git a/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/Involuntary-project/change-school-and-trust.cy.js b/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/Involuntary-project/change-school-and-trust.cy.js
deleted file mode 100644
index 74348e600..000000000
--- a/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/Involuntary-project/change-school-and-trust.cy.js
+++ /dev/null
@@ -1,42 +0,0 @@
-// /* eslint-disable cypress/no-unnecessary-waiting */
-// ///
-
-// Cypress._.each(['ipad-mini'], (viewport) => {
-// describe(`119898 Change school for Involuntry project on ${viewport}`, { tags: ['@dao'] }, () => {
-// beforeEach(() => {
-// cy.login({ titleFilter: 'Gloucester school' })
-// cy.viewport(viewport);
-// cy.get('[role="button"]').should('contain.text', "Start a new involuntary conversion project");
-// cy.get('a[href="/start-new-project/school-name"]').click();
-// cy.selectSchool();
-// cy.selectTrust();
-// cy.get('h1').should('contain.text', 'Check school and trust details');
-// });
-
-// it('TC01: should update the changed school', () => {
-// cy.get('[data-cy="change-school"]').should('be.visible').click();
-// cy.wait(500) //need to explicitly wait due to performance issue
-// cy.get('.govuk-label').should('contain', 'Which school is involved?');
-// cy.get('[id="SearchQuery"]').first().clear();
-// cy.get('[id="SearchQuery"]').first().type('lon');
-// cy.get('#SearchQuery__option--0').click();
-// cy.get('[data-id="submit"]').click();
-// cy.url().should('include', 'start-new-project/check-school-trust-details');
-// cy.get('[data-cy="school-name"]').should('include.text', 'Lon');
-// });
-
-// it('TC02: should update the changed trust', () => {
-// cy.get('[data-cy="change-trust"]').should('contain', 'Change').click()
-// cy.wait(500) //need to explicitly wait due to performance issue
-// cy.get('#query-hint').should('contain.text', 'Search by name, UKPRN or Companies House number.')
-// cy.url().should('include', '/start-new-project/trust-name?urn')
-// cy.get('.govuk-label').should('contain', 'Which trust is involved?');
-// cy.get('[id="SearchQuery"]').first().clear();
-// cy.get('[id="SearchQuery"]').first().type('bristol');
-// cy.get('#SearchQuery__option--0').click();
-// cy.get('[data-id="submit"]').click();
-// cy.url().should('include', 'start-new-project/check-school-trust-details');
-// cy.get('[data-cy="trust-name"]').should('include.text', 'BRISTOL');
-// });
-// });
-// });
diff --git a/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/Involuntary-project/check-validation.cy.js b/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/Involuntary-project/check-validation.cy.js
deleted file mode 100644
index 00151ad83..000000000
--- a/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/Involuntary-project/check-validation.cy.js
+++ /dev/null
@@ -1,49 +0,0 @@
-// ///
-
-// Cypress._.each(['ipad-mini'], (viewport) => {
-// describe(`119898 Check validation for school and trust on ${viewport}`, { tags: ['@dao'] }, () => {
-// beforeEach(() => {
-// cy.login({ titleFilter: 'Gloucester school' })
-// cy.viewport(viewport)
-// cy.get('[role="button"]').should('contain.text', "Start a new involuntary conversion project")
-// cy.get('a[href="/start-new-project/school-name"]').click()
-// })
-// afterEach(() => {
-// cy.clearCookies();
-// });
-
-// it('TC01: should display an error message for blank school-name', () => {
-// cy.get('.govuk-label').should('contain', 'Which school is involved?')
-// cy.get('[data-id="submit"]').click()
-// cy.get('[data-cy="error-summary"]')
-// .should('contains.text', 'Enter the school name or URN')
-// });
-
-// //skip TC02 as the bug exist
-// it.skip('TC02: should display an error message for invalid school-name', () => {
-// cy.get('.govuk-label').should('contain', 'Which school is involved?')
-// cy.get('[id="SearchQuery"]').first().type('6657££$$')
-// cy.get('[data-id="submit"]').click()
-// cy.get('[data-cy="error-summary"]')
-// .should('contains.text', 'Enter the school name or URN')
-// });
-
-// it('TC03: should display an error message for blank trust-name', () => {
-// cy.selectSchool()
-// cy.get('.govuk-label').should('contain', 'Which trust is involved?')
-// cy.get('[data-id="submit"]').click()
-// cy.get('[data-cy="error-summary"]')
-// .should('contains.text', 'Enter the Trust name, UKPRN or Companies House number')
-// });
-// //skip TC04 as the bug exist
-// it.skip('TC04: should display an error message for invalid trust-name', () => {
-// cy.get('[role="button"]').should('contain.text', "Start a new involuntary conversion project")
-// cy.get('a[href="/start-new-project/school-name"]').click()
-// cy.get('.govuk-label').should('contain', 'Which trust is involved?')
-// cy.get('[id="SearchQuery"]').first().type('aabbcc')
-// cy.get('[data-id="submit"]').click()
-// cy.get('[data-cy="error-summary"]')
-// .should('contains.text', 'Enter the Trust name, UKPRN or Companies House number')
-// });
-// });
-// });
\ No newline at end of file
diff --git a/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/Involuntary-project/create-involuntry-project.cy.js b/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/Involuntary-project/create-involuntry-project.cy.js
deleted file mode 100644
index afe5ee75f..000000000
--- a/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/Involuntary-project/create-involuntry-project.cy.js
+++ /dev/null
@@ -1,38 +0,0 @@
-// ///
-
-// Cypress._.each(['ipad-mini'], (viewport) => {
-// describe(`119898 Create Involuntry project and generate it's template on ${viewport}`, { tags: ['@dao'] }, () => {
-// beforeEach(() => {
-// cy.login()
-// cy.viewport(viewport)
-// })
-
-// afterEach(() => {
-// cy.clearCookies();
-// });
-
-// it('TC01: should display correct details of the project and generate template', () => {
-// cy.createInvoluntaryProject();
-// cy.url().should('include', 'project-list')
-// cy.get('[aria-label="sort-by"]').should('contain.text', 'Sorted by: Project created date')
-// cy.get('[data-cy="select-projectlist-filter-row"]').should('contain.text', 'Route: Involuntary conversion')
-// cy.get('[id="application-received-date-0"]').should('contain.text', 'Project created date: ')
-// cy.get('[id="school-name-0"]').click()
-// cy.url().should('include', 'task-list')
-// //check all the links for create project template
-// cy.navigateToAllCreateProjectTemplateLinks()
-// //preview project template
-// cy.get('#preview-project-template-button').click()
-// cy.get('h1').should('not.contain', 'Page not found')
-// cy.get('[role="button"]').contains('Generate project template').click()
-// cy.get('[data-cy="error-summary"]').click()
-// cy.get('h1').should('contain', 'Set the advisory board date')
-// cy.setAdvisoryBoardDate(12, 2, 2026)
-// cy.get('h1').should('contain.text', 'Preview project template')
-// //generate project template
-// cy.get('[role="button"]').contains('Generate project template').click()
-// cy.get('h1').should('not.contain', 'Page not found')
-// cy.get('h1').should('contain.text', 'Download project template')
-// });
-// })
-// })
diff --git a/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/Involuntary-project/date-dao-pack-sent.cy.js b/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/Involuntary-project/date-dao-pack-sent.cy.js
deleted file mode 100644
index 90bcbd58c..000000000
--- a/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/Involuntary-project/date-dao-pack-sent.cy.js
+++ /dev/null
@@ -1,52 +0,0 @@
-// ///
-
-// Cypress._.each(['ipad-mini'], (viewport) => {
-// describe(`121477: Add DAO pack sent page on Involuntry project on ${viewport}`, { tags: ['@dao'] }, () => {
-// beforeEach(() => {
-// cy.login({ titleFilter: 'Gloucester school' })
-// cy.viewport(viewport)
-// cy.get('[data-cy="select-projectlist-filter-row"]').first().should('be.visible')
-// .invoke('text')
-// .then((text) => {
-// if (text.includes('Route: Involuntary conversion')) {
-// cy.get('[id="school-name-0"]').click();
-// cy.url().should('include', '/task-list')
-// cy.get('[aria-describedby="school-and-trust-information-status"]').click()
-// cy.url().should('include', '/confirm-school-trust-information-project-dates')
-// cy.get('[class="govuk-summary-list"]').should('be.visible')
-// .invoke('text')
-// .then((text) => {
-// text.includes('Date directive academy order (DAO) pack sent')
-// cy.get('[data-test="change-dao-pack-sent-date"]').should('contain', 'Change')
-// .click()
-// cy.get('h1').should('contain', 'Date you sent the directive academy order (DAO) pack to the school')
-// })
-// }
-// else {
-// cy.log('this is not involuntary project')
-// }
-// });
-// });
-
-// it('TC01: Date DAO should display when user submitted the date', () => {
-// cy.submitDAODate(11, 1, 2023)
-// cy.get('#save-and-continue-button').click()
-// cy.get('#dao-pack-sent-date').should('contain', '11 January 2023')
-// })
-
-// it('TC02: Validation should work on DAO page when user enter future date', () => {
-// //future date
-// cy.submitDAODate(11, 1, 2025)
-// cy.get('#save-and-continue-button').click()
-// cy.get('#dao-pack-sent-date-error-link').should('contain.text', 'DAO pack sent date must be in the past')
-// //incorrect day
-// cy.submitDAODate(111, 1, 2023)
-// cy.get('#save-and-continue-button').click()
-// cy.get('#dao-pack-sent-date-error-link').should('contain.text', 'Day must be between 1 and 31')
-// //incorrect month
-// cy.submitDAODate(11, 13, 2025)
-// cy.get('#save-and-continue-button').click()
-// cy.get('#dao-pack-sent-date-error-link').should('contain.text', 'Month must be between 1 and 12')
-// });
-// });
-// });
\ No newline at end of file
diff --git a/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/Involuntary-project/form-7.cy.js b/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/Involuntary-project/form-7.cy.js
deleted file mode 100644
index c8d665c8f..000000000
--- a/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/Involuntary-project/form-7.cy.js
+++ /dev/null
@@ -1,74 +0,0 @@
-// ///
-
-// Cypress._.each(['ipad-mini'], (viewport) => {
-// describe(`121477: Add Form 7 for Confirm school and trust information and project dates page on ${viewport}`, { tags: ['@dao'] }, () => {
-// beforeEach(() => {
-// cy.login({ titleFilter: 'Gloucester school' })
-// cy.viewport(viewport)
-// cy.get('[data-cy="select-projectlist-filter-row"]').first().should('be.visible')
-// .invoke('text')
-// .then((text) => {
-// if (text.includes('Route: Involuntary conversion')) {
-// cy.get('[id="school-name-0"]').click();
-// cy.url().should('include', '/task-list')
-// cy.get('[aria-describedby="school-and-trust-information-status"]').click()
-// cy.url().should('include', '/confirm-school-trust-information-project-dates')
-// cy.get('[class="govuk-summary-list"]').should('be.visible')
-// .invoke('text')
-// .then((text) => {
-// text.includes('Has the Schools Notification Mailbox (SNM) received a Form 7?')
-// cy.get('[data-test="change-form-7-received"]').should('contain', 'Change')
-// .click()
-// })
-// }
-// else {
-// cy.log('this is not involuntary project')
-// }
-// });
-// });
-
-// afterEach(() => {
-// cy.clearCookies();
-// });
-
-// it('TC01: Form 7 lables should display when user opted for Yes option ', () => {
-// cy.get('h1').should('contain', 'Has the Schools Notification Mailbox (SNM) received a Form 7?')
-// cy.get('[for="form-7-received"]').first().click()
-// cy.get('[id="save-and-continue-button"]').click()
-// cy.contains('Date SNM received Form 7')
-// cy.get('[data-test="change-form-7-received-date"]').click()
-// cy.get('h1').should('contain', 'Date SNM received Form 7')
-// cy.submitDateSNMReceivedForm(11, 2, 2023)
-// cy.get('[data-cy="select-common-submitbutton"]').click()
-// cy.get('[id="form-7-received-date"]').should('contain', '11 February 2023')
-// });
-
-// it('TC02: Date SNM should not display when user opted for No option ', () => {
-// cy.get('h1').should('contain', 'Has the Schools Notification Mailbox (SNM) received a Form 7?')
-// cy.get('#form-7-received-2').click()
-// cy.get('[id="save-and-continue-button"]').click()
-// cy.get('#form-7-received').should('contain', 'No')
-// });
-
-// it('TC03: Validation error messages should show on form 7 page ', () => {
-// cy.get('h1').should('contain', 'Has the Schools Notification Mailbox (SNM) received a Form 7?')
-// cy.get('[for="form-7-received"]').first().click()
-// cy.get('[id="save-and-continue-button"]').click()
-// cy.contains('Date SNM received Form 7')
-// cy.get('[data-test="change-form-7-received-date"]').click()
-// cy.get('h1').should('contain', 'Date SNM received Form 7')
-// //incorrect year
-// cy.submitDateSNMReceivedForm(11, 2, 2025)
-// cy.get('[data-cy="select-common-submitbutton"]').click()
-// cy.get('#form-7-received-date-error-link').should('contain', 'Form 7 Received Date date must be in the past')
-// //incorrect month
-// cy.submitDateSNMReceivedForm(11, 13, 2023)
-// cy.get('[data-cy="select-common-submitbutton"]').click()
-// cy.get('#form-7-received-date-error-link').should('contain', 'Month must be between 1 and 12')
-// //incorrect day
-// cy.submitDateSNMReceivedForm(32, 1, 2023)
-// cy.get('[data-cy="select-common-submitbutton"]').click()
-// cy.get('#form-7-received-date-error-link').should('contain', 'Day must be between 1 and 31')
-// });
-// });
-// });
\ No newline at end of file
diff --git a/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/Landing-page/landing-page.cy.js b/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/Landing-page/landing-page.cy.js
deleted file mode 100644
index dd5727dd7..000000000
--- a/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/Landing-page/landing-page.cy.js
+++ /dev/null
@@ -1,27 +0,0 @@
-// ///
-
-// const url = Cypress.env('url') + '/project-type'
-
-// describe('Landing Page', () => {
-// beforeEach(() => {
-// cy.visit(url)
-
-// })
-
-// after(function () {
-// cy.clearLocalStorage()
-// })
-
-// it('TC01: Navigates to Conversion site from landing page, and clicks back to landing page', () => {
-// cy.get('[data-cy="select-projecttype-input-conversion"]').click()
-// cy.get('[data-cy="select-common-submitbutton"]').click()
-// cy.get('[data-cy="select-heading"]').should('contain.text', 'Manage an academy conversion')
-// cy.get('[data-cy="select-backlink"]').click()
-// cy.get('[data-cy="select-heading"]').should('contain.text', 'What do you want to do?')
-// })
-
-// it('TC02: Checks error message on unselected project' ,() => {
-// cy.continueBtn().click()
-// cy.get('[id="ProjectType-error-link"]').should('contain.text', 'Select a project type')
-// })
-// })
\ No newline at end of file
diff --git a/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/Legal-requirements/legal-requirements.cy.js b/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/Legal-requirements/legal-requirements.cy.js
deleted file mode 100644
index c97ea8398..000000000
--- a/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/Legal-requirements/legal-requirements.cy.js
+++ /dev/null
@@ -1,127 +0,0 @@
-///
-
-// TO DO: Check Legal Requirement validation on first time use; check Empty tags.
-
-describe('Legal Requirements', { tags: ['@dev', '@stage'] }, () => {
- beforeEach(() => {
- cy.callAcademisationApi('POST', `cypress-data/add-voluntary-project.cy`, "{}")
- .then(() => {
- cy.login({ titleFilter: 'Cypress Project' })
- .then(() => {
- cy.get('[id="school-name-0"]').click();
- cy.get('[data-cy="select-tasklist-links-legalrequirementlinks"]').click()
- });
- });
- })
-
- it('TC01: Answer to Governing Body and changes current answer from Yes, No, Not Applicable ', () => {
- // Clicks on link
- cy.govBodyChangeLink()
- // Selects Yes
- cy.get('[data-cy="select-legal-input-yes"]').click()
- cy.saveAndContinueButton().click()
- cy.govBodyStatus().should('contain.text', 'Yes')
- // Clicks on link
- cy.govBodyChangeLink()
- // Selects No
- cy.get('[data-cy="select-legal-input-no"]').click()
- cy.saveAndContinueButton().click()
- cy.govBodyStatus().should('contain.text', 'No')
- // Clicks on link
- cy.govBodyChangeLink()
- // Selects Not applicable
- cy.get('[data-cy="select-legal-input-notapplicable"]').click()
- cy.saveAndContinueButton().click()
- cy.govBodyStatus().should('contain.text', 'Not applicable')
- })
-
- it('TC02: Answer to Consultaton and changes current answer from Yes, No, Not Applicable', () => {
- // Clicks on change link
- cy.consultationChangeLink()
- // Selects Yes
- cy.get('[data-cy="select-legal-input-yes"]').click()
- cy.saveAndContinueButton().click()
- cy.consultationStatus().should('contain.text', 'Yes')
- // Clicks on change link
- cy.consultationChangeLink()
- // Selects No
- cy.get('[data-cy="select-legal-input-no"]').click()
- cy.saveAndContinueButton().click()
- cy.consultationStatus().should('contain.text', 'No')
- // Clicks on change link
- cy.consultationChangeLink()
- // Selects Not appicable
- cy.get('[data-cy="select-legal-input-notapplicable"]').click()
- cy.saveAndContinueButton().click()
- cy.consultationStatus().should('contain.text', 'Not applicable')
- })
-
- it('TC03: Answer to Diocesan consent and changes current answer from Yes, No, Not Applicable', () => {
- // Clicks on change link
- cy.diocesanConsentChangeLink()
- // Selects Yes
- cy.get('[data-cy="select-legal-input-yes"]').click()
- cy.saveAndContinueButton().click()
- cy.diocesanConsentStatus().should('contain.text', 'Yes')
- // Clicks on change link
- cy.diocesanConsentChangeLink()
- // Selects No
- cy.get('[data-cy="select-legal-input-no"]').click()
- cy.saveAndContinueButton().click()
- cy.diocesanConsentStatus().should('contain.text', 'No')
- // Clicks on change link
- cy.diocesanConsentChangeLink()
- // Selects Not applicable
- cy.get('[data-cy="select-legal-input-notapplicable"]').click()
- cy.saveAndContinueButton().click()
- cy.diocesanConsentStatus().should('contain.text', 'Not applicable')
- })
-
- it('TC04: Answer to Foundation consent and changes current answer from Yes, No, Not Applicable', () => {
- // Clicks on change link
- cy.foundataionConsentChange()
- // Selects Yes
- cy.get('[data-cy="select-legal-input-yes"]').click()
- cy.saveAndContinueButton().click()
- cy.foundationConsentStatus().should('contain.text', 'Yes')
- // Clicks on change link
- cy.foundataionConsentChange()
- // Selects No
- cy.get('[data-cy="select-legal-input-no"]').click()
- cy.saveAndContinueButton().click()
- cy.foundationConsentStatus().should('contain.text', 'No')
- // Clicks on change link
- cy.foundataionConsentChange()
- // Selects Not applicable
- cy.get('[data-cy="select-legal-input-notapplicable"]').click()
- cy.saveAndContinueButton().click()
- cy.foundationConsentStatus().should('contain.text', 'Not applicable')
- })
-
- it('TC05: Confirm Legal Requirements page check & marked complete', () => {
- cy.login({ titleFilter: 'Cypress Project' })
- .then(() => {
- cy.get('[id="school-name-0"]').click();
- cy.get('[data-cy="select-tasklist-legalrequirements-status"]')
- .invoke('text')
- .then((text) => {
- if (text.includes('Completed')) {
- return
- }
- else {
- cy.get('[data-cy="select-tasklist-links-legalrequirementlinks"]').click()
- cy.get('[data-cy="select-legal-summary-iscomplete"]').click()
- cy.get('[data-cy="select-legal-summary-submitbutton"]').click()
- cy.get('[data-cy="select-tasklist-legalrequirements-status"]').should('contain.text', 'Completed')
- }
- })
- })
- })
-
- it('TC06: Back to task list button link', () => {
- cy.get('[data-cy="select-backlink"]')
- .should('be.visible')
- .should('contain.text', 'Back to task list').click()
- })
-
-})
\ No newline at end of file
diff --git a/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/Local-authority-record-dates-information/checkmark-application-status.cy.js b/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/Local-authority-record-dates-information/checkmark-application-status.cy.js
deleted file mode 100644
index 932a06ae0..000000000
--- a/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/Local-authority-record-dates-information/checkmark-application-status.cy.js
+++ /dev/null
@@ -1,44 +0,0 @@
-// ///
-
-// Cypress._.each(['ipad-mini'], (viewport) => {
-// describe(`87641 Check mark should reflect status correctly on LA Information preview page on ${viewport}`, () =>{
-// beforeEach(() => {
-// cy.login({titleFilter: 'Gloucester school'})
-// cy.viewport(viewport)
-// cy.selectSchoolListing(2)
-// })
-
-// it('TC01: Precondition checkbox status', () => {
-// cy.statusLaInfo().should('be.visible')
-// .invoke('text')
-// .then((text) => {
-// if (text.includes('Complete')) {
-// return
-// }
-// else {
-// cy.uncheckLaInfo()
-// }
-// });
-// });
-
-// context("when form submitted", () => {
-// beforeEach(() => {
-// cy.get('*[href*="/confirm-local-authority-information-template-dates"]').click()
-// cy.completeStatusLaInfo().click()
-// cy.confirmContinueBtn().click()
-// })
-
-// it('TC02: Unchecked and returns as "In Progress"', () => {
-// cy.statusLaInfo()
-// .contains('In Progress')
-// .should('not.contain', 'Completed')
-// });
-
-// it('TC03: Checks and returns as "Completed"', () => {
-// cy.statusLaInfo()
-// .contains('Completed')
-// .should('not.contain', 'In Progress')
-// });
-// })
-// });
-// });
\ No newline at end of file
diff --git a/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/Local-authority-record-dates-information/comments-updated-correctly.cy.js b/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/Local-authority-record-dates-information/comments-updated-correctly.cy.js
deleted file mode 100644
index e6e2598f0..000000000
--- a/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/Local-authority-record-dates-information/comments-updated-correctly.cy.js
+++ /dev/null
@@ -1,51 +0,0 @@
-// ///
-// import ProjectList from '../../pages/projectList'
-
-// Cypress._.each(['ipad-mini'], (viewport) => {
-// describe(`86856 Comments should accept alphanumeric inputs on ${viewport}`, () => {
-// beforeEach(() => {
-// cy.login()
-
-// cy.viewport(viewport)
-
-// ProjectList.selectProject().then(id => {
-// cy.sqlServer(`update
-// academisation.Project set
-// LocalAuthorityInformationTemplateReturnedDate = '2023-01-01',
-// LocalAuthorityInformationTemplateSentDate = '2023-01-01'
-// where Id = ${id}`);
-// cy.url().then(url => {
-// //changes the current URL
-// let modifiedUrl = url + '/confirm-local-authority-information-template-dates'
-// cy.visit(modifiedUrl)
-// });
-// });
-// })
-
-// it('TC01: Precondition comment box', () => {
-// cy.get('[id="la-info-template-comments"]').should('be.visible')
-// .invoke('text')
-// .then((text) => {
-// if (text.includes('Empty')) {
-// return
-// }
-// else {
-// cy.commentBoxClearLaInfo()
-// }
-// });
-// });
-
-// it('TC02: Navigates to comment section & type alphanumerical characters', () => {
-// let alphanumeric = 'abcdefghijklmnopqrstuvwxyz 1234567890 !"£$%^&*(){}[]:@,./<>?~|'
-// cy.get('[data-test="change-la-info-template-comments"]').click()
-// cy.commentBoxLaInfo().type(alphanumeric)
-// cy.saveAndContinueButton().click()
-// cy.commentBoxLaInfo().should('contain', alphanumeric)
-// });
-
-// it('TC03: Clears text input', () => {
-// cy.commentBoxClearLaInfo()
-// cy.commentBoxLaInfo().should('contain', 'Empty')
-// });
-// });
-// });
\ No newline at end of file
diff --git a/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/Local-authority-record-dates-information/verify-date-sent-return.cy.js b/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/Local-authority-record-dates-information/verify-date-sent-return.cy.js
deleted file mode 100644
index 59ec4b354..000000000
--- a/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/Local-authority-record-dates-information/verify-date-sent-return.cy.js
+++ /dev/null
@@ -1,42 +0,0 @@
-// ///
-
-// Cypress._.each(['ipad-mini'], (viewport) => {
-// describe(`86462: "Date you sent/return the template" are reflected in preview on ${viewport}`, () => {
-// beforeEach(() => {
-// cy.login({titleFilter: 'Gloucester school'})
-// cy.viewport(viewport)
-// cy.selectSchoolListing(2)
-// cy.url().then(url => {
-// //changes the current URL
-// let modifiedUrl = url + '/confirm-local-authority-information-template-dates'
-// cy.visit(modifiedUrl)
-// });
-
-// cy.get('[data-test="change-la-info-template-sent-date"]').click()
-// cy.submitDateLaInfoSent(21, 3, 2019)
-// cy.saveAndContinueButton().click()
-
-// cy.get('[data-test="change-la-info-template-returned-date"]').click()
-// cy.submitDateLaInfoReturn(20, 2, 2020)
-// cy.saveAndContinueButton().click()
-// })
-
-// it('TC01: Verifies "Date you sent the template" on LA information preview', () => {
-// cy.sentDateSummLaInfo()
-// .invoke('text')
-// .should('contain', '21 March 2019' )
-// .then((text) => {
-// expect(text).to.match(/^([0-9]){2}\s[a-zA-Z]{1,}\s[0-9]{4}$/)
-// });
-// });
-
-// it('TC02: Verifies "Date you want the template returned" on LA information preview', () => {
-// cy.returnDateSummLaInfo()
-// .invoke('text')
-// .should('contain', '20 February 2020')
-// .then((text) => {
-// expect(text).to.match(/^([0-9]){2}\s[a-zA-Z]{1,}\s[0-9]{4}$/)
-// });
-// });
-// });
-// });
\ No newline at end of file
diff --git a/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/Pagination/home-page-pagination.cy.js b/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/Pagination/home-page-pagination.cy.js
deleted file mode 100644
index 94a597965..000000000
--- a/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/Pagination/home-page-pagination.cy.js
+++ /dev/null
@@ -1,30 +0,0 @@
-// ///
-
-// describe('101092: Pagination', () => {
-
-// beforeEach(() => {
-// cy.login()
-// })
-
-// after(function () {
-// cy.clearLocalStorage()
-// })
-
-// it('TC01: Next/Previous button if project number is greater than 10', () => {
-// cy.get('[test-id="projectCount"]')
-// .invoke('text')
-// .then((text) => {
-// cy.log(text)
-// const total_count = text.replace('projects found', '').trim()
-// if (total_count > 10) {
-// cy.get('[test-id="nextPage"]').click()
-// cy.url().should('contain', 'currentPage=2');
-// cy.get('[test-id="previousPage"]').click()
-// cy.url().should('contain', 'currentPage=1');
-// }
-// else {
-// cy.log('Number of projects does not exceed 10')
-// }
-// })
-// })
-// })
\ No newline at end of file
diff --git a/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/Project-notes/add-and-save-note.cy.js b/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/Project-notes/add-and-save-note.cy.js
deleted file mode 100644
index f14e61f6e..000000000
--- a/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/Project-notes/add-and-save-note.cy.js
+++ /dev/null
@@ -1,41 +0,0 @@
-// ///
-
-// Cypress._.each(['ipad-mini'], (viewport) => {
-// describe(`86317 Submit and view project notes on ${viewport}`, () => {
-// beforeEach(() => {
-// cy.login({titleFilter: 'Gloucester school'})
-// cy.viewport(viewport)
-// cy.selectSchoolListing(2)
-// })
-
-// let date
-// let dateText
-
-// it('TC01: Should display the project notes input', () => {
-// cy.get('[href*="/project-notes/"').click()
-// cy.get('[href*="/new-note"').click()
-// });
-
-// context("when form filled out", () => {
-// beforeEach(() => {
-// cy.get('[href*="/project-notes/"').click()
-// cy.get('[href*="/new-note"').click()
-// date = new Date();
-// dateText = date.toTimeString()
-// cy.get('#project-note-subject').type('New subject added at: ' + dateText)
-// cy.get('#project-note-body').type('New body added at: ' + dateText)
-// })
-
-// it('TC02: Should allow the user to add a note and show success message' , () => {
-// cy.get('[type=submit]').click()
-// cy.get('#project-note-added').should('contain.text', 'Note added')
-// });
-
-// it('TC03: Should display the note after it has been saved', () => {
-// cy.get('[type=submit]').click()
-// cy.get('#project-note-subject-0').should('have.text', 'New subject added at: '+dateText)
-// cy.get('#project-note-body-0').should('have.text', 'New body added at: '+dateText)
-// });
-// })
-// });
-// });
\ No newline at end of file
diff --git a/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/Project-notes/validation-check.cy.js b/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/Project-notes/validation-check.cy.js
deleted file mode 100644
index befd9659e..000000000
--- a/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/Project-notes/validation-check.cy.js
+++ /dev/null
@@ -1,30 +0,0 @@
-// ///
-
-// Cypress._.each(['ipad-mini'], (viewport) => {
-// describe(`107305: Vefify validation for project notes on ${viewport}`, () => {
-// beforeEach(() => {
-// cy.login({titleFilter: 'Gloucester school'});
-// cy.viewport(viewport);
-// cy.selectSchoolListing(2);
-// cy.get('[href*="/project-notes/"').click();
-// cy.get('[href*="/new-note"').click();
-// })
-
-// it('TC01: Should show validation message when saved without entering any values for Subject and Note', () => {
-// cy.get('[type=submit]').click();
-// cy.get('[data-cy="error-summary"]').should('contain.text', 'Enter a subject and project note');
-// });
-
-// it('TC02: should show validation message for Note when only Subject value is entered' , () => {
-// cy.get('#project-note-subject').type('New subject: Test');
-// cy.get('[type=submit]').click();
-// cy.get('[data-cy="error-summary"]').should('contain.text', 'Enter a subject and project note');
-// });
-
-// it('TC03: should show validation message for Subject when only Note value is entered', () => {
-// cy.get('#project-note-body').type('New body: Test');
-// cy.get('[type=submit]').click();
-// cy.get('[data-cy="error-summary"]').should('contain.text', 'Enter a subject and project note');
-// });
-// });
-// });
diff --git a/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/Record_Decision/create-approved-decision.cy.js b/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/Record_Decision/create-approved-decision.cy.js
deleted file mode 100644
index 9c143138d..000000000
--- a/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/Record_Decision/create-approved-decision.cy.js
+++ /dev/null
@@ -1,68 +0,0 @@
-// ///
-
-// // uri to be updated once academisation API is integrated
-// import ProjectList from '../../pages/projectList'
-
-// describe('103195 Record new Approved decision', { tags: '@dev'}, () => {
-
-// beforeEach(() => {
-// ProjectList.selectProject().then(id => {
-// // delete decision
-// cy.sqlServer(`DELETE FROM [academisation].[ConversionAdvisoryBoardDecision] WHERE ConversionProjectId = ${id}`)
-// cy.clearCookies()
-// cy.reload()
-// })
-// })
-
-// // Edit Approval Path - Regional Director, No/Yes conditions set
-// it('TC01: J1 Create a new recorded decision Approval - Reg Director Region, No Conditions', () => {
-// // Click on change your decision button
-// cy.get('[id="record-decision-link"]').should('contain.text', 'Record a decision').click()
-// //select iniital decision
-// cy.get('[id="approved-radio"]').click()
-// // clicks on the continue button
-// cy.continueBtn().click()
-// // selects regional director button
-// cy.get('[id="regionaldirectorforregion-radio"]').click()
-// // clicks on the continue button
-// cy.continueBtn().click()
-// // selects 'no' on conditions met
-// cy.NoRadioBtn().click()
-// // clicks on the continue button
-// cy.continueBtn().click()
-// // date entry
-// cy.recordDecisionDate(10, 8, 2022)
-// // clicks on the continue button
-// cy.continueBtn().click()
-// // Change condition
-// cy.ChangeConditionsLink().click()
-// cy.YesRadioBtn().click()
-// cy.YesTextBox().clear()
-// cy.YesTextBox().type('This is a test')
-// cy.continueBtn().click()
-// cy.continueBtn().click()
-// // preview answers before submit
-// checkSummary()
-// cy.continueBtn().click()
-// // recorded decision confirmation
-// cy.ApprovedMessageBanner().should('contain.text', 'Decision recorded')
-// checkSummary()
-// // confirm project status has been updated
-// cy.url().then(url => {
-// const id = ProjectList.getIdFromUrl(url)
-// cy.visit(Cypress.env('url') + '/project-list')
-// cy.get(`[id="project-status-${id}"]`).should('contain.text', 'APPROVED WITH CONDITIONS')
-// })
-// })
-
-// // Displayed at the end of the journey
-// function checkSummary() {
-// cy.ApprovedDecisionPreview().should('contain.text', 'APPROVED WITH CONDITIONS')
-// cy.ApprovedMadeByPreview().should('contain.text', 'Regional Director for the region')
-// cy.AprrovedConditionsSet().should('contain.text', 'Yes')
-// cy.AprrovedConditionsSet().should('contain.text', 'This is a test')
-// cy.ApprovedDecisionDate().should('contain.text', '10 August 2022')
-
-// }
-
-// })
\ No newline at end of file
diff --git a/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/Record_Decision/create-declined-decision.cy.js b/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/Record_Decision/create-declined-decision.cy.js
deleted file mode 100644
index 207c1ffa9..000000000
--- a/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/Record_Decision/create-declined-decision.cy.js
+++ /dev/null
@@ -1,69 +0,0 @@
-// ///
-// import ProjectList from '../../pages/projectList'
-// // uri to be updated once academisation API is integrated
-
-// describe('103791 Create Declined journey', { tags: '@dev'}, () => {
-// beforeEach(() => {
-// ProjectList.selectProject().then(id => {
-// // delete decision
-// cy.sqlServer(`DELETE FROM [academisation].[ConversionAdvisoryBoardDecision] WHERE ConversionProjectId = ${id}`)
-// cy.clearCookies()
-// cy.reload()
-// })
-// })
-
-// // Edit Approval Path - Regional Director, Finance
-// it('TC01: J2 Create a recorded decision Declined - Reg Director Region, Finance', () => {
-// // Click on change your decision button
-// cy.changeDecision().should('contain.text', 'Record a decision').click()
-// //select iniital decision
-// cy.declineRadioBtn().click()
-// // clicks on the continue button
-// cy.continueBtn().click()
-// cy.get('[id="regionaldirectorforregion-radio"]').click()
-// // clicks on the continue button
-// cy.continueBtn().click()
-// cy.declineFinancebox().click()
-// cy.declineFinancText().clear()
-// cy.declineFinancText().type('finance details')
-// // clicks on the continue button
-// cy.continueBtn().click()
-// // date entry
-// cy.recordDecisionDate(10, 8, 2022)
-// // clicks on the continue button
-// cy.continueBtn().click()
-// // Change condition
-// cy.reasonchangeLink().click()
-// cy.declineFinancebox()
-// .invoke('attr', 'aria-expanded')
-// cy.declineFinancText().clear()
-// cy.declineFinancText().type('finance details 2nd test')
-// cy.continueBtn().click()
-// cy.continueBtn().click()
-// checkSummary()
-// // clicks on the record a decision button to submit
-// cy.continueBtn().click()
-// // recorded decision confirmation
-// cy.recordnoteMsg().should('contain.text', 'Decision recorded')
-// checkSummary()
-// // check project status has been updated
-// cy.url().then(url => {
-// const id = ProjectList.getIdFromUrl(url)
-// cy.visit(Cypress.env('url') + '/project-list')
-// cy.get(`[id="project-status-${id}"]`).should('contain.text', 'DECLINED')
-// })
-// })
-
-// function checkSummary(){
-// // preview answers before submit
-// cy.decision().should('contain.text', 'Declined')
-// cy.decisionMadeBy().should('contain.text', 'Regional Director for the region')
-// // check reasons
-// cy.get('[id="decline-reasons"]')
-// .should('contain.text', 'Finance:')
-// cy.get('[id="decline-reasons"]')
-// .should('contain.text', 'finance details 2nd test')
-// // check date
-// cy.decisionDate().should('contain.text', '10 August 2022')
-// }
-// })
\ No newline at end of file
diff --git a/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/Record_Decision/create-deferred-decision.cy.js b/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/Record_Decision/create-deferred-decision.cy.js
deleted file mode 100644
index 9058c03a0..000000000
--- a/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/Record_Decision/create-deferred-decision.cy.js
+++ /dev/null
@@ -1,66 +0,0 @@
-// ///
-// import ProjectList from '../../pages/projectList'
-// // uri to be updated once academisation API is integrated
-
-// describe('Create Deferred journey', { tags: '@dev'}, () => {
-// beforeEach(() => {
-// ProjectList.selectProject().then(id => {
-// // delete decision
-// cy.sqlServer(`DELETE FROM [academisation].[ConversionAdvisoryBoardDecision] WHERE ConversionProjectId = ${id}`)
-// cy.clearCookies()
-// cy.reload()
-// })
-// })
-
-// // Edit Deferred Path - Regional Director, Additional information needed
-// it('TC01: J3 Create a recorded decision Deferred - Reg Director Region, Finance', () => {
-// // Click on change your decision button
-// cy.changeDecision().should('contain.text', 'Record a decision').click()
-// //select iniital decision
-// cy.deferredRadioBtn().click()
-// // clicks on the continue button
-// cy.continueBtn().click()
-// cy.get('[id="regionaldirectorforregion-radio"]').click()
-// // clicks on the continue button
-// cy.continueBtn().click()
-// cy.addInfoNeededBox().click()
-// cy.addInfoNeededBox().clear()
-// cy.addInfoNeededBox().type('Additional info')
-// // clicks on the continue button
-// cy.continueBtn().click()
-// // date entry
-// cy.recordDecisionDate(10, 8, 2022)
-// // clicks on the continue button
-// cy.continueBtn().click()
-// // give deferred reason
-// cy.deferredReasonChangeLink().click()
-// // set details
-// cy.addInfoNeededText().clear()
-// cy.addInfoNeededText().type('Additional info 2nd time')
-// cy.continueBtn().click()
-// cy.continueBtn().click()
-// checkSummary()
-// // clicks on the record a decision button to submit
-// cy.continueBtn().click()
-// // recorded decision confirmation
-// cy.deferredProjectStateId().should('contain.text', 'Decision recorded')
-// checkSummary()
-// // confirm project status has been updated
-// ProjectList.selectProject().then(id => {
-// cy.visit(Cypress.env('url') + '/project-list')
-// cy.get(`[id="project-status-${id}"]`).should('contain.text', 'DEFERRED')
-// })
-// })
-
-// function checkSummary() {
-// // preview answers
-// cy.deferredDecision().should('contain.text', 'Deferred')
-// cy.deferredDecisionMadeBy().should('contain.text', 'Regional Director for the region')
-// // check reasons
-// cy.get('[id="deferred-reasons"]')
-// .should('contain.text', 'Additional information needed:');
-// cy.get('[id="deferred-reasons"]')
-// .should('contain.text', 'Additional info 2nd time');
-// cy.deferredDecisionDate().should('contain.text', '10 August 2022');
-// }
-// })
\ No newline at end of file
diff --git a/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/Record_Decision/error-handling.cy.js b/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/Record_Decision/error-handling.cy.js
deleted file mode 100644
index c8f04a29a..000000000
--- a/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/Record_Decision/error-handling.cy.js
+++ /dev/null
@@ -1,129 +0,0 @@
-// // ///
-
-// // uri to be updated once academisation API is integrated
-// import ProjectList from '../../pages/projectList'
-
-// describe('103787 Error handling', { tags: '@dev'}, () => {
-// beforeEach(() => {
-// ProjectList.selectProject().then(id => {
-// cy.sqlServer(`DELETE FROM [academisation].[ConversionAdvisoryBoardDecision] WHERE ConversionProjectId = ${id}`)
-// cy.clearCookies()
-// cy.reload()
-// })
-// })
-
-// it('TC01: Error handling for the approved journey', () => {
-// // Record the decision:
-// cy.get('[id="record-decision-link"]').click()
-// cy.continueBtn().click()
-// cy.get('[id="AdvisoryBoardDecision-error-link"]').should('contain.text', 'Select a decision')
-// cy.get('[id="approved-radio"]').click()
-// cy.continueBtn().click()
-// // Who made this decision:
-// cy.continueBtn().click()
-// cy.get('[id="DecisionMadeBy-error-link"]').should('contain.text', 'Select who made the decision')
-// cy.get('[id="regionaldirectorforregion-radio"]').click()
-// cy.continueBtn().click()
-// // Were conditions met:
-// cy.continueBtn().click()
-// cy.get('[id="ApprovedConditionsSet-error-link"]').should('contain.text', 'Select whether any conditions were set')
-// cy.get('[id="no-radio"]').click()
-// cy.continueBtn().click()
-// // Date conversions:
-// cy.continueBtn().click()
-// cy.get('[data-module=govuk-error-summary]').should('contain.text', 'Enter the date when the conversion was approved')
-// })
-
-// it('TC02: Error handling for the declined journey', () => {
-// // Record the decision:
-// cy.get('[id="record-decision-link"]').click()
-// cy.continueBtn().click()
-// cy.get('[id="AdvisoryBoardDecision-error-link"]').should('contain.text', 'Select a decision')
-// cy.get('[id="declined-radio"]').click()
-// cy.continueBtn().click()
-// // Who made this decision:
-// cy.continueBtn().click()
-// cy.get('[id="DecisionMadeBy-error-link"]').should('contain.text', 'Select who made the decision')
-// cy.get('[id="regionaldirectorforregion-radio"]').click()
-
-// // continue to declined reason page
-// cy.continueBtn().click()
-
-// // trigger validation
-// cy.continueBtn().click()
-// cy.get('[id="DeclinedReasonSet-error-link"]').should('contain.text', 'Select at least one reason')
-
-// // check all boxes on form
-// cy.declineFinancebox().click()
-// cy.performanceBox().click()
-// cy.governanceBox().click()
-// cy.trustBox().click()
-// cy.declineOtherbox().click()
-
-// // trigger declined reasons validation
-// cy.continueBtn().click()
-// cy.get('[id="DeclineFinanceReason-error-link"]').should('contain.text', 'Enter a reason for selecting Finance')
-// cy.get('[id="DeclinePerformanceReason-error-link"]').should('contain.text', 'Enter a reason for selecting Performance')
-// cy.get('[id="DeclineGovernanceReason-error-link"]').should('contain.text', 'Enter a reason for selecting Governance')
-// cy.get('[id="DeclineChoiceOfTrustReason-error-link"]').should('contain.text', 'Enter a reason for selecting Choice of trust')
-// cy.get('[id="DeclineOtherReason-error-link"]').should('contain.text', 'Enter a reason for selecting Other')
-
-// // continue to decision date form
-// cy.performanceBox().click()
-// cy.governanceBox().click()
-// cy.trustBox().click()
-// cy.declineOtherbox().click()
-// cy.declineFinancText().clear()
-// cy.declineFinancText().type('Finance reason....')
-// cy.continueBtn().click()
-
-// // trigger decision date validation
-// cy.continueBtn().click()
-// cy.get('[data-module=govuk-error-summary]').should('contain.text', 'Enter the date when the conversion was declined')
-// })
-
-// it('TC03: Error handling for the deferred journey', () => {
-// // Record the decision:
-// cy.get('[id="record-decision-link"]').click()
-// cy.continueBtn().click()
-// cy.get('[id="AdvisoryBoardDecision-error-link"]').should('contain.text', 'Select a decision')
-// cy.get('[id="deferred-radio"]').click()
-// cy.continueBtn().click()
-// // Who made this decision:
-// cy.continueBtn().click()
-// cy.get('[id="DecisionMadeBy-error-link"]').should('contain.text', 'Select who made the decision')
-// cy.get('[id="regionaldirectorforregion-radio"]').click()
-
-// // continue to deferred reason page
-// cy.continueBtn().click()
-
-// // trigger validation
-// cy.continueBtn().click()
-// cy.get('[id="WasReasonGiven-error-link"]').should('contain.text', 'Select at least one reason')
-
-// // check all boxes on form
-// cy.addInfoNeededBox().click()
-// cy.awaitOfstedReportBox().click()
-// cy.performanceCheckBox().click()
-// cy.OtherCheckBox().click()
-
-// // trigger deferred reasons validation
-// cy.continueBtn().click()
-// cy.get('[id="AdditionalInformationNeededDetails-error-link"]').should('contain.text', 'Enter a reason for selecting Additional information needed')
-// cy.get('[id="AwaitingNextOfstedReportDetails-error-link"]').should('contain.text', 'Enter a reason for selecting Awaiting next ofsted report')
-// cy.get('[id="PerformanceConcernsDetails-error-link"]').should('contain.text', 'Enter a reason for selecting Performance concerns')
-// cy.get('[id="OtherDetails-error-link"]').should('contain.text', 'Enter a reason for selecting Other')
-
-// // continue to decision date form
-// cy.addInfoNeededBox().click()
-// cy.awaitOfstedReportBox().click()
-// cy.performanceCheckBox().click()
-// cy.OtherCheckText().clear()
-// cy.OtherCheckText().type('Other reason....')
-// cy.continueBtn().click()
-
-// // trigger decision date validation
-// cy.continueBtn().click()
-// cy.get('[data-module=govuk-error-summary]').should('contain.text', 'Enter the date when the conversion was deferred')
-// })
-// })
\ No newline at end of file
diff --git a/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/Record_Decision/new-plus-edit-approved-decision.cy.js b/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/Record_Decision/new-plus-edit-approved-decision.cy.js
deleted file mode 100644
index 4b7065218..000000000
--- a/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/Record_Decision/new-plus-edit-approved-decision.cy.js
+++ /dev/null
@@ -1,234 +0,0 @@
-// ///
-
-// import ProjectList from "../../pages/projectList"
-// let projectList = Cypress.env('url') + '/project-list'
-// // uri to be updated once academisation API is integrated
-
-// describe('103195 Edit Approved record decision', { tags: '@dev'}, ()=> {
-// beforeEach(() => {
-// ProjectList.selectProject().then(id => {
-// cy.sqlServer(`delete from academisation.ConversionAdvisoryBoardDecision where ConversionProjectId = ${id}`)
-// cy.sqlServer(`insert into academisation.ConversionAdvisoryBoardDecision values (${id}, \'Approved\', null, null, getdate(), \'None\', getdate(), getdate())`)
-// cy.clearCookies()
-// cy.reload()
-// })
-// })
-
-// // Edit Approval Path - Regional Director, No/Yes conditions set
-// it('TC01: J1 Edit a recorded decision Approval - Reg Director Region, No Conditions', () => {
-// // Click on change your decision button
-// cy.get('[id="record-decision-link"]').should('contain.text', 'Change your decision').click()
-// //select iniital decision
-// cy.get('[id="approved-radio"]').click()
-// // clicks on the continue button
-// cy.continueBtn().click()
-// // selects regional director button
-// cy.get('[id="regionaldirectorforregion-radio"]').click()
-// // clicks on the continue button
-// cy.continueBtn().click()
-// // selects 'no' on conditions met
-// cy.NoRadioBtn().click()
-// // clicks on the continue button
-// cy.continueBtn().click()
-// // date entry
-// cy.recordDecisionDate(10, 8, 2022)
-// // clicks on the continue button
-// cy.continueBtn().click()
-// // Change condition
-// cy.ChangeConditionsLink().click()
-// cy.YesRadioBtn().click()
-// cy.YesTextBox().clear()
-// cy.YesTextBox().type('This is a test')
-// cy.continueBtn().click()
-// cy.continueBtn().click()
-// // preview answers before submit
-// cy.ApprovedDecisionPreview().should('contain.text', 'APPROVED WITH CONDITIONS')
-// cy.ApprovedMadeByPreview().should('contain.text', 'Regional Director for the region')
-// cy.AprrovedConditionsSet().should('contain.text', 'Yes')
-// cy.AprrovedConditionsSet().should('contain.text', 'This is a test')
-// cy.ApprovedDecisionDate().should('contain.text', '10 August 2022')
-// // clicks on the record a decision button to submit
-// cy.continueBtn().click()
-// // recorded decision confirmation
-// cy.ApprovedMessageBanner().should('contain.text', 'Decision recorded')
-// cy.url().then(url => {
-// const id = ProjectList.getIdFromUrl(url)
-// cy.visit(projectList)
-// cy.get(`[id="project-status-${id}"]`).should('contain.text', 'APPROVED WITH CONDITIONS')
-// })
-// })
-
-// // Edit Approval Path - A different Regional Director, No/Yes conditions set
-// it('TC02: J1 Edit a recorded decision Approval - Different Reg Director, No Conditions', () => {
-// // Click on change your decision button
-// cy.get('[id="record-decision-link"]').should('contain.text', 'Change your decision').click()
-// //select iniital decision
-// cy.get('[id="approved-radio"]').click()
-// // clicks on the continue button
-// cy.continueBtn().click()
-// // selects regional director button
-// cy.get('[id="otherregionaldirector-radio"]').click()
-// // clicks on the continue button
-// cy.continueBtn().click()
-// // selects 'no' on conditions met
-// cy.NoRadioBtn().click()
-// // clicks on the continue button
-// cy.continueBtn().click()
-// // date entry
-// cy.recordDecisionDate(10, 8, 2022)
-// // clicks on the continue button
-// cy.continueBtn().click()
-// // Change condition
-// cy.ChangeConditionsLink().click()
-// cy.YesRadioBtn().click()
-// cy.YesTextBox().clear()
-// cy.YesTextBox().type('This is a test')
-// cy.continueBtn().click()
-// cy.continueBtn().click()
-// // preview answers before submit
-// cy.ApprovedDecisionPreview().should('contain.text', 'APPROVED WITH CONDITIONS')
-// cy.ApprovedMadeByPreview().should('contain.text', 'A different Regional Director')
-// cy.AprrovedConditionsSet().should('contain.text', 'Yes')
-// cy.AprrovedConditionsSet().should('contain.text', 'This is a test')
-// cy.ApprovedDecisionDate().should('contain.text', '10 August 2022')
-// // clicks on the record a decision button to submit
-// cy.continueBtn().click()
-// // recorded decision confirmation
-// cy.ApprovedMessageBanner().should('contain.text', 'Decision recorded')
-// cy.url().then(url => {
-// const id = ProjectList.getIdFromUrl(url)
-// cy.visit(projectList)
-// cy.get(`[id="project-status-${id}"]`).should('contain.text', 'APPROVED WITH CONDITIONS')
-// })
-// })
-
-// // Edit Approval Path - Minister, No/Yes conditions set
-// it('TC03: J1 Edit a recorded decision Approval - Minister, No Conditions', () => {
-// // Click on change your decision button
-// cy.get('[id="record-decision-link"]').should('contain.text', 'Change your decision').click()
-// //select iniital decision
-// // clicks on the continue button
-// cy.continueBtn().click()
-// // selects regional director button
-// cy.get('[id="minister-radio"]').click()
-// // clicks on the continue button
-// cy.continueBtn().click()
-// // selects 'no' on conditions met
-// cy.NoRadioBtn().click()
-// // clicks on the continue button
-// cy.continueBtn().click()
-// // date entry
-// cy.recordDecisionDate(10, 8, 2022)
-// // clicks on the continue button
-// cy.continueBtn().click()
-// // Change condition
-// cy.ChangeConditionsLink().click()
-// cy.YesRadioBtn().click()
-// cy.YesTextBox().clear()
-// cy.YesTextBox().type('This is a test')
-// cy.continueBtn().click()
-// cy.continueBtn().click()
-// // preview answers before submit
-// cy.ApprovedDecisionPreview().should('contain.text', 'APPROVED WITH CONDITIONS')
-// cy.ApprovedMadeByPreview().should('contain.text', 'Minister')
-// cy.AprrovedConditionsSet().should('contain.text', 'Yes')
-// cy.AprrovedConditionsSet().should('contain.text', 'This is a test')
-// cy.ApprovedDecisionDate().should('contain.text', '10 August 2022')
-// // clicks on the record a decision button to submit
-// cy.continueBtn().click()
-// // recorded decision confirmation
-// cy.ApprovedMessageBanner().should('contain.text', 'Decision recorded')
-// cy.url().then(url => {
-// const id = ProjectList.getIdFromUrl(url)
-// cy.visit(projectList)
-// cy.get(`[id="project-status-${id}"]`).should('contain.text', 'APPROVED WITH CONDITIONS')
-// })
-// })
-// // Edit Approval Path - Director General, No/Yes conditions set
-// it('TC04: J1 Edit a recorded decision Approval - Director General, No Conditions', () => {
-// // Click on change your decision button
-// cy.get('[id="record-decision-link"]').should('contain.text', 'Change your decision').click()
-// //select iniital decision
-// cy.get('[id="approved-radio"]').click()
-// // clicks on the continue button
-// cy.continueBtn().click()
-// // selects regional director button
-// cy.get('[id="directorgeneral-radio"]').click()
-// // clicks on the continue button
-// cy.continueBtn().click()
-// // selects 'no' on conditions met
-// cy.NoRadioBtn().click()
-// // clicks on the continue button
-// cy.continueBtn().click()
-// // date entry
-// cy.recordDecisionDate(10, 8, 2022)
-// // clicks on the continue button
-// cy.continueBtn().click()
-// // Change condition
-// cy.ChangeConditionsLink().click()
-// cy.YesRadioBtn().click()
-// cy.YesTextBox().clear()
-// cy.YesTextBox().type('This is a test')
-// cy.continueBtn().click()
-// cy.continueBtn().click()
-// // preview answers before submit
-// cy.ApprovedDecisionPreview().should('contain.text', 'APPROVED WITH CONDITIONS')
-// cy.ApprovedMadeByPreview().should('contain.text', 'Director General')
-// cy.AprrovedConditionsSet().should('contain.text', 'Yes')
-// cy.AprrovedConditionsSet().should('contain.text', 'This is a test')
-// cy.ApprovedDecisionDate().should('contain.text', '10 August 2022')
-// // clicks on the record a decision button to submit
-// cy.continueBtn().click()
-// // recorded decision confirmation
-// cy.ApprovedMessageBanner().should('contain.text', 'Decision recorded')
-// cy.url().then(url => {
-// const id = ProjectList.getIdFromUrl(url)
-// cy.visit(projectList)
-// cy.get(`[id="project-status-${id}"]`).should('contain.text', 'APPROVED WITH CONDITIONS')
-// })
-// })
-
-// // Edit Approval Path - None, No/Yes conditions set
-// it('TC05: J1 Edit a recorded decision Approval - None, No Conditions', () => {
-// // Click on change your decision button
-// cy.get('[id="record-decision-link"]').should('contain.text', 'Change your decision').click()
-// //select iniital decision
-// cy.get('[id="approved-radio"]').click()
-// // clicks on the continue button
-// cy.continueBtn().click()
-// // selects regional director button
-// cy.get('[id="none-radio"]').click()
-// // clicks on the continue button
-// cy.continueBtn().click()
-// // selects 'no' on conditions met
-// cy.NoRadioBtn().click()
-// // clicks on the continue button
-// cy.continueBtn().click()
-// // date entry
-// cy.recordDecisionDate(10, 8, 2022)
-// // clicks on the continue button
-// cy.continueBtn().click()
-// // Change condition
-// cy.ChangeConditionsLink().click()
-// cy.YesRadioBtn().click()
-// cy.YesTextBox().clear()
-// cy.YesTextBox().type('This is a test')
-// cy.continueBtn().click()
-// cy.continueBtn().click()
-// // preview answers before submit
-// cy.ApprovedDecisionPreview().should('contain.text', 'APPROVED WITH CONDITIONS')
-// cy.ApprovedMadeByPreview().should('contain.text', 'None')
-// cy.AprrovedConditionsSet().should('contain.text', 'Yes')
-// cy.AprrovedConditionsSet().should('contain.text', 'This is a test')
-// cy.ApprovedDecisionDate().should('contain.text', '10 August 2022')
-// // clicks on the record a decision button to submit
-// cy.continueBtn().click()
-// // recorded decision confirmation
-// cy.ApprovedMessageBanner().should('contain.text', 'Decision recorded')
-// cy.url().then(url => {
-// const id = ProjectList.getIdFromUrl(url)
-// cy.visit(projectList)
-// cy.get(`[id="project-status-${id}"]`).should('contain.text', 'APPROVED WITH CONDITIONS')
-// })
-// })
-// })
\ No newline at end of file
diff --git a/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/Record_Decision/new-plus-edit-declined-decision.cy.js b/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/Record_Decision/new-plus-edit-declined-decision.cy.js
deleted file mode 100644
index ebeac7b97..000000000
--- a/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/Record_Decision/new-plus-edit-declined-decision.cy.js
+++ /dev/null
@@ -1,255 +0,0 @@
-// ///
-// import ProjectList from '../../pages/projectList'
-// let projectList = Cypress.env('url') + '/project-list'
-
-// //skipped due to sql error //TODO
-// describe('103791 Edit Declined journey', { tags: '@dev'}, () => {
-// beforeEach(() => {
-// ProjectList.selectProject().then(id => {
-// cy.sqlServer(`
-// delete from academisation.ConversionAdvisoryBoardDecisionDeclinedReason
-// where AdvisoryBoardDecisionId = (select id from academisation.ConversionAdvisoryBoardDecision where ConversionProjectId = ${id})`);
-// cy.sqlServer(`delete from academisation.ConversionAdvisoryBoardDecision where ConversionProjectId = ${id}`);
-// cy.sqlServer(`insert into academisation.ConversionAdvisoryBoardDecision values (${id}, \'Declined\', null, null, getdate(), \'None\', getdate(), getdate())`);
-// cy.clearCookies();
-// cy.reload();
-// })
-// })
-
-// // Edit Approval Path - Regional Director, Finance
-// it('TC01: J2 Edit a recorded decision Declined - Reg Director Region, Finance', () => {
-// // Click on change your decision button
-// cy.changeDecision().should('contain.text', 'Change your decision').click()
-// //select iniital decision
-// cy.declineRadioBtn().click()
-// // clicks on the continue button
-// cy.continueBtn().click()
-// cy.get('[id="regionaldirectorforregion-radio"]').click()
-// // clicks on the continue button
-// cy.continueBtn().click()
-// cy.declineFinancebox().click()
-// cy.declineFinancText().clear()
-// cy.declineFinancText().type('Finance details')
-// // clicks on the continue button
-// cy.continueBtn().click()
-// // date entry
-// cy.recordDecisionDate(10, 8, 2022)
-// // clicks on the continue button
-// cy.continueBtn().click()
-// // Change condition
-// cy.reasonchangeLink().click()
-// cy.declineFinancText().clear()
-// cy.declineFinancText().type('Finance details 2nd test')
-// cy.continueBtn().click()
-// cy.continueBtn().click()
-// // preview answers before submit
-// cy.decision().should('contain.text', 'Declined')
-// cy.decisionMadeBy().should('contain.text', 'Regional Director for the region')
-// // check reasons
-// cy.get('[id="decline-reasons"]')
-// .should('contain.text', 'Finance:');
-// cy.get('[id="decline-reasons"]')
-// .should('contain.text', 'Finance details 2nd test')
-// // check date
-// cy.decisionDate().should('contain.text', '10 August 2022')
-// // clicks on the record a decision button to submit
-// cy.continueBtn().click()
-// // recorded decision confirmation
-// cy.recordnoteMsg().should('contain.text', 'Decision recorded')
-// cy.url().then(url => {
-// const id = ProjectList.getIdFromUrl(url)
-// cy.visit(projectList)
-// cy.get(`[id="project-status-${id}"]`).should('contain.text', 'DECLINED')
-// })
-// })
-
-// // Edit Approval Path - A different Regional Director, Performance
-// it('TC02: J2 Edit a recorded decision Declined - Different Reg Director, Performance', () => {
-// // Click on change your decision button
-// cy.changeDecision().should('contain.text', 'Change your decision').click()
-// //select iniital decision
-// cy.declineRadioBtn().click()
-// // clicks on the continue button
-// cy.continueBtn().click()
-// // selects regional director button
-// cy.get('[id="otherregionaldirector-radio"]').click()
-// // clicks on the continue button
-// cy.continueBtn().click()
-// cy.performanceBox().click()
-// cy.performanceText().clear()
-// cy.performanceText().type('Performance details')
-// // clicks on the continue button
-// cy.continueBtn().click()
-// // date entry
-// cy.recordDecisionDate(10, 8, 2022)
-// // clicks on the continue button
-// cy.continueBtn().click()
-// // Change condition
-// cy.reasonchangeLink().click()
-// cy.performanceText().clear()
-// cy.performanceText().type('Performance details 2nd test')
-// cy.continueBtn().click()
-// cy.continueBtn().click()
-// // preview answers before submit
-// cy.decision().should('contain.text', 'Declined')
-// cy.decisionMadeBy().should('contain.text', 'A different Regional Director')
-// // check reasons
-// cy.get('[id="decline-reasons"]')
-// .should('contain.text', 'Performance:')
-// cy.get('[id="decline-reasons"]')
-// .should('contain.text', 'Performance details 2nd test')
-// // check date
-// cy.decisionDate().should('contain.text', '10 August 2022')
-// // clicks on the record a decision button to submit
-// cy.continueBtn().click()
-// // recorded decision confirmation
-// cy.recordnoteMsg().should('contain.text', 'Decision recorded')
-// cy.url().then(url => {
-// const id = ProjectList.getIdFromUrl(url)
-// cy.visit(projectList)
-// cy.get(`[id="project-status-${id}"]`).should('contain.text', 'DECLINED')
-// })
-// })
-
-// // Edit Approval Path - Director General, Governance
-// it('TC03: J2 Edit a recorded decision Declined - Director General, Governance', () => {
-// // Click on change your decision button
-// cy.changeDecision().should('contain.text', 'Change your decision').click()
-// //select iniital decision
-// cy.declineRadioBtn().click()
-// // clicks on the continue button
-// cy.continueBtn().click()
-// // selects regional director button
-// cy.get('[id="directorgeneral-radio"]').click()
-// // clicks on the continue button
-// cy.continueBtn().click()
-// cy.governanceBox().click()
-// cy.governanceText().clear()
-// cy.governanceText().type('Governance details')
-// // clicks on the continue button
-// cy.continueBtn().click()
-// // date entry
-// cy.recordDecisionDate(10, 8, 2022)
-// // clicks on the continue button
-// cy.continueBtn().click()
-// // Change condition
-// cy.reasonchangeLink().click()
-// cy.governanceText().clear()
-// cy.governanceText().type('Governance details 2nd test')
-// cy.continueBtn().click()
-// cy.continueBtn().click()
-// // preview answers before submit
-// cy.decision().should('contain.text', 'Declined')
-// cy.decisionMadeBy().should('contain.text', 'Director General')
-// // check reasons
-// cy.get('[id="decline-reasons"]')
-// .should('contain.text', 'Governance:')
-// cy.get('[id="decline-reasons"]')
-// .should('contain.text', 'Governance details 2nd test')
-// // check date
-// cy.decisionDate().should('contain.text', '10 August 2022')
-// // clicks on the record a decision button to submit
-// cy.continueBtn().click()
-// // recorded decision confirmation
-// cy.recordnoteMsg().should('contain.text', 'Decision recorded')
-// cy.url().then(url => {
-// const id = ProjectList.getIdFromUrl(url)
-// cy.visit(projectList)
-// cy.get(`[id="project-status-${id}"]`).should('contain.text', 'DECLINED')
-// })
-// })
-
-// // Edit Approval Path - Minister, Choice of trust
-// it('TC04: J2 Edit a recorded decision Declined - Minister, Choice of trust', () => {
-// // Click on change your decision button
-// cy.changeDecision().should('contain.text', 'Change your decision').click()
-// //select iniital decision
-// cy.declineRadioBtn().click()
-// // clicks on the continue button
-// cy.continueBtn().click()
-// // selects regional director button
-// cy.get('[id="minister-radio"]').click()
-// // clicks on the continue button
-// cy.continueBtn().click()
-// cy.trustBox().click()
-// cy.trustText().clear()
-// cy.trustText().type('Trust details')
-// // clicks on the continue button
-// cy.continueBtn().click()
-// // date entry
-// cy.recordDecisionDate(10, 8, 2022)
-// // clicks on the continue button
-// cy.continueBtn().click()
-// // Change condition
-// cy.reasonchangeLink().click()
-// cy.trustText().clear()
-// cy.trustText().type('Trust details 2nd test')
-// cy.continueBtn().click()
-// cy.continueBtn().click()
-// // preview answers before submit
-// cy.decision().should('contain.text', 'Declined')
-// cy.decisionMadeBy().should('contain.text', 'Minister')
-// // check reasons
-// cy.get('[id="decline-reasons"]')
-// .should('contain.text', 'Choice of trust:')
-// cy.get('[id="decline-reasons"]')
-// .should('contain.text', 'Trust details 2nd test')
-// // clicks on the record a decision button to submit
-// cy.continueBtn().click()
-// // recorded decision confirmation
-// cy.recordnoteMsg().should('contain.text', 'Decision recorded')
-// cy.url().then(url => {
-// const id = ProjectList.getIdFromUrl(url)
-// cy.visit(projectList)
-// cy.get(`[id="project-status-${id}"]`).should('contain.text', 'DECLINED')
-// })
-// })
-
-// // Edit Approval Path - None, Other
-// it('TC05: J2 Edit a recorded decision Declined - None, Other', () => {
-// // Click on change your decision button
-// cy.changeDecision().should('contain.text', 'Change your decision').click()
-// //select iniital decision
-// cy.declineRadioBtn().click()
-// // clicks on the continue button
-// cy.continueBtn().click()
-// // selects regional director button
-// cy.get('[id="none-radio"]').click()
-// // clicks on the continue button
-// cy.continueBtn().click()
-// cy.declineOtherbox().click()
-// cy.declineOthertxt().clear()
-// cy.declineOthertxt().type('Other details')
-// // clicks on the continue button
-// cy.continueBtn().click()
-// // date entry
-// cy.recordDecisionDate(10, 8, 2022)
-// // clicks on the continue button
-// cy.continueBtn().click()
-// // Change condition
-// cy.reasonchangeLink().click()
-// cy.declineOthertxt().clear()
-// cy.declineOthertxt().type('Other details 2nd test')
-// cy.continueBtn().click()
-// cy.continueBtn().click()
-// // preview answers before submit
-// cy.decision().should('contain.text', 'Declined')
-// cy.decisionMadeBy().should('contain.text', 'None')
-// // check reasons
-// cy.get('[id="decline-reasons"]')
-// .should('contain.text', 'Other:')
-// cy.get('[id="decline-reasons"]')
-// .should('contain.text', 'Other details 2nd test')
-// cy.decisionDate().should('contain.text', '10 August 2022')
-// // clicks on the record a decision button to submit
-// cy.continueBtn().click()
-// // recorded decision confirmation
-// cy.recordnoteMsg().should('contain.text', 'Decision recorded')
-// cy.url().then(url => {
-// const id = ProjectList.getIdFromUrl(url)
-// cy.visit(projectList)
-// cy.get(`[id="project-status-${id}"]`).should('contain.text', 'DECLINED')
-// })
-// })
-
-// })
\ No newline at end of file
diff --git a/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/Record_Decision/new-plus-edit-deferred-decision.cy.js b/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/Record_Decision/new-plus-edit-deferred-decision.cy.js
deleted file mode 100644
index 1615f7371..000000000
--- a/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/Record_Decision/new-plus-edit-deferred-decision.cy.js
+++ /dev/null
@@ -1,259 +0,0 @@
-// ///
-// // uri to be updated once academisation API is integrated
-// let projectList = Cypress.env('url') + '/project-list'
-// import ProjectList from '../../pages/projectList'
-
-// //skipped due to sql error //TODO
-// describe('Edit Deferred journey', {tags: '@dev'}, () => {
-// beforeEach(() => {
-// ProjectList.selectProject().then(id => {
-// // delete deferred reasons
-// cy.sqlServer(`
-// delete from
-// academisation.ConversionAdvisoryBoardDecisionDeferredReason
-// where
-// AdvisoryBoardDecisionId = (select Id from academisation.ConversionAdvisoryBoardDecision where ConversionProjectId = ${id})`)
-// cy.sqlServer(`delete from academisation.ConversionAdvisoryBoardDecision where ConversionProjectId = ${id}`)
-// cy.sqlServer(`insert into academisation.ConversionAdvisoryBoardDecision values (${id}, \'Deferred\', null, null, getdate(), \'None\', getdate(), getdate())`)
-// cy.clearCookies()
-// cy.reload()
-// })
-// })
-
-// // Edit Deferred Path - Regional Director, Additional information needed
-// it('TC01: J3 Edit a recorded decision Deferred - Reg Director Region, Finance', () => {
-// // Click on change your decision button
-// cy.changeDecision().should('contain.text', 'Change your decision').click()
-// //select iniital decision
-// cy.deferredRadioBtn().click()
-// // clicks on the continue button
-// cy.continueBtn().click()
-// cy.get('[id="regionaldirectorforregion-radio"]').click()
-// // clicks on the continue button
-// cy.continueBtn().click()
-// cy.addInfoNeededBox().click()
-// cy.addInfoNeededText().clear()
-// cy.addInfoNeededText().type('Additional info')
-// // clicks on the continue button
-// cy.continueBtn().click()
-// // date entry
-// cy.recordDecisionDate(10, 8, 2022)
-// // clicks on the continue button
-// cy.continueBtn().click()
-// // give deferred reason
-// cy.deferredReasonChangeLink().click()
-// // set details
-// cy.addInfoNeededText().clear()
-// cy.addInfoNeededText().type('Additional info 2nd time')
-// cy.continueBtn().click()
-// cy.continueBtn().click()
-// // preview answers before submit
-// cy.deferredDecision().should('contain.text', 'Deferred')
-// cy.deferredDecisionMadeBy().should('contain.text', 'Regional Director for the region')
-// // check reasons
-// cy.get('[id="deferred-reasons"]')
-// .should('contain.text', 'Additional information needed:')
-// cy.get('[id="deferred-reasons"]')
-// .should('contain.text', 'Additional info 2nd time')
-// cy.deferredDecisionDate().should('contain.text', '10 August 2022')
-// // clicks on the record a decision button to submit
-// cy.continueBtn().click()
-// // recorded decision confirmation
-// cy.deferredProjectStateId().should('contain.text', 'Decision recorded')
-// cy.url().then(url => {
-// const id = ProjectList.getIdFromUrl(url)
-// cy.visit(projectList)
-// cy.get(`[id="project-status-${id}"]`).should('contain.text', 'DEFERRED')
-// })
-// })
-
-// // Edit Deferred Path - A different Regional Director, ofsted report
-// it('TC02: J3 Edit a recorded decision Deferred - Different Reg Director, ofsted report', () => {
-// // Click on change your decision button
-// cy.changeDecision().should('contain.text', 'Change your decision').click()
-// //select iniital decision
-// cy.deferredRadioBtn().click()
-// // clicks on the continue button
-// cy.continueBtn().click()
-// // selects regional director button
-// cy.get('[id="otherregionaldirector-radio"]').click()
-// // clicks on the continue button
-// cy.continueBtn().click()
-// cy.awaitOfstedReportBox().click()
-// cy.awaitOfstedReportText().clear()
-// cy.awaitOfstedReportText().type('awaiting ofsted')
-// // clicks on the continue button
-// cy.continueBtn().click()
-// // date entry
-// cy.recordDecisionDate(10, 8, 2022)
-// // clicks on the continue button
-// cy.continueBtn().click()
-// // Change condition
-// cy.deferredReasonChangeLink().click()
-// cy.awaitOfstedReportText().clear()
-// cy.awaitOfstedReportText().type('awaiting ofsted 2nd time')
-// cy.continueBtn().click()
-// cy.continueBtn().click()
-// // preview answers before submit
-// cy.deferredDecision().should('contain.text', 'Deferred')
-// cy.deferredDecisionMadeBy().should('contain.text', 'A different Regional Director')
-// // check reasons
-// cy.get('[id="deferred-reasons"]')
-// .should('contain.text', 'Awaiting next ofsted report:')
-// cy.get('[id="deferred-reasons"]')
-// .should('contain.text', 'awaiting ofsted 2nd time')
-// // check date
-// cy.deferredDecisionDate().should('contain.text', '10 August 2022')
-// // clicks on the record a decision button to submit
-// cy.continueBtn().click()
-// // recorded decision confirmation
-// cy.deferredProjectStateId().should('contain.text', 'Decision recorded')
-// cy.url().then(url => {
-// const id = ProjectList.getIdFromUrl(url)
-// cy.visit(projectList)
-// cy.get(`[id="project-status-${id}"]`).should('contain.text', 'DEFERRED')
-// })
-// })
-
-// // Edit Deferred Path - Director General, Performance concerns
-// it('TC03: J3 Edit a recorded decision Deferred - Director General, Performance', () => {
-// // Click on change your decision button
-// cy.changeDecision().should('contain.text', 'Change your decision').click()
-// //select iniital decision
-// cy.deferredRadioBtn().click()
-// // clicks on the continue button
-// cy.continueBtn().click()
-// // selects regional director button
-// cy.get('[id="directorgeneral-radio"]').click()
-// // clicks on the continue button
-// cy.continueBtn().click()
-// cy.performanceCheckBox().click()
-// cy.performanceCheckText().clear()
-// cy.performanceCheckText().type('performance details')
-// // clicks on the continue button
-// cy.continueBtn().click()
-// // date entry
-// cy.recordDecisionDate(10, 8, 2022)
-// // clicks on the continue button
-// cy.continueBtn().click()
-// // Change condition
-// cy.deferredReasonChangeLink().click()
-// cy.performanceCheckText().clear()
-// cy.performanceCheckText().type('performance details 2nd time')
-// cy.continueBtn().click()
-// cy.continueBtn().click()
-// // preview answers before submit
-// cy.deferredDecision().should('contain.text', 'Deferred')
-// cy.deferredDecisionMadeBy().should('contain.text', 'Director General')
-// // check reasons
-// cy.get('[id="deferred-reasons"]')
-// .should('contain.text', 'Performance concerns:')
-// cy.get('[id="deferred-reasons"]')
-// .should('contain.text', 'performance details 2nd time')
-// // check date
-// cy.deferredDecisionDate().should('contain.text', '10 August 2022')
-// // clicks on the record a decision button to submit
-// cy.continueBtn().click()
-// // recorded decision confirmation
-// cy.deferredProjectStateId().should('contain.text', 'Decision recorded')
-// cy.url().then(url => {
-// const id = ProjectList.getIdFromUrl(url)
-// cy.visit(projectList)
-// cy.get(`[id="project-status-${id}"]`).should('contain.text', 'DEFERRED')
-// })
-// })
-
-// // Edit Deferred Path - Minister, Other
-// it('TC04: J3 Edit a recorded decision Deferred - Minister, Other', () => {
-// // Click on change your decision button
-// cy.changeDecision().should('contain.text', 'Change your decision').click()
-// //select iniital decision
-// cy.deferredRadioBtn().click()
-// // clicks on the continue button
-// cy.continueBtn().click()
-// // selects regional director button
-// cy.get('[id="minister-radio"]').click()
-// // clicks on the continue button
-// cy.continueBtn().click()
-// cy.OtherCheckBox().click()
-// cy.OtherCheckText().clear()
-// cy.OtherCheckText().type('other details')
-// // clicks on the continue button
-// cy.continueBtn().click()
-// // date entry
-// cy.recordDecisionDate(10, 8, 2022)
-// // clicks on the continue button
-// cy.continueBtn().click()
-// // Change condition
-// cy.deferredReasonChangeLink().click()
-// cy.OtherCheckText().clear()
-// cy.OtherCheckText().type('other details 2nd time')
-// cy.continueBtn().click()
-// cy.continueBtn().click()
-// // preview answers before submit
-// cy.deferredDecision().should('contain.text', 'Deferred')
-// cy.deferredDecisionMadeBy().should('contain.text', 'Minister')
-// // check reasons
-// cy.get('[id="deferred-reasons"]')
-// .should('contain.text', 'Other:')
-// cy.get('[id="deferred-reasons"]')
-// .should('contain.text', 'other details 2nd time')
-// cy.deferredDecisionDate().should('contain.text', '10 August 2022')
-// // clicks on the record a decision button to submit
-// cy.continueBtn().click()
-// // recorded decision confirmation
-// cy.deferredProjectStateId().should('contain.text', 'Decision recorded')
-// cy.url().then(url => {
-// const id = ProjectList.getIdFromUrl(url)
-// cy.visit(projectList)
-// cy.get(`[id="project-status-${id}"]`).should('contain.text', 'DEFERRED')
-// })
-// })
-
-// // Edit Deferred Path - None, Other
-// it('TC05: J3 Edit a recorded decision Deferred - None, Other', () => {
-// // Click on change your decision button
-// cy.changeDecision().should('contain.text', 'Change your decision').click()
-// //select iniital decision
-// cy.deferredRadioBtn().click()
-// // clicks on the continue button
-// cy.continueBtn().click()
-// // selects regional director button
-// cy.get('[id="none-radio"]').click()
-// // clicks on the continue button
-// cy.continueBtn().click()
-// cy.OtherCheckBox().click()
-// cy.OtherCheckText().clear()
-// cy.OtherCheckText().type('other details')
-// // clicks on the continue button
-// cy.continueBtn().click()
-// // date entry
-// cy.recordDecisionDate(10, 8, 2022)
-// // clicks on the continue button
-// cy.continueBtn().click()
-// // Change condition
-// cy.deferredReasonChangeLink().click()
-// cy.OtherCheckText().clear()
-// cy.OtherCheckText().type('other details 2nd time')
-// cy.continueBtn().click()
-// cy.continueBtn().click()
-// // preview answers before submit
-// cy.deferredDecision().should('contain.text', 'Deferred')
-// cy.deferredDecisionMadeBy().should('contain.text', 'None')
-// // check reasons
-// cy.get('[id="deferred-reasons"]')
-// .should('contain.text', 'Other:')
-// cy.get('[id="deferred-reasons"]')
-// .should('contain.text', 'other details 2nd time')
-// cy.deferredDecisionDate().should('contain.text', '10 August 2022')
-// // clicks on the record a decision button to submit
-// cy.continueBtn().click()
-// // recorded decision confirmation
-// cy.deferredProjectStateId().should('contain.text', 'Decision recorded')
-// cy.url().then(url => {
-// const id = ProjectList.getIdFromUrl(url)
-// cy.visit(projectList)
-// cy.get(`[id="project-status-${id}"]`).should('contain.text', 'DEFERRED')
-// })
-// })
-// })
diff --git a/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/School-and-trust-information-proj-dates/error-handling-checkmark.cy.js b/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/School-and-trust-information-proj-dates/error-handling-checkmark.cy.js
deleted file mode 100644
index 7420e82d9..000000000
--- a/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/School-and-trust-information-proj-dates/error-handling-checkmark.cy.js
+++ /dev/null
@@ -1,48 +0,0 @@
-// ///
-
-// Cypress._.each(['ipad-mini'], (viewport) => {
-// describe(`86296 Check mark should reflect status correctly on ${viewport}`, () => {
-// beforeEach(() => {
-// cy.login({titleFilter: 'Gloucester school'})
-// cy.selectSchoolListing(1)
-// })
-
-// before(function () {
-// cy.viewport(viewport)
-// });
-
-// it('TC01: Precondition checkbox status', () => {
-// cy.viewport(viewport)
-// cy.statusSchoolTrust().should('be.visible')
-// .invoke('text')
-// .then((text) => {
-// if (text.includes('Completed')) {
-// return
-// }
-// else {
-// cy.uncheckSchoolTrust()
-// }
-// });
-// });
-
-// it('TC02: Unchecked and returns as "In Progress"', () => {
-// cy.viewport(viewport)
-// cy.get('*[href*="/confirm-school-trust-information-project-dates"]').click()
-// cy.completeStatusSchoolTrust().click()
-// cy.confirmContinueBtn().click()
-// cy.statusSchoolTrust().contains('In Progress').should('not.contain', 'Completed')
-// });
-
-// it('TC03: Checks and returns as "Completed"', () => {
-// cy.viewport(viewport)
-// cy.get('*[href*="/confirm-school-trust-information-project-dates"]').click()
-// cy.completeStatusSchoolTrust().click()
-// cy.confirmContinueBtn().click()
-// cy.statusSchoolTrust().contains('Completed').should('not.contain', 'In Progress')
-// });
-
-// after(function () {
-// cy.clearLocalStorage()
-// });
-// });
-// });
\ No newline at end of file
diff --git a/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/School-and-trust-information-proj-dates/error-handling-error-routes.cy.js b/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/School-and-trust-information-proj-dates/error-handling-error-routes.cy.js
deleted file mode 100644
index c3665d821..000000000
--- a/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/School-and-trust-information-proj-dates/error-handling-error-routes.cy.js
+++ /dev/null
@@ -1,37 +0,0 @@
-// ///
-
-// Cypress._.each(['ipad-mini'], (viewport) => {
-// describe(`86342 Error message link should redirect correctly on ${viewport}`, () => {
-// beforeEach(() => {
-// cy.viewport(viewport)
-// cy.login({titleFilter: 'Gloucester school'})
-// cy.selectSchoolListing(1)
-
-// cy.url().then(url => {
-// let modifiedUrl = url + '/confirm-school-trust-information-project-dates'
-// cy.visit(modifiedUrl)
-// })
-// cy.get('*[data-test="change-advisory-board-date"]').click()
-// })
-
-// it('TC01: Should click on error link and allow user to re-enter date after invalid date', () => {
-// cy.viewport(viewport)
-
-// cy.submitDateSchoolTrust(31, 12, 1999)
-// cy.saveAndContinueButton().click()
-// cy.get('.govuk-error-summary__list li a')
-// .should('have.text', 'Year must be between 2000 and 2050')
-// .click()
-// cy.submitDateSchoolTrust(1, 2, 2025)
-// cy.saveAndContinueButton().click()
-// });
-
-// it('TC02: Should display report link for school when Generate Report link clicked', () => {
-// cy.submitDateSchoolTrust(1, 2, 2025)
-// cy.saveAndContinueButton().click()
-// cy.confirmContinueBtn().click()
-// cy.generateProjectTempBtn().click()
-// cy.get('.app-c-attachment__link').should('be.visible')
-// });
-// });
-// });
\ No newline at end of file
diff --git a/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/School-and-trust-information-proj-dates/error-handling-incorrect-url.cy.js b/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/School-and-trust-information-proj-dates/error-handling-incorrect-url.cy.js
deleted file mode 100644
index b436b1e78..000000000
--- a/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/School-and-trust-information-proj-dates/error-handling-incorrect-url.cy.js
+++ /dev/null
@@ -1,64 +0,0 @@
-// ///
-
-// Cypress._.each(['ipad-mini'], (viewport) => {
-// describe(`84596 Error handling should present correctly to the user on ${viewport}`, () => {
-// const wcagStandards = [ "wcag22aa"];
-// const impactLevel = ["critical", "minor", "moderate", "serious"];
-// const continueOnFail = false;
-
-// after(function () {
-// cy.clearLocalStorage()
-// });
-
-// beforeEach(() => {
-// cy.login({titleFilter: 'Gloucester school'})
-// });
-
-// before(() => {
-// cy.viewport(viewport)
-// })
-
-// //accessibility check
-// it('Accessbility check', () => {
-// let url = Cypress.env('url');
-// cy.visit(url)
-// cy.excuteAccessibilityTests(wcagStandards, continueOnFail, impactLevel)
-// });
-
-// it('TC01: Should open first school in the list', () => {
-// cy.viewport(viewport)
-// cy.selectSchoolListing(0)
-// cy.urlPath().then(url => {
-// let modifiedUrl = url + '/confirm-school-trust-information-project-dates'
-// cy.visit(modifiedUrl)
-// });
-// });
-
-// it.skip('TC02: Should display user-friendly error when incorrect return parameter passed [80466]', ()=>{
-// cy.viewport(viewport)
-// cy.selectSchoolListing(0)
-// let modifiedUrl
-// cy.get('[aria-describedby*=la-info-template-status]').click()
-// cy.urlPath().then(url =>{
-// //Changes the current URL to:
-// ///task-list//confirm-local-authority-information-template-dates?return=someInvalideParam/SomeInvalidPath
-// modifiedUrl = url.replace('%2FTaskList%2FIndex&backText=Back%20to%20task%20list','someInvalideParam')
-// cy.visit(modifiedUrl+'/SomeInvalidPath', {failOnStatusCode: false});
-// });
-// cy.get('.govuk-button').click()
-// cy.get('h1').should('not.contain.text','An unhandled exception occurred while processing the request.')
-// });
-
-// it('TC03: Should display user-friendly error when incorrect project ID requested', () => {
-// cy.viewport(viewport)
-// cy.visit(Cypress.env('url') +'/task-list/99990', {failOnStatusCode: false})
-// cy.get('[id="error-heading"]').should('have.text','Page not found')
-// });
-
-// it('TC04: Should display user-friendly error when incorrect url requested', () => {
-// cy.viewport(viewport)
-// cy.visit(Cypress.env('url') +'/task-list-nonsense', {failOnStatusCode: false})
-// cy.get('[id="error-heading"]').should('have.text','Page not found')
-// });
-// });
-// });
\ No newline at end of file
diff --git a/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/School-application-form-apply-to-become/apply-to-become-get-application-data-map.cy.js b/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/School-application-form-apply-to-become/apply-to-become-get-application-data-map.cy.js
deleted file mode 100644
index 2c650a8ae..000000000
--- a/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/School-application-form-apply-to-become/apply-to-become-get-application-data-map.cy.js
+++ /dev/null
@@ -1,430 +0,0 @@
-// ///
-// import {data} from "../../fixtures/cath121-body.json"
-
-// describe('91489): Apply-to-become GET data application types', () => {
-// let dataAppSch = data.applyingSchools[0]
-
-// beforeEach(() => {
-// cy.login()
-// cy.get('[id="school-name-0"]').click()
-// cy.visit(Cypress.env('url') + '/school-application-form/2053')
-// })
-
-// // Overview
-// it('TC01: Overview - Application Lead', () => {
-// cy.get('[test-id="Overview1_key"]').should('contain.text', 'Application to join')
-// cy.get('[test-id="Overview1_value"]').should('contain.text', data.name + ' with ' + dataAppSch.schoolName)
-// cy.get('[test-id="Overview2_key"]').should('contain.text', 'Application reference')
-// cy.get('[test-id="Overview2_value"]').should('contain.text', data.applicationId)
-// cy.get('[test-id="Overview3_key"]').should('contain.text', 'Lead applicant')
-// cy.get('[test-id="Overview3_value"]').should('contain.text', data.applicationLeadAuthorName)
-// })
-
-// // Details of Trust
-// it('TC02: Trust details', () => {
-// cy.get('[test-id="Overview_Details1_key"]').should('contain.text', 'Trust name')
-// cy.get('[test-id="Overview_Details1_value"]').should('contain.text', data.name)
-// // 'Upload evidence' IS NOT BE COVERED IN THIS TEST AS THESE ARE UPLOAD LINKS - [test-id="Overview_Details2_key"]
-// // NOTE from Catherine "There is no expectation for this field to appear on the application form view at present."
-
-
-// cy.get('[test-id="Overview_Details2_key"]').should('contain.text', 'Will there be any changes to the governance of the trust due to the school joining?')
-// cy.get('[test-id="Overview_Details2_value"]').should('contain.text', 'Yes')
-// cy.fixture('cath121-body.json').as('userData').then((userData) => {
-// expect(userData.data.changesToLaGovernance).to.eq(true)
-// })
-// cy.get('[test-id="Overview_Details4_key"]').should('contain.text', 'Will there be any changes at a local level due to this school joining?')
-// cy.get('[test-id="Overview_Details4_value"]').should('contain.text', 'Yes')
-// cy.fixture('cath121-body.json').as('userData').then((userData) => {
-// expect(userData.data.changesToTrust).to.eq(true)
-// })
-// })
-
-// // About the conversion
-// it('TC03: The School Joining the Trust', () => {
-// cy.get('[test-id="About_the_conversion_The_school_joining_the_trust1_key"]').should('contain.text', 'The name of the school')
-// cy.get('[test-id="About_the_conversion_The_school_joining_the_trust1_value"]').should('contain.text', dataAppSch.schoolName)
-// })
-
-// // Contain Details
-// it('TC04: Contact Details', () => {
-// cy.get('[test-id="About_the_conversion_Contact_details1_key"]').should('contain.text', 'Name of headteacher')
-// cy.get('[test-id="About_the_conversion_Contact_details1_value"]').should('contain.text', dataAppSch.schoolConversionContactHeadName)
-// cy.get('[test-id="About_the_conversion_Contact_details2_key"]').should('contain.text', "Headteacher's email address")
-// cy.get('[test-id="About_the_conversion_Contact_details2_value"]').should('contain.text', dataAppSch.schoolConversionContactHeadEmail)
-// cy.get('[test-id="About_the_conversion_Contact_details3_key"]').should('contain.text', 'Name of the chair of the Governing Body')
-// cy.get('[test-id="About_the_conversion_Contact_details3_value"]').should('contain.text', dataAppSch.schoolConversionContactChairName)
-// cy.get('[test-id="About_the_conversion_Contact_details4_key"]').should('contain.text', "Chair's email address")
-// cy.get('[test-id="About_the_conversion_Contact_details4_value"]').should('contain.text', dataAppSch.schoolConversionContactChairEmail)
-// cy.get('[test-id="About_the_conversion_Contact_details5_key"]').should('contain.text', "Who is the main contact for the conversion?")
-// cy.get('[test-id="About_the_conversion_Contact_details5_value"]').should('contain.text', dataAppSch.schoolConversionContactRole)
-// cy.get('[test-id="About_the_conversion_Contact_details6_key"]').should('contain.text', "Main contact's name")
-// cy.get('[test-id="About_the_conversion_Contact_details6_value"]').should('contain.text', dataAppSch.schoolConversionApproverContactName)
-// })
-
-// // Date for Conversion
-// it('TC05: Date for Conversion', () => {
-// cy.get('[test-id="About_the_conversion_Date_for_conversion1_key"]').should('contain.text', 'Do you want the conversion to happen on a particular date')
-// cy.get('[test-id="About_the_conversion_Date_for_conversion1_value"]')
-// .should('contain.text', 'Yes')
-// cy.fixture('cath121-body.json').as('userData').then((userData) => {
-// expect(userData.data.applyingSchools[0].schoolConversionTargetDateSpecified).to.eq(true)
-// })
-// cy.get('[test-id="About_the_conversion_Date_for_conversion2_key"]').should('contain.text', 'Preferred date')
-// cy.get('[test-id="About_the_conversion_Date_for_conversion2_value"]').should('contain.text', '11 August 2049')
-// cy.fixture('cath121-body.json').as('userData').then((userData) => {
-// expect(userData.data.applyingSchools[0].schoolConversionTargetDate).to.eq('2049-08-11T00:00:00')
-// })
-// })
-
-// // Reasons for Joining
-// it('TC06: Reasons for Joining', () => {
-// cy.get('[test-id="About_the_conversion_Reasons_for_joining1_key"]').should('contain.text', 'Why does the school want to join this trust in particular?')
-// cy.get('[test-id="About_the_conversion_Reasons_for_joining1_value"]').should('contain.text', dataAppSch.schoolConversionReasonsForJoining)
-// })
-
-// // Name changes
-// it('TC07: Name Changes', () => {
-// cy.get('[test-id="About_the_conversion_Name_changes1_key"]').should('contain.text', 'Is the school planning to change its name when it becomes an academy?')
-// cy.get('[test-id="About_the_conversion_Name_changes1_value"]').should('contain.text', 'Yes')
-// cy.fixture('cath121-body.json').as('userData').then((userData) => {
-// expect(userData.data.applyingSchools[0].schoolConversionChangeNamePlanned).to.eq(true)
-// })
-// })
-
-// // Further Information
-// it('TC08: Additional Details', () => {
-// cy.get('[test-id="Further_information_Additional_details1_key"]').should('contain.text', 'What will the school bring to the trust they are joining?')
-// cy.get('[test-id="Further_information_Additional_details1_value"]').should('contain.text', dataAppSch.schoolAdSchoolContributionToTrust)
-// cy.get('[test-id="Further_information_Additional_details2_key"]').should('contain.text', 'Have Ofsted inspected the school but not published the report yet?')
-// cy.get('[test-id="Further_information_Additional_details2_value"]').should('contain.text', 'Yes')
-// cy.fixture('cath121-body.json').as('userData').then((userData) => {
-// expect(userData.data.applyingSchools[0].schoolAdInspectedButReportNotPublished).to.eq(true)
-// })
-// cy.get('[test-id="Further_information_Additional_details3_key"]').should('contain.text', 'Provide the inspection date and a short summary of the outcome')
-// cy.get('[test-id="Further_information_Additional_details3_value"]').should('contain.text', dataAppSch.schoolAdInspectedButReportNotPublishedExplain)
-// cy.get('[test-id="Further_information_Additional_details4_key"]').should('contain.text', 'Are there any safeguarding investigations ongoing at the school?')
-// cy.get('[test-id="Further_information_Additional_details4_value"]').should('contain.text', 'Yes')
-// cy.fixture('cath121-body.json').as('userData').then((userData) => {
-// expect(userData.data.applyingSchools[0].schoolOngoingSafeguardingInvestigations).to.eq(true)
-// })
-// cy.get('[test-id="Further_information_Additional_details5_key"]').should('contain.text', 'Details of the investigation')
-// cy.get('[test-id="Further_information_Additional_details6_key"]').should('contain.text', 'Is the school part of a local authority reorganisation?')
-// cy.get('[test-id="Further_information_Additional_details6_value"]').should('contain.text', 'Yes')
-// cy.fixture('cath121-body.json').as('userData').then((userData) => {
-// expect(userData.data.applyingSchools[0].schoolPartOfLaReorganizationPlan).to.eq(true)
-// })
-// cy.get('[test-id="Further_information_Additional_details7_key"]').should('contain.text', 'Details of the reorganisation')
-// cy.get('[test-id="Further_information_Additional_details7_value"]').should('contain.text', dataAppSch.schoolLaReorganizationDetails)
-// cy.get('[test-id="Further_information_Additional_details8_key"]').should('contain.text', 'Is the school part of any local authority closure plans?')
-// cy.get('[test-id="Further_information_Additional_details8_value"]').should('contain.text', 'Yes')
-// cy.fixture('cath121-body.json').as('userData').then((userData) => {
-// expect(userData.data.applyingSchools[0].schoolPartOfLaClosurePlan).to.eq(true)
-// })
-// cy.get('[test-id="Further_information_Additional_details9_key"]').should('contain.text', 'Details of the closure plan')
-// cy.get('[test-id="Further_information_Additional_details9_value"]').should('contain.text', dataAppSch.schoolLaClosurePlanDetails)
-// cy.get('[test-id="Further_information_Additional_details10_key"]').should('contain.text', 'Is your school linked to a diocese?')
-// cy.get('[test-id="Further_information_Additional_details10_value"]').should('contain.text', 'Yes')
-// cy.fixture('cath121-body.json').as('userData').then((userData) => {
-// expect(userData.data.applyingSchools[0].schoolFaithSchool).to.eq(true)
-// })
-// cy.get('[test-id="Further_information_Additional_details11_key"]').should('contain.text', 'Name of diocese')
-// cy.get('[test-id="Further_information_Additional_details11_value"]').should('contain.text', dataAppSch.schoolFaithSchoolDioceseName)
-// cy.get('[test-id="Further_information_Additional_details12_key"]').should('contain.text', 'Is your school part of a federation?')
-// cy.get('[test-id="Further_information_Additional_details12_value"]').should('contain.text', 'Yes')
-// cy.fixture('cath121-body.json').as('userData').then((userData) => {
-// expect(userData.data.applyingSchools[0].schoolIsPartOfFederation).to.eq(true)
-// })
-// cy.get('[test-id="Further_information_Additional_details13_key"]').should('contain.text', 'Is the school supported by a foundation, trust or other body (e.g. parish council) that appoints foundation governors?')
-// cy.get('[test-id="Further_information_Additional_details13_value"]').should('contain.text', 'Yes')
-// cy.fixture('cath121-body.json').as('userData').then((userData) => {
-// expect(userData.data.applyingSchools[0].schoolIsSupportedByFoundation).to.eq(true)
-// })
-// cy.get('[test-id="Further_information_Additional_details14_key"]').should('contain.text', 'Name of this body')
-// cy.get('[test-id="Further_information_Additional_details14_value"]').should('contain.text', dataAppSch.schoolSupportedFoundationBodyName)
-// cy.get('[test-id="Further_information_Additional_details15_key"]').should('contain.text', 'Does the school currently have an exemption from providing broadly Christian collective worship issued by the local Standing Committee on Religious Education (SACRE)?')
-// cy.get('[test-id="Further_information_Additional_details15_value"]').should('contain.text', 'Yes')
-// cy.fixture('cath121-body.json').as('userData').then((userData) => {
-// expect(userData.data.applyingSchools[0].schoolHasSACREException).to.eq(true)
-// })
-// cy.get('[test-id="Further_information_Additional_details16_key"]').should('contain.text', 'When does the exemption end?')
-// var expectedDateString = new Date(dataAppSch.schoolSACREExemptionEndDate).toLocaleDateString('en-GB', {
-// year: 'numeric',
-// month: 'long',
-// day: 'numeric'
-// })
-// cy.get('[test-id="Further_information_Additional_details16_value"]').should('contain.text', expectedDateString)
-// cy.get('[test-id="Further_information_Additional_details17_key"]').should('contain.text', 'Please provide a list of your main feeder schools')
-// cy.get('[test-id="Further_information_Additional_details17_value"]').should('contain.text', dataAppSch.schoolAdFeederSchools)
-// // 'Upload evidence' IS NOT BE COVERED IN THIS TEST AS THESE ARE UPLOAD LINKS- [test-id="Further_information_Additional_details11_key"]
-// cy.get('[test-id="Further_information_Additional_details18_key"]').should('contain.text', 'Has an equalities impact assessment been carried out and considered by the governing body?')
-// cy.get('[test-id="Further_information_Additional_details18_value"]').should('contain.text', 'Yes')
-// cy.fixture('cath121-body.json').as('userData').then((userData) => {
-// expect(userData.data.applyingSchools[0].schoolAdEqualitiesImpactAssessmentCompleted).to.eq(true)
-// })
-// cy.get('[test-id="Further_information_Additional_details19_key"]').should('contain.text', 'When the governing body considered the equality duty what did they decide?')
-// cy.get('[test-id="Further_information_Additional_details19_value"]').should('contain.text', dataAppSch.schoolAdEqualitiesImpactAssessmentDetails)
-// cy.get('[test-id="Further_information_Additional_details20_key"]').should('contain.text', 'Do you want to add any further information?')
-// cy.get('[test-id="Further_information_Additional_details20_value"]').should('contain.text', 'Yes')
-// cy.fixture('cath121-body.json').as('userData').then((userData) => {
-// expect(userData.data.applyingSchools[0].schoolAdditionalInformationAdded).to.eq(true)
-// })
-// cy.get('[test-id="Further_information_Additional_details21_key"]').should('contain.text', 'Add any further information')
-// cy.get('[test-id="Further_information_Additional_details21_value"]').should('contain.text', dataAppSch.schoolAdditionalInformation)
-// })
-
-// // Finance Details
-// it('TC09: Previous Financial Year', () => {
-// cy.get('[test-id="Finances_Previous_financial_year1_key"]').should('contain.text', 'End of previous financial year')
-// cy.get('[test-id="Finances_Previous_financial_year1_value"]').should('contain.text', '10 April 2018')
-// cy.fixture('cath121-body.json').as('userData').then((userData) => {
-// expect(userData.data.applyingSchools[0].previousFinancialYear.fyEndDate).to.eq('2018-04-10T00:00:00')
-// })
-// cy.get('[test-id="Finances_Previous_financial_year2_key"]').should('contain.text', 'Revenue carry forward at the end of the previous financial year (31 March)')
-// cy.get('[test-id="Finances_Previous_financial_year2_value"]').should('contain.text', '£8,999,110.45')
-// cy.fixture('cath121-body.json').as('userData').then((userData) => {
-// expect(userData.data.applyingSchools[0].previousFinancialYear.revenueCarryForward).to.eq(8999110.45)
-// })
-// cy.get('[test-id="Finances_Previous_financial_year3_key"]').should('contain.text', 'Surplus or deficit?')
-// cy.get('[test-id="Finances_Previous_financial_year3_value"]').should('contain.text', 'Deficit')
-// cy.fixture('cath121-body.json').as('userData').then((userData) => {
-// expect(userData.data.applyingSchools[0].previousFinancialYear.revenueIsDeficit).to.eq(true)
-// })
-// cy.get('[test-id="Finances_Previous_financial_year4_key"]').should('contain.text', 'Explain the reasons for the deficit, how the school plans to deal with it, and the recovery plan')
-// cy.get('[test-id="Finances_Previous_financial_year4_value"]').should('contain.text', dataAppSch.previousFinancialYear.revenueStatusExplained)
-// cy.get('[test-id="Finances_Previous_financial_year5_key"]').should('contain.text', 'Capital carry forward at the end of the previous financial year (31 March)')
-// cy.get('[test-id="Finances_Previous_financial_year5_value"]').should('contain.text', '£6,180,703.25')
-// cy.fixture('cath121-body.json').as('userData').then((userData) => {
-// expect(userData.data.applyingSchools[0].previousFinancialYear.capitalCarryForward).to.eq(6180703.25)
-// })
-// cy.get('[test-id="Finances_Previous_financial_year6_key"]').should('contain.text', 'Surplus or deficit?')
-// cy.get('[test-id="Finances_Previous_financial_year6_value"]').should('contain.text', 'Deficit')
-// cy.fixture('cath121-body.json').as('userData').then((userData) => {
-// expect(userData.data.applyingSchools[0].previousFinancialYear.capitalIsDeficit).to.eq(true)
-// // "capitalStatusExplained": "Soluta repellendus assumenda." NOT INCLUDED ON FRONTEND
-// // NOTE from Catherine "will be added as part of ticket 83618 - 'Add follow up answers to questions on application form' and will appear on the view only if capitalIsDeficit == true"
-// })
-// })
-
-// // Current Financial Year
-// it('TC10: Current Financial Year', () => {
-// cy.get('[test-id="Finances_Current_financial_year1_key"]').should('contain.text', 'End of current financial year')
-// cy.get('[test-id="Finances_Current_financial_year1_value"]').should('contain.text', '26 April 2020')
-// cy.fixture('cath121-body.json').as('userData').then((userData) => {
-// expect(userData.data.applyingSchools[0].currentFinancialYear.fyEndDate).to.eq('2021-04-26T00:00:00')
-// })
-// cy.get('[test-id="Finances_Current_financial_year2_key"]').should('contain.text', 'Forecasted revenue carry forward at the end of the current financial year (31 March)')
-// cy.get('[test-id="Finances_Current_financial_year2_value"]').should('contain.text', '£1,875,092.83')
-// cy.fixture('cath121-body.json').as('userData').then((userData) => {
-// expect(userData.data.applyingSchools[0].currentFinancialYear.revenueCarryForward).to.eq(1875092.83)
-// })
-// cy.get('[test-id="Finances_Current_financial_year3_key"]').should('contain.text', 'Surplus or deficit?')
-// cy.get('[test-id="Finances_Current_financial_year3_value"]').should('contain.text', 'Deficit')
-// cy.fixture('cath121-body.json').as('userData').then((userData) => {
-// expect(userData.data.applyingSchools[0].currentFinancialYear.revenueIsDeficit).to.eq(true)
-// })
-// cy.get('[test-id="Finances_Current_financial_year4_key"]').should('contain.text', 'Explain the reasons for the deficit, how the school plans to deal with it, and the recovery plan')
-// cy.get('[test-id="Finances_Current_financial_year4_value"]').should('contain.text', dataAppSch.currentFinancialYear.revenueStatusExplained)
-// cy.get('[test-id="Finances_Current_financial_year5_key"]').should('contain.text', 'Forecasted capital carry forward at the end of the current financial year (31 March)')
-// cy.get('[test-id="Finances_Current_financial_year5_value"]').should('contain.text', '£4,137,118.87')
-// cy.fixture('cath121-body.json').as('userData').then((userData) => {
-// expect(userData.data.applyingSchools[0].currentFinancialYear.capitalCarryForward).to.eq(4137118.87)
-// })
-// cy.get('[test-id="Finances_Current_financial_year6_key"]').should('contain.text', 'Surplus or deficit?')
-// cy.get('[test-id="Finances_Current_financial_year6_value"]').should('contain.text', 'Deficit')
-// cy.fixture('cath121-body.json').as('userData').then((userData) => {
-// expect(userData.data.applyingSchools[0].currentFinancialYear.capitalIsDeficit).to.eq(true)
-// })
-// cy.get('[test-id="Finances_Current_financial_year7_key"]').should('contain.text', 'Explain the reasons for the deficit, how the school plans to deal with it, and the recovery plan')
-// cy.get('[test-id="Finances_Current_financial_year7_value"]').should('contain.text', dataAppSch.currentFinancialYear.capitalStatusExplained)
-// })
-
-// // Next Financial Year
-// it('TC11: Next Financial Year', () => {
-// cy.get('[test-id="Finances_Next_financial_year1_key"]').should('contain.text', 'End of next financial year')
-// cy.get('[test-id="Finances_Next_financial_year1_value"]').should('contain.text', '12 March 2012')
-// cy.fixture('cath121-body.json').as('userData').then((userData) => {
-// expect(userData.data.applyingSchools[0].nextFinancialYear.fyEndDate).to.eq('2012-03-12T00:00:00')
-// })
-// cy.get('[test-id="Finances_Next_financial_year2_key"]').should('contain.text', 'Forecasted revenue carry forward at the end of the next financial year (31 March)')
-// cy.get('[test-id="Finances_Next_financial_year2_value"]').should('contain.text', '£6,396,907.56')
-// cy.fixture('cath121-body.json').as('userData').then((userData) => {
-// expect(userData.data.applyingSchools[0].nextFinancialYear.revenueCarryForward).to.eq(6396907.56)
-// })
-// cy.get('[test-id="Finances_Next_financial_year3_key"]').should('contain.text', 'Surplus or deficit?')
-// cy.get('[test-id="Finances_Next_financial_year3_value"]').should('contain.text', 'Deficit')
-// cy.fixture('cath121-body.json').as('userData').then((userData) => {
-// expect(userData.data.applyingSchools[0].nextFinancialYear.revenueIsDeficit).to.eq(true)
-// })
-// cy.get('[test-id="Finances_Next_financial_year4_key"]').should('contain.text', 'Explain the reasons for the deficit, how the school plans to deal with it, and the recovery plan')
-// cy.get('[test-id="Finances_Next_financial_year4_value"]').should('contain.text', dataAppSch.nextFinancialYear.revenueStatusExplained)
-// cy.get('[test-id="Finances_Next_financial_year5_key"]').should('contain.text', 'Forecasted capital carry forward at the end of the next financial year (31 March)')
-// cy.get('[test-id="Finances_Next_financial_year5_value"]').should('contain.text', '£8,701,709.63')
-// cy.fixture('cath121-body.json').as('userData').then((userData) => {
-// expect(userData.data.applyingSchools[0].nextFinancialYear.capitalCarryForward).to.eq(8701709.63)
-// })
-// cy.get('[test-id="Finances_Next_financial_year6_key"]').should('contain.text', 'Surplus or deficit?')
-// cy.get('[test-id="Finances_Next_financial_year6_value"]').should('contain.text', 'Deficit')
-// cy.fixture('cath121-body.json').as('userData').then((userData) => {
-// expect(userData.data.applyingSchools[0].nextFinancialYear.capitalIsDeficit).to.eq(true)
-// })
-// cy.get('[test-id="Finances_Next_financial_year7_key"]').should('contain.text', 'Explain the reasons for the deficit, how the school plans to deal with it, and the recovery plan')
-// cy.get('[test-id="Finances_Next_financial_year7_value"]').should('contain.text', dataAppSch.nextFinancialYear.capitalStatusExplained)
-// })
-
-// // Loans Details
-// it('TC12: Loans Details', () => {
-// cy.get('[test-id="Finances_Loans1_key"]').should('contain.text', 'Are there any existing loans?')
-// cy.get('[test-id="Finances_Loans1_value"]').should('contain.text', 'Yes') // THIS IS NOT REPRESENTED IN THE JSON BODY | NOTE from Catherine "This is set as 'yes' if there are loans to display and 'No' if there aren't"
-// cy.get('[test-id="Finances_Loans2_key"]').should('contain.text', 'Total amount')
-// cy.get('[test-id="Finances_Loans2_value"]').should('contain.text', '£630,093.49')
-// cy.get('[test-id="Finances_Loans3_key"]').should('contain.text', 'Purpose of the loan')
-// cy.get('[test-id="Finances_Loans3_value"]').should('contain.text', dataAppSch.schoolLoans[0].schoolLoanPurpose)
-// cy.get('[test-id="Finances_Loans4_key"]').should('contain.text', 'Loan provider')
-// cy.get('[test-id="Finances_Loans4_value"]').should('contain.text', dataAppSch.schoolLoans[0].schoolLoanProvider)
-// cy.get('[test-id="Finances_Loans5_key"]').should('contain.text', 'Interest rate')
-// cy.get('[test-id="Finances_Loans5_value"]').should('contain.text', dataAppSch.schoolLoans[0].schoolLoanInterestRate)
-// cy.get('[test-id="Finances_Loans6_key"]').should('contain.text', 'Schedule of repayment')
-// cy.get('[test-id="Finances_Loans6_value"]').should('contain.text', dataAppSch.schoolLoans[0].schoolLoanSchedule)
-// })
-
-// // Financial leases
-// it('TC13: Financial Leases', () => {
-// cy.get('[test-id="Finances_Financial_leases1_key"]').should('contain.text', 'Are there any existing leases?')
-// cy.get('[test-id="Finances_Financial_leases1_value"]')
-// .invoke('text')
-// .then((text) => {
-// if (text === 'Yes') {
-// cy.get('[test-id="Finances_Financial_leases1_value"]').should('contain.text', 'Yes') // THIS IS NOT REPRESENTED IN THE JSON BODY | NOTE from Catherine "This is set as 'yes' if there are leases to display and 'No' if there aren't, as with loans"
-// cy.get('[test-id="Finances_Financial_leases2_key"]').should('contain.text', 'Details of the term of the finance lease agreement')
-// cy.get('[test-id="Finances_Financial_leases2_value"]').should('contain.text', dataAppSch.schoolLeases[0].schoolLeaseTerm)
-// cy.get('[test-id="Finances_Financial_leases3_key"]').should('contain.text', 'Repayment value')
-// cy.get('[test-id="Finances_Financial_leases3_value"]').should('contain.text', '£2,000.00')
-// cy.fixture('cath121-body.json').as('userData').then((userData) => {
-// expect(userData.data.applyingSchools[0].schoolLeases[0].schoolLeaseRepaymentValue).to.eq(2000.00)
-// })
-// cy.get('[test-id="Finances_Financial_leases4_key"]').should('contain.text', 'Interest rate chargeable')
-// cy.get('[test-id="Finances_Financial_leases4_value"]').should('contain.text', '10.00%')
-// cy.fixture('cath121-body.json').as('userData').then((userData) => {
-// expect(userData.data.applyingSchools[0].schoolLeases[0].schoolLeaseInterestRate).to.eq(10.00)
-// })
-// cy.get('[test-id="Finances_Financial_leases5_key"]').should('contain.text', 'Value of payments made to date')
-// cy.get('[test-id="Finances_Financial_leases5_value"]').should('contain.text', '£200.00')
-// cy.fixture('cath121-body.json').as('userData').then((userData) => {
-// expect(userData.data.applyingSchools[0].schoolLeases[0].schoolLeasePaymentToDate).to.eq(200.00)
-// })
-// cy.get('[test-id="Finances_Financial_leases6"]').should('contain.text', 'What was the finance lease for?')
-// cy.get('[test-id="Finances_Financial_leases6_value"]').should('contain.text', dataAppSch.schoolLeases[0].schoolLeasePurpose)
-// cy.get('[test-id="Finances_Financial_leases7_key"]').should('contain.text', 'Value of the assests at the start of the finance lease agreement')
-// cy.get('[test-id="Finances_Financial_leases7_value"]').should('contain.text', dataAppSch.schoolLeases[0].schoolLeaseValueOfAssets)
-// cy.get('[test-id="Finances_Financial_leases8_key"]').should('contain.text', 'Who is responsible for the insurance, repair and maintenance of the assets covered?')
-// cy.get('[test-id="Finances_Financial_leases8_value"]').should('contain.text', 'who is responsible')
-// }
-// else return
-// });
-// })
-
-// // Financial investigations
-// it('TC14: Financial Investigations', () => {
-// cy.get('[test-id="Finances_Financial_investigations1_key"]').should('contain.text', 'Are there any financial investigations ongoing at the school?')
-// cy.get('[test-id="Finances_Financial_investigations1_value"]').should('contain.text', 'Yes')
-// cy.fixture('cath121-body.json').as('userData').then((userData) => {
-// expect(userData.data.applyingSchools[0].financeOngoingInvestigations).to.eq(true)
-// })
-// cy.get('[test-id="Finances_Financial_investigations2_key"]').should('contain.text', 'Provide a brief summary of the investigation')
-// cy.get('[test-id="Finances_Financial_investigations2_value"]').should('contain.text', dataAppSch.schoolFinancialInvestigationsExplain)
-// cy.get('[test-id="Finances_Financial_investigations3_key"]').should('contain.text', 'Is the trust you are joining aware of the investigation')
-// cy.get('[test-id="Finances_Financial_investigations3_value"]').should('contain.text', 'Yes')
-// cy.fixture('cath121-body.json').as('userData').then((userData) => {
-// expect(userData.data.applyingSchools[0].schoolFinancialInvestigationsTrustAware).to.eq(true)
-// })
-// })
-
-// // Future Pupil numbers
-// it('TC15: Future Pupil Numbers Details', () => {
-// cy.get('[test-id="Future_pupil_numbers_Details1_key"]').should('contain.text', 'Projected pupil numbers on roll in the year the academy opens (year 1)')
-// cy.get('[test-id="Future_pupil_numbers_Details1_value"]').should('contain.text', '104')
-// cy.fixture('cath121-body.json').as('userData').then((userData) => {
-// expect(userData.data.applyingSchools[0].projectedPupilNumbersYear1).to.eq(104)
-// })
-// cy.get('[test-id="Future_pupil_numbers_Details2_key"]').should('contain.text', 'Projected pupil numbers on roll in the following year after the academy has opened (year 2)')
-// cy.get('[test-id="Future_pupil_numbers_Details2_value"]').should('contain.text', '239')
-// cy.fixture('cath121-body.json').as('userData').then((userData) => {
-// expect(userData.data.applyingSchools[0].projectedPupilNumbersYear2).to.eq(239)
-// })
-// cy.get('[test-id="Future_pupil_numbers_Details3_key"]').should('contain.text', 'Projected pupil numbers on roll in the following year (year 3)')
-// cy.get('[test-id="Future_pupil_numbers_Details3_value"]').should('contain.text', '370')
-// cy.fixture('cath121-body.json').as('userData').then((userData) => {
-// expect(userData.data.applyingSchools[0].projectedPupilNumbersYear3).to.eq(370)
-// })
-// cy.get('[test-id="Future_pupil_numbers_Details4_key"]').should('contain.text', 'What do you base these projected numbers on?')
-// cy.get('[test-id="Future_pupil_numbers_Details4_value"]').should('contain.text', dataAppSch.schoolCapacityAssumptions)
-// cy.get('[test-id="Future_pupil_numbers_Details5_key"]').should('contain.text', "What is the school's published admissions number (PAN)?")
-// cy.get('[test-id="Future_pupil_numbers_Details5_value"]').should('contain.text', '60673')
-// cy.fixture('cath121-body.json').as('userData').then((userData) => {
-// expect(userData.data.applyingSchools[0].declarationBodyAgree).to.eq(true)
-// })
-// })
-
-// // Land & Buildings
-// it('TC16: Land & Buildings Details', () => {
-// cy.get('[test-id="Land_and_buildings_Details1_key"]').should('contain.text', "As far as you're aware, who owns or holds the school's buildings and land?")
-// cy.get('[test-id="Land_and_buildings_Details1_value"]').should('contain.text', dataAppSch.schoolBuildLandOwnerExplained)
-// cy.get('[test-id="Land_and_buildings_Details2_key"]').should('contain.text', 'Are there any current planned building works?')
-// cy.get('[test-id="Land_and_buildings_Details2_value"]').should('contain.text', 'Yes')
-// cy.get('[test-id="Land_and_buildings_Details3_key"]').should('contain.text', 'Provide details of the works, how they\'ll be funded and whether the funding will be affected by the conversion')
-// cy.get('[test-id="Land_and_buildings_Details3_value"]').should('contain.text', dataAppSch.schoolBuildLandWorksPlannedExplained)
-// cy.get('[test-id="Land_and_buildings_Details4_key"]').should('contain.text', 'When is the scheduled completion date?')
-// var expectedDateString = new Date(dataAppSch.schoolBuildLandWorksPlannedCompletionDate).toLocaleDateString('en-GB', {
-// year: 'numeric',
-// month: 'long',
-// day: 'numeric'
-// })
-// cy.get('[test-id="Land_and_buildings_Details4_value"]').should('contain.text', expectedDateString)
-
-// cy.get('[test-id="Land_and_buildings_Details5_key"]').should('contain.text', 'Are there any shared facilities on site?')
-// cy.get('[test-id="Land_and_buildings_Details5_value"]').should('contain.text', 'Yes')
-// expect(dataAppSch.schoolBuildLandSharedFacilities).to.eq(true)
-
-// cy.get('[test-id="Land_and_buildings_Details6_key"]').should('contain.text', 'List the facilities and the school\'s plan for them after converting')
-// cy.get('[test-id="Land_and_buildings_Details6_value"]').should('contain.text', dataAppSch.schoolBuildLandSharedFacilitiesExplained)
-
-// cy.get('[test-id="Land_and_buildings_Details7_key"]').should('contain.text', 'Has the school had any grants from Sport England, the Big Lottery Fund, or the Football Federation?')
-// cy.get('[test-id="Land_and_buildings_Details7_value"]').should('contain.text', 'Yes')
-// cy.get('[test-id="Land_and_buildings_Details8_key"]').should('contain.text', 'Which bodies awarded the grants and what facilities did they fund?')
-// cy.get('[test-id="Land_and_buildings_Details8_value"]').should('contain.text', dataAppSch.schoolBuildLandGrantsExplained)
-
-// cy.get('[test-id="Land_and_buildings_Details9_key"]').should('contain.text', 'Is the school part of a Private Finance Intiative (PFI) scheme?')
-// cy.get('[test-id="Land_and_buildings_Details9_value"]').should('contain.text', 'Yes')
-// cy.get('[test-id="Land_and_buildings_Details10_key"]').should('contain.text', 'What kind of PFI Scheme is your school part of?')
-// cy.get('[test-id="Land_and_buildings_Details10_value"]').should('contain.text', dataAppSch.schoolBuildLandPFISchemeType)
-
-// cy.get('[test-id="Land_and_buildings_Details11_key"]').should('contain.text', 'Is the school part of a Priority School Building Programme?')
-// cy.get('[test-id="Land_and_buildings_Details11_value"]').should('contain.text', 'No')
-// cy.get('[test-id="Land_and_buildings_Details12_key"]').should('contain.text', 'Is the school part of a Building Schools for the Future Programme?')
-// cy.get('[test-id="Land_and_buildings_Details12_value"]').should('contain.text', 'No')
-// })
-
-// // Pre-opening support grant
-// it('TC17: Pre-Opening Support Grant Details', () => {
-// cy.get('[test-id="Pre-opening_support_grant_Details1_key"]').should('contain.text', 'Do you want these funds paid to the school or the trust?')
-// cy.get('[test-id="Pre-opening_support_grant_Details1_value"]').should('contain.text', dataAppSch.schoolSupportGrantFundsPaidTo)
-// })
-
-// // Consultation Details
-// it('TC18: Consultation Details', () => {
-// cy.get('[test-id="Consultation_Details1_key"]').should('contain.text', 'Has the governing body consulted the relevant stakeholders?')
-// cy.get('[test-id="Consultation_Details1_value"]').should('contain.text', 'No')
-// })
-
-// // Declaration Details
-// it('TC19: Declaration Details', () => {
-// cy.get('[test-id="Declaration_Details1_key"]').should('contain.text', 'I agree with all of these statements, and believe that the facts stated in this application are true')
-// cy.get('[test-id="Declaration_Details1_value"]').should('contain.text', 'Yes')
-// cy.fixture('cath121-body.json').as('userData').then((userData) => {
-// expect(userData.data.applyingSchools[0].declarationBodyAgree).to.eq(true)
-// })
-// cy.get('[test-id="Declaration_Details2_key"]').should('contain.text', 'Signed by')
-// cy.get('[test-id="Declaration_Details2_value"]').should('contain.text', dataAppSch.declarationSignedByName)
-// })
-// });
\ No newline at end of file
diff --git a/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/School-application-form-apply-to-become/apply-to-become-get-application-types.cy.js b/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/School-application-form-apply-to-become/apply-to-become-get-application-types.cy.js
deleted file mode 100644
index 0af76b864..000000000
--- a/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/School-application-form-apply-to-become/apply-to-become-get-application-types.cy.js
+++ /dev/null
@@ -1,22 +0,0 @@
-// ///
-
-// Cypress._.each(['ipad-mini'], (viewport) => {
-// describe(`91489: Apply-to-become GET application types on ${viewport}`, () => {
-// beforeEach(() => {
-// cy.login()
-
-// cy.viewport(viewport)
-// cy.get('[id="school-name-0"]').click()
-// })
-
-// it('TC01: Error Message Page not found if no existing ID', () => {
-// cy.visit(Cypress.env('url') + '/school-application-form/666', {failOnStatusCode: false})
-// cy.get('[id="error-heading"]').should('contain.text', 'Page not found')
-// });
-
-// it('TC02: FormMAT type should not be valid and should display "Page not found"', () => {
-// cy.visit(Cypress.env('url') + '/school-application-form/521', {failOnStatusCode: false})
-// cy.get('[id="error-heading"]').should('contain.text', 'Page not found')
-// });
-// });
-// });
\ No newline at end of file
diff --git a/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/School-application-form-apply-to-become/devIntegration-tests.cy.js b/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/School-application-form-apply-to-become/devIntegration-tests.cy.js
deleted file mode 100644
index e107415e2..000000000
--- a/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/School-application-form-apply-to-become/devIntegration-tests.cy.js
+++ /dev/null
@@ -1,1609 +0,0 @@
-// /* eslint no-unused-vars: 0 */
-// /* eslint no-constant-condition: 0 */
-// ///
-
-// import { data } from "../../fixtures/devProject-body.json"
-
-// //***************requres environment setup on yml file******************
-// describe('Fetch data from Internal', { tags: ['@integration'] }, () => {
-// let fetchProjectsDev = ['2050']
-// let url = Cypress.env('url')
-
-// beforeEach(() => {
-// cy.login()
-// cy.get('[id="school-name-0"]').click()
-// if (url.toString().includes('dev')) {
-// cy.visit(url + '/school-application-form/' + fetchProjectsDev)
-// }
-// else {
-// Cypress.runner.stop()
-// }
-// })
-
-// // Overview
-// it('TC01: Overview - Application Lead', () => {
-// // key=Question:
-// cy.get('[test-id="Overview1_key"]')
-// .should('be.visible')
-// .should('contain.text', 'Application to join')
-// // value=Answer:
-// cy.get('[test-id="Overview1_value"]')
-// .invoke('text')
-// .then((text) => {
-// let textvalue = text.toString()
-// if (textvalue.length > 0) {
-// let nameSchoolname = data.trustName + ' with ' + data.applyingSchools[0].schoolName
-// expect(nameSchoolname)
-// .to.contain(textvalue.trim())
-// }
-// else {
-// return null
-// }
-// })
-
-// cy.get('[test-id="Overview2_key"]')
-// .should('be.visible')
-// .should('contain.text', 'Application reference')
-// cy.get('[test-id="Overview2_value"]')
-// .invoke('text')
-// .then((text) => {
-// let textvalue = text.toString()
-// if (textvalue.length > 0) {
-// expect(data.applicationId)
-// .to.equal(textvalue.trim())
-// }
-// else {
-// return null
-// }
-// })
-
-// cy.get('[test-id="Overview3_key"]')
-// .should('be.visible')
-// .should('contain.text', 'Lead applicant')
-// cy.get('[test-id="Overview3_value"]')
-// .invoke('text')
-// .then((text) => {
-// let textvalue = text.toString()
-// if (textvalue.length > 0) {
-// expect(data.applicationLeadAuthorName)
-// .to.equal(textvalue.trim())
-// }
-// else {
-// return null
-// }
-// })
-// })
-
-// // Details of Trust
-// it('TC02: Trust details', () => {
-// cy.get('[test-id="Overview_Details1_key"]')
-// .should('be.visible')
-// .should('contain.text', 'Trust name')
-// cy.get('[test-id="Overview_Details1_value"]')
-// .invoke('text')
-// .then((text) => {
-// let textvalue = text.toString()
-// if (textvalue.length > 0) {
-// expect(data.trustName)
-// .to.equal(textvalue.trim())
-// }
-// else {
-// return null
-// }
-// })
-
-// cy.get('[test-id="Overview_Details2_key"]')
-// .should('be.visible')
-// .should('contain.text', 'Will there be any changes to the governance of the trust due to the school joining?')
-// cy.get('[test-id="Overview_Details2_value"]')
-// .invoke('text')
-// .then((text) => {
-// let textvalue = text.toString()
-// if (textvalue.length > 0) {
-// expect(data.changesToLaGovernance)
-// .to.be.a('boolean')
-// }
-// else return null
-// })
-
-// cy.get('[test-id="Overview_Details2_value"]')
-// .invoke('text').then(cy.log)
-// .then((text) => {
-// if (text === 'Yes') {
-// cy.get('[test-id="Overview_Details3_key"]')
-// .should('be.visible')
-// .should('contain.text', 'What are the changes?')
-// expect(data.changesToTrustExplained)
-// .to.equal(text.trim())
-// }
-// else return
-// })
-
-// })
-
-// // About the conversion
-// it('TC03: The School Joining the Trust', () => {
-// cy.get('[test-id="About_the_conversion_The_school_joining_the_trust1_key"]')
-// .should('be.visible')
-// .should('contain.text', 'The name of the school')
-// cy.get('[test-id="About_the_conversion_The_school_joining_the_trust1_value"]')
-// .invoke('text')
-// .then((text) => {
-// let textvalue = text.toString()
-// if (textvalue.length > 0) {
-// expect(data.applyingSchools[0].schoolName)
-// .to.equal(textvalue.trim())
-// }
-// else {
-// return null
-// }
-// })
-
-// })
-
-// // Contain Details
-// it('TC04: Contact Details', () => {
-// cy.get('[test-id="About_the_conversion_Contact_details1_key"]')
-// .should('be.visible')
-// .should('contain.text', 'Name of headteacher')
-// cy.get('[test-id="About_the_conversion_Contact_details1_value"]')
-// .invoke('text')
-// .then((text) => {
-// let textvalue = text.toString()
-// if (textvalue.length > 0) {
-// expect(data.applyingSchools[0].schoolConversionContactHeadName)
-// .to.equal(textvalue.trim())
-// }
-// else {
-// return null
-// }
-// })
-
-// cy.get('[test-id="About_the_conversion_Contact_details2_key"]')
-// .should('be.visible')
-// .should('contain.text', "Headteacher's email address")
-// cy.get('[test-id="About_the_conversion_Contact_details2_value"]')
-// .invoke('text')
-// .then((text) => {
-// let textvalue = text.toString()
-// if (textvalue.length > 0) {
-// expect(data.applyingSchools[0].schoolConversionContactHeadEmail)
-// .to.equal(textvalue.trim())
-// }
-// else {
-// return null
-// }
-// })
-
-// cy.get('[test-id="About_the_conversion_Contact_details4_key"]')
-// .should('be.visible')
-// .should('contain.text', 'Name of the chair of the Governing Body')
-// cy.get('[test-id="About_the_conversion_Contact_details4_value"]')
-// .invoke('text')
-// .then((text) => {
-// let textvalue = text.toString()
-// if (textvalue.length > 0) {
-// expect(data.applyingSchools[0].schoolConversionContactChairName)
-// .to.equal(textvalue.trim())
-// }
-// else {
-// return null
-// }
-// })
-
-// cy.get('[test-id="About_the_conversion_Contact_details5_key"]')
-// .should('be.visible')
-// .should('contain.text', "Chair's email address")
-// cy.get('[test-id="About_the_conversion_Contact_details5_value"]')
-// .invoke('text')
-// .then((text) => {
-// let textvalue = text.toString()
-// if (textvalue.length > 0) {
-// expect(data.applyingSchools[0].schoolConversionContactChairEmail)
-// .to.equal(textvalue.trim())
-// }
-// else {
-// return null
-// }
-// })
-
-// cy.get('[test-id="About_the_conversion_Contact_details7_key"]')
-// .should('be.visible')
-// .should('contain.text', "Who is the main contact for the conversion?")
-// cy.get('[test-id="About_the_conversion_Contact_details7_value"]')
-// .invoke('text')
-// .then((text) => {
-// let textvalue = text.toString()
-// if (textvalue.length > 0) {
-// expect(data.applyingSchools[0].schoolConversionContactRole)
-// .to.equal(textvalue.trim())
-// }
-// else {
-// return null
-// }
-// })
-
-// cy.get('[test-id="About_the_conversion_Contact_details8_key"]')
-// .should('be.visible')
-// .should('contain.text', "Approver's name")
-// cy.get('[test-id="About_the_conversion_Contact_details8_value"]')
-// .invoke('text')
-// .then((text) => {
-// let textvalue = text.toString()
-// if (textvalue.length > 0) {
-// expect(data.applyingSchools[0].schoolConversionApproverContactName)
-// .to.equal(textvalue.trim())
-// }
-// else {
-// return null
-// }
-// })
-// })
-
-// it('TC05: Date for Conversion', () => {
-// cy.get('[test-id="About_the_conversion_Date_for_conversion1_key"]')
-// .should('be.visible')
-// .should('contain.text', 'Do you want the conversion to happen on a particular date')
-// cy.get('[test-id="About_the_conversion_Date_for_conversion1_value"]')
-// .invoke('text')
-// .then((text) => {
-// let textvalue = text.toString()
-// if (textvalue.length > 0) {
-// expect(data.applyingSchools[0].schoolConversionTargetDateSpecified)
-// .to.be.a('boolean')
-// }
-// else {
-// return null
-// }
-// })
-
-// cy.get('[test-id="About_the_conversion_Date_for_conversion2_key"]')
-// .should('be.visible')
-// .should('contain.text', 'Preferred date')
-// cy.get('[test-id="About_the_conversion_Date_for_conversion2_value"]')
-// .invoke('text')
-// .then((text) => {
-// let textvalue = text.toString()
-// if (textvalue.length > 0) {
-// var expectedDateString = new Date(data.applyingSchools[0].schoolConversionTargetDate).toLocaleDateString('en-GB', {
-// year: 'numeric',
-// month: 'long',
-// day: 'numeric'
-// })
-// expect(expectedDateString)
-// .to.deep.equal(text.trim())
-// }
-// else {
-// return null
-// }
-// })
-// })
-
-// // Reasons for Joining
-// it('TC06: Reasons for Joining', () => {
-// cy.get('[test-id="About_the_conversion_Reasons_for_joining1_key"]')
-// .should('be.visible')
-// .should('contain.text', 'Why does the school want to join this trust in particular?')
-// cy.get('[test-id="About_the_conversion_Reasons_for_joining1_value"]')
-// .invoke('text')
-// .then((text) => {
-// let textvalue = text.toString()
-// if (textvalue.length > 0) {
-// expect(data.applyingSchools[0].schoolConversionReasonsForJoining)
-// .to.equal(textvalue.replaceAll('\r\n', '').trim())
-// }
-// else {
-// return null
-// }
-// })
-// })
-
-// // Name changes
-// it('TC07: Name Changes', () => {
-// cy.get('[test-id="About_the_conversion_Name_changes1_key"]')
-// .should('be.visible')
-// .should('contain.text', 'Is the school planning to change its name when it becomes an academy?')
-// cy.get('[test-id="About_the_conversion_Name_changes1_value"]')
-// .invoke('text').then(cy.log)
-// .then((text) => {
-// if (text === 'Yes' || 'No') {
-// cy.url().then(urlString => {
-// let modifiedUrl = urlString
-// cy.request(
-// 'GET',
-// modifiedUrl).then((response) => {
-// expect(data.applyingSchools[0].schoolConversionChangeNamePlanned)
-// .to.be.a('boolean')
-// })
-// })
-// }
-// else {
-// return null
-// }
-// })
-// })
-
-// // Further Information
-// it('TC08: Additional Details', () => {
-// cy.get('[test-id="Further_information_Additional_details1_key"]')
-// .should('be.visible')
-// .should('contain.text', 'What will the school bring to the trust they are joining?')
-// cy.get('[test-id="Further_information_Additional_details1_value"]')
-// .invoke('text')
-// .then((text) => {
-// let textvalue = text.toString()
-// if (textvalue.length > 0) {
-// expect(data.applyingSchools[0].schoolAdSchoolContributionToTrust)
-// .to.equal(textvalue.trim())
-// }
-// else {
-// return null
-// }
-// })
-
-// cy.get('[test-id="Further_information_Additional_details2_key"]')
-// .should('be.visible')
-// .should('contain.text', 'Have Ofsted inspected the school but not published the report yet?')
-// cy.get('[test-id="Further_information_Additional_details2_value"]')
-// .invoke('text').then(cy.log)
-// .then((text) => {
-// if (text === 'Yes' || 'No') {
-// cy.url().then(urlString => {
-// let modifiedUrl = urlString
-// cy.request(
-// 'GET',
-// modifiedUrl).then((response) => {
-// expect(data.applyingSchools[0].schoolAdInspectedButReportNotPublished)
-// .to.be.a('boolean')
-// })
-// })
-// }
-// else {
-// return null
-// }
-// })
-
-// cy.get('[test-id="Further_information_Additional_details3_key"]')
-// .should('be.visible')
-// .should('contain.text', 'Provide the inspection date and a short summary of the outcome')
-// cy.get('[test-id="Further_information_Additional_details3_value"]')
-// .invoke('text')
-// .then((text) => {
-// let textvalue = text.toString()
-// if (textvalue.length > 0) {
-// expect(data.applyingSchools[0].schoolAdInspectedButReportNotPublishedExplain)
-// .to.equal(textvalue.replaceAll('\r\n', '').trim())
-// }
-// else {
-// return null
-// }
-// })
-
-// cy.get('[test-id="Further_information_Additional_details4_key"]')
-// .should('be.visible')
-// .should('contain.text', 'Are there any safeguarding investigations ongoing at the school?')
-// cy.get('[test-id="Further_information_Additional_details4_value"]')
-// .invoke('text')
-// .then((text) => {
-// if (text === 'Yes' || 'No') {
-// cy.url().then(urlString => {
-// let modifiedUrl = urlString
-// cy.request(
-// 'GET',
-// modifiedUrl).then((response) => {
-// expect(data.applyingSchools[0].schoolOngoingSafeguardingInvestigations)
-// .to.be.a('boolean')
-// })
-// })
-// }
-// else {
-// return null
-// }
-// })
-
-// cy.get('[test-id="Further_information_Additional_details6_key"]')
-// .should('be.visible')
-// .should('contain.text', 'Is the school part of a local authority reorganisation?')
-// cy.get('[test-id="Further_information_Additional_details6_value"]')
-// .invoke('text').then(cy.log)
-// .then((text) => {
-// if (text === 'Yes' || 'No') {
-// cy.url().then(urlString => {
-// let modifiedUrl = urlString
-// cy.request(
-// 'GET',
-// modifiedUrl).then((response) => {
-// expect(data.applyingSchools[0].schoolPartOfLaReorganizationPlan)
-// .to.be.a('boolean')
-// })
-// })
-// }
-// else {
-// return null
-// }
-// })
-
-// cy.get('[test-id="Further_information_Additional_details8_key"]')
-// .should('be.visible')
-// .should('contain.text', 'Is the school part of any local authority closure plans?')
-// cy.get('[test-id="Further_information_Additional_details8_value"]')
-// .invoke('text').then(cy.log)
-// .then((text) => {
-// if (text === 'Yes' || 'No') {
-// cy.url().then(urlString => {
-// let modifiedUrl = urlString
-// cy.request(
-// 'GET',
-// modifiedUrl).then((response) => {
-// expect(data.applyingSchools[0].schoolPartOfLaClosurePlan)
-// .to.be.a('boolean')
-// })
-// })
-// }
-// else {
-// return null
-// }
-// })
-
-// cy.get('[test-id="Further_information_Additional_details10_key"]')
-// .should('be.visible')
-// .should('contain.text', 'Is your school linked to a diocese?')
-// cy.get('[test-id="Further_information_Additional_details10_value"]')
-// .invoke('text').then(cy.log)
-// .then((text) => {
-// if (text === 'Yes' || 'No') {
-// cy.url().then(urlString => {
-// let modifiedUrl = urlString
-// cy.request(
-// 'GET',
-// modifiedUrl).then((response) => {
-// expect(data.applyingSchools[0].schoolFaithSchool)
-// .to.be.a('boolean')
-// })
-// })
-// }
-// else {
-// return null
-// }
-// })
-
-// cy.get('[test-id="Further_information_Additional_details12_key"]')
-// .should('be.visible')
-// .should('contain.text', 'Is your school part of a federation?')
-// cy.get('[test-id="Further_information_Additional_details12_value"]')
-// .invoke('text').then(cy.log)
-// .then((text) => {
-// if (text === 'Yes' || 'No') {
-// cy.url().then(urlString => {
-// let modifiedUrl = urlString
-// cy.request(
-// 'GET',
-// modifiedUrl).then((response) => {
-// expect(data.applyingSchools[0].schoolIsPartOfFederation)
-// .to.be.a('boolean')
-// })
-// })
-// }
-// else {
-// return null
-// }
-// })
-
-// cy.get('[test-id="Further_information_Additional_details13_key"]')
-// .should('be.visible')
-// .should('contain.text', 'Is the school supported by a foundation, trust or other body (e.g. parish council) that appoints foundation governors?')
-// cy.get('[test-id="Further_information_Additional_details13_value"]')
-// .invoke('text')
-// .then((text) => {
-// let textvalue = text.toString()
-// if (textvalue.length > 0) {
-// expect(data.applyingSchools[0].schoolIsSupportedByFoundation)
-// .to.equal(true || false)
-// }
-// else {
-// return null
-// }
-// })
-
-// cy.get('[test-id="Further_information_Additional_details14_key"]')
-// .should('be.visible')
-// .should('contain.text', 'Name of this body')
-// cy.get('[test-id="Further_information_Additional_details14_value"]')
-// .invoke('text')
-// .then((text) => {
-// let textvalue = text.toString()
-// if (textvalue.length > 0) {
-// expect(data.applyingSchools[0].schoolSupportedFoundationBodyName)
-// .to.equal(textvalue.trim())
-// }
-// else {
-// return null
-// }
-// })
-
-// cy.get('[test-id="Further_information_Additional_details15_key"]')
-// .should('be.visible')
-// .should('contain.text', 'Does the school currently have an exemption from providing broadly Christian collective worship issued by the local Standing Committee on Religious Education (SACRE)?')
-// cy.get('[test-id="Further_information_Additional_details15_value"]')
-// .invoke('text').then(cy.log)
-// .then((text) => {
-// if (text === 'Yes' || 'No') {
-// cy.url().then(urlString => {
-// let modifiedUrl = urlString
-// cy.request(
-// 'GET',
-// modifiedUrl).then((response) => {
-// expect(data.applyingSchools[0].schoolHasSACREException)
-// .to.be.a('boolean')
-// })
-// })
-// }
-// else {
-// return null
-// }
-// })
-
-// cy.get('[test-id="Further_information_Additional_details16_key"]')
-// .should('contain.text', 'When does the exemption end?')
-// cy.get('[test-id="Further_information_Additional_details16_value"]')
-// .invoke('text')
-// .then((text) => {
-// let textvalue = text.toString()
-// if (textvalue.length > 0) {
-// var expectedDateString = new Date(data.applyingSchools[0].schoolSACREExemptionEndDate).toLocaleDateString('en-GB', {
-// year: 'numeric',
-// month: 'long',
-// day: 'numeric'
-// })
-// expect(expectedDateString)
-// .to.equal(textvalue.trim())
-// }
-// else {
-// return null
-// }
-// })
-
-// // 'Upload evidence' IS NOT BE COVERED IN THIS TEST AS THESE ARE UPLOAD LINKS- [test-id="Further_information_Additional_details11_key"]
-// cy.get('[test-id="Further_information_Additional_details18_key"]')
-// .should('be.visible')
-// .should('contain.text', 'Has an equalities impact assessment been carried out and considered by the governing body?')
-// cy.get('[test-id="Further_information_Additional_details18_value"]')
-// .invoke('text').then(cy.log)
-// .then((text) => {
-// if (text === 'Yes' || 'No') {
-// cy.url().then(urlString => {
-// let modifiedUrl = urlString
-// cy.request(
-// 'GET',
-// modifiedUrl).then((response) => {
-// expect(data.applyingSchools[0].schoolAdEqualitiesImpactAssessmentCompleted)
-// .to.be.a('boolean')
-// })
-// })
-// }
-// else {
-// return null
-// }
-// })
-
-// cy.get('[test-id="Further_information_Additional_details19_key"]')
-// .should('be.visible')
-// .should('contain.text', 'When the governing body considered the equality duty what did they decide?')
-// cy.get('[test-id="Further_information_Additional_details19_value"]')
-// .invoke('text')
-// .then((text) => {
-// let textvalue = text.toString()
-// if (textvalue.length > 0) {
-// expect(data.applyingSchools[0].schoolAdEqualitiesImpactAssessmentDetails)
-// .to.equal(textvalue.trim())
-// }
-// else {
-// return null
-// }
-// })
-
-// cy.get('[test-id="Further_information_Additional_details20_key"]')
-// .should('be.visible')
-// .should('contain.text', 'Do you want to add any further information?')
-// cy.get('[test-id="Further_information_Additional_details20_value"]')
-// .invoke('text').then(cy.log)
-// .then((text) => {
-// if (text === 'Yes' || 'No') {
-// cy.url().then(urlString => {
-// let modifiedUrl = urlString
-// cy.request(
-// 'GET',
-// modifiedUrl).then((response) => {
-// expect(data.applyingSchools[0].schoolAdditionalInformationAdded)
-// .to.be.a('boolean')
-// })
-// })
-// }
-// else {
-// return null
-// }
-// })
-
-// cy.get('[test-id="Further_information_Additional_details21_key"]')
-// .should('be.visible')
-// .should('contain.text', 'Add any further information')
-// cy.get('[test-id="Further_information_Additional_details21_value"]')
-// .invoke('text')
-// .then((text) => {
-// let textvalue = text.toString()
-// if (textvalue.length > 0) {
-// expect(data.applyingSchools[0].schoolAdditionalInformation)
-// .to.equal(textvalue.replaceAll('\r\n', '').trim())
-// }
-// else {
-// return null
-// }
-// })
-// })
-
-// // Finance Details **NEEDS ADDITIONAL LOGIC: To fix once Apply-to-become External becomes available**
-// it('TC09: Previous Financial Year', () => {
-// cy.get('[test-id="Finances_Previous_financial_year1_key"]')
-// .should('be.visible')
-// .should('contain.text', 'End of previous financial year')
-// cy.get('[test-id="Finances_Previous_financial_year1_value"]')
-// .invoke('text')
-// .then((text) => {
-// let textvalue = text.toString()
-// if (textvalue.length > 0) {
-// expect(data.applyingSchools[0].previousFinancialYear.fyEndDate)
-// .to.equal(textvalue.trim())
-// }
-// else {
-// return null
-// }
-// })
-
-// cy.get('[test-id="Finances_Previous_financial_year2_key"]')
-// .should('be.visible')
-// .should('contain.text', 'Revenue carry forward at the end of the previous financial year (31 March)')
-// cy.get('[test-id="Finances_Previous_financial_year2_value"]')
-// .invoke('text')
-// .then((text) => {
-// let textvalue = text.toString()
-// if (textvalue.length > 0) {
-// var expectedNumberString = new Number(data.applyingSchools[0].previousFinancialYear.revenueCarryForward).toLocaleString('en-GB', {
-// style: 'currency',
-// currency: 'GBP'
-// })
-// expect(expectedNumberString)
-// .to.equal(textvalue.trim())
-// }
-// else {
-// return null
-// }
-// })
-
-// cy.get('[test-id="Finances_Previous_financial_year3_key"]')
-// .should('be.visible')
-// .should('contain.text', 'Surplus or deficit?')
-// cy.get('[test-id="Finances_Previous_financial_year3_value"]')
-// .invoke('text')
-// .then((text) => {
-// let textvalue = text.toString()
-// if (textvalue.length > 0) {
-// expect(data.applyingSchools[0].previousFinancialYear.revenueIsDeficit)
-// .to.be.a('boolean')
-// }
-// else return null
-// })
-
-// //Conditional Tests:
-// cy.get('[test-id="Finances_Previous_financial_year3_value"]')
-// .invoke('text').then(cy.log)
-// .then((text) => {
-// if (text === 'Surplus' || 'Deficit') {
-// cy.get('[test-id="Finances_Previous_financial_year4"]')
-// .should('be.visible')
-// .should('contain.text', "Capital carry forward at the end of the previous financial year (31 March)")
-// }
-
-// })
-
-// //Conditional Tests:
-// cy.get('[test-id="Finances_Previous_financial_year3_value"]')
-// .invoke('text').then(cy.log)
-// .then((text) => {
-// if (text === 'Surplus' || 'Deficit') {
-// cy.get('[test-id="Finances_Previous_financial_year4_value"]')
-// .invoke('text')
-// .then((text) => {
-// let textvalue = text.toString()
-// if (textvalue.length > 0) {
-// var expectedNumberString = new Number(data.applyingSchools[0].previousFinancialYear.capitalCarryForward).toLocaleString('en-GB', {
-// style: 'currency',
-// currency: 'GBP'
-// })
-// expect(expectedNumberString)
-// .to.equal(textvalue.trim())
-// }
-// else {
-// return null
-// }
-// })
-
-// }
-
-// })
-
-// cy.get('[test-id="Finances_Previous_financial_year4_key"]')
-// .should('be.visible')
-// .should('contain.text', 'Capital carry forward at the end of the previous financial year (31 March)')
-// cy.get('[test-id="Finances_Previous_financial_year4_value"]')
-// .invoke('text')
-// .then((text) => {
-// let textvalue = text.toString()
-// if (textvalue.length > 0) {
-// var expectedNumberString = new Number(data.applyingSchools[0].previousFinancialYear.capitalCarryForward).toLocaleString('en-GB', {
-// style: 'currency',
-// currency: 'GBP'
-// })
-// expect(expectedNumberString)
-// .to.equal(textvalue.trim())
-// }
-// else {
-// return null
-// }
-// })
-// })
-
-// // Current Financial Year **NEEDS ADDITIONAL LOGIC: To fix once Apply-to-become External becomes available**
-// it('TC10: Current Financial Year', () => {
-// cy.get('[test-id="Finances_Current_financial_year1_key"]')
-// .should('be.visible')
-// .should('contain.text', 'End of current financial year')
-// cy.get('[test-id="Finances_Current_financial_year1_value"]')
-// .invoke('text')
-// .then((text) => {
-// let textvalue = text.toString()
-// if (textvalue.length > 0) {
-// expect(data.applyingSchools[0].currentFinancialYear.fyEndDate)
-// .to.equal(textvalue.trim())
-// }
-// else {
-// return null
-// }
-// })
-
-// cy.get('[test-id="Finances_Current_financial_year2_key"]')
-// .should('be.visible')
-// .should('contain.text', 'Forecasted revenue carry forward at the end of the current financial year (31 March)')
-// cy.get('[test-id="Finances_Current_financial_year2_value"]')
-// .invoke('text')
-// .then((text) => {
-// let textvalue = text.toString()
-// if (textvalue.length > 0) {
-// var expectedNumberString = new Number(data.applyingSchools[0].currentFinancialYear.revenueCarryForward).toLocaleString('en-GB', {
-// style: 'currency',
-// currency: 'GBP'
-// })
-// expect(expectedNumberString)
-// .to.equal(textvalue.trim())
-// }
-// else {
-// return null
-// }
-// })
-
-// cy.get('[test-id="Finances_Current_financial_year3_key"]')
-// .should('be.visible')
-// .should('contain.text', 'Surplus or deficit?')
-// cy.get('[test-id="Finances_Current_financial_year3_value"]')
-// .invoke('text')
-// .then((text) => {
-// let textvalue = text.toString()
-// if (textvalue.length > 0) {
-// expect(data.applyingSchools[0].previousFinancialYear.revenueIsDeficit)
-// .to.be.a('boolean')
-// }
-// else return null
-// })
-
-// cy.get('[test-id="Finances_Current_financial_year5_key"]')
-// .should('be.visible')
-// .should('contain.text', 'Forecasted capital carry forward at the end of the current financial year (31 March)')
-// cy.get('[test-id="Finances_Current_financial_year5_value"]')
-// .invoke('text')
-// .then((text) => {
-// let textvalue = text.toString()
-// if (textvalue.length > 0) {
-// var expectedNumberString = new Number(data.applyingSchools[0].currentFinancialYear.capitalCarryForward).toLocaleString('en-GB', {
-// style: 'currency',
-// currency: 'GBP'
-// })
-// expect(expectedNumberString)
-// .to.equal(textvalue.trim())
-// }
-// else {
-// return null
-// }
-// })
-
-// cy.get('[test-id="Finances_Current_financial_year6_key"]')
-// .should('be.visible')
-// .should('contain.text', 'Surplus or deficit?')
-
-// cy.get('[test-id="Finances_Current_financial_year7_key"]')
-// .should('be.visible')
-// .should('contain.text', 'Explain the reasons for the deficit, how the school plans to deal with it, and the recovery plan')
-// cy.get('[test-id="Finances_Current_financial_year7_value"]')
-// .invoke('text')
-// .then((text) => {
-// let textvalue = text.toString()
-// if (textvalue.length > 0) {
-// expect(data.applyingSchools[0].currentFinancialYear.capitalStatusExplained)
-// .to.equal(text.trim())
-// }
-// else {
-// return null
-// }
-// })
-// })
-
-// // Next Financial Year
-// it('TC11: Next Financial Year', () => {
-// cy.get('[test-id="Finances_Next_financial_year1_key"]')
-// .should('be.visible')
-// .should('contain.text', 'End of next financial year')
-// cy.get('[test-id="Finances_Next_financial_year1_value"]')
-// .invoke('text')
-// .then((text) => {
-// let textvalue = text.toString()
-// if (textvalue.length > 0) {
-// expect(data.applyingSchools[0].nextFinancialYear.fyEndDate)
-// .to.equal(textvalue.trim())
-// }
-// else {
-// return null
-// }
-// })
-
-// cy.get('[test-id="Finances_Next_financial_year2_key"]')
-// .should('be.visible')
-// .should('contain.text', 'Forecasted revenue carry forward at the end of the next financial year (31 March)')
-// cy.get('[test-id="Finances_Next_financial_year2_value"]')
-// .invoke('text')
-// .then((text) => {
-// let textvalue = text.toString()
-// if (textvalue.length > 0) {
-// var expectedNumberString = new Number(data.applyingSchools[0].nextFinancialYear.revenueCarryForward).toLocaleString('en-GB', {
-// style: 'currency',
-// currency: 'GBP'
-// })
-// expect(expectedNumberString)
-// .to.equal(textvalue.trim())
-// }
-// else {
-// return null
-// }
-// })
-
-// cy.get('[test-id="Finances_Next_financial_year3_key"]')
-// .should('be.visible')
-// .should('contain.text', 'Surplus or deficit?')
-// cy.get('[test-id="Finances_Next_financial_year3_value"]')
-// .invoke('text')
-// .then((text) => {
-// let textvalue = text.toString()
-// if (textvalue === 'Deficit' || 'Surplus') {
-// expect(data.applyingSchools[0].nextFinancialYear.revenueIsDeficit)
-// .to.be.a('boolean')
-// }
-// else return null
-
-// })
-
-// cy.get('[test-id="Finances_Next_financial_year4_key"]')
-// .should('be.visible')
-// .should('contain.text', 'Explain the reasons for the deficit, how the school plans to deal with it, and the recovery plan')
-// cy.get('[test-id="Finances_Next_financial_year4_value"]')
-// .invoke('text')
-// .then((text) => {
-// let textvalue = text.toString()
-// if (textvalue.length > 0) {
-// expect(data.applyingSchools[0].nextFinancialYear.revenueStatusExplained)
-// .to.equal(textvalue.trim())
-// }
-// else {
-// return null
-// }
-// })
-
-// cy.get('[test-id="Finances_Next_financial_year5_key"]')
-// .should('be.visible')
-// .should('contain.text', 'Forecasted capital carry forward at the end of the next financial year (31 March)')
-// cy.get('[test-id="Finances_Next_financial_year5_value"]')
-// .invoke('text')
-// .then((text) => {
-// let textvalue = text.toString()
-// if (textvalue.length > 0) {
-// var expectedNumberString = new Number(data.applyingSchools[0].nextFinancialYear.capitalCarryForward).toLocaleString('en-GB', {
-// style: 'currency',
-// currency: 'GBP'
-// })
-// expect(expectedNumberString)
-// .to.equal(textvalue.trim())
-// }
-// else {
-// return null
-// }
-// })
-
-// cy.get('[test-id="Finances_Next_financial_year6_key"]')
-// .should('be.visible')
-// .should('contain.text', 'Surplus or deficit?')
-// .invoke('text')
-// .then((text) => {
-// let textvalue = text.toString()
-// if (textvalue === 'Deficit' || 'Surplus') {
-// expect(data.applyingSchools[0].nextFinancialYear.capitalIsDeficit)
-// .to.be.a('boolean')
-// }
-// else {
-// return null
-// }
-// })
-
-// cy.get('[test-id="Finances_Next_financial_year7_key"]')
-// .should('be.visible')
-// .should('contain.text', 'Explain the reasons for the deficit, how the school plans to deal with it, and the recovery plan')
-// cy.get('[test-id="Finances_Next_financial_year7_value"]')
-// .invoke('text')
-// .then((text) => {
-// let textvalue = text.toString()
-// if (textvalue.length > 0) {
-// expect(data.applyingSchools[0].nextFinancialYear.capitalStatusExplained)
-// .to.equal(textvalue.trim())
-// }
-// else {
-// return null
-// }
-// })
-// })
-
-// // Loans Details
-// it('TC12: Loans Details', () => {
-
-// cy.get('[test-id="Finances_Loans1_key"]')
-// .should('be.visible')
-// .should('contain.text', 'Are there any existing loans?')
-// cy.get('[test-id="Finances_Loans1_value"]')
-// .invoke('text').then(cy.log)
-// // THIS IS NOT REPRESENTED IN THE JSON BODY | NOTE from Catherine "This is set as 'yes' if there are loans to display and 'No' if there aren't"
-
-// cy.get('[test-id="Finances_Loans2_key"]')
-// .should('be.visible')
-// .should('contain.text', 'Total amount')
-// cy.get('[test-id="Finances_Loans2_value"]')
-// .invoke('text')
-// .then((text) => {
-// let textvalue = text.toString()
-// if (textvalue.length > 0) {
-// var expectedNumberString = new Number(data.applyingSchools[0].schoolLoans[0].schoolLoanAmount).toLocaleString('en-GB', {
-// style: 'currency',
-// currency: 'GBP'
-// })
-// expect(expectedNumberString)
-// .to.equal(textvalue.trim())
-// }
-// else {
-// return null
-// }
-// })
-
-// cy.get('[test-id="Finances_Loans3_key"]')
-// .should('be.visible')
-// .should('contain.text', 'Purpose of the loan')
-// cy.get('[test-id="Finances_Loans3_value"]')
-// .invoke('text')
-// .then((text) => {
-// let textvalue = text.toString()
-// if (textvalue.length > 0) {
-// expect(data.applyingSchools[0].schoolLoans[0].schoolLoanPurpose)
-// .to.equal(textvalue.trim())
-// }
-// else {
-// return null
-// }
-// })
-
-// cy.get('[test-id="Finances_Loans4_key"]')
-// .should('be.visible')
-// .should('contain.text', 'Loan provider')
-// cy.get('[test-id="Finances_Loans4_value"]')
-// .invoke('text')
-// .then((text) => {
-// let textvalue = text.toString()
-// if (textvalue.length > 0) {
-// expect(data.applyingSchools[0].schoolLoans[0].schoolLoanProvider)
-// .to.equal(textvalue.trim())
-// }
-// else {
-// return null
-// }
-// })
-
-// cy.get('[test-id="Finances_Loans5_key"]')
-// .should('be.visible')
-// .should('contain.text', 'Interest rate')
-// cy.get('[test-id="Finances_Loans5_value"]')
-// .invoke('text')
-// .then((text) => {
-// let textvalue = text.toString()
-// if (textvalue.length > 0) {
-// expect(data.applyingSchools[0].schoolLoans[0].schoolLoanInterestRate)
-// .to.equal(textvalue.trim())
-// }
-// else {
-// return null
-// }
-// })
-
-// cy.get('[test-id="Finances_Loans6_key"]')
-// .should('be.visible')
-// .should('contain.text', 'Schedule of repayment')
-// cy.get('[test-id="Finances_Loans6_value"]')
-// .invoke('text')
-// .then((text) => {
-// let textvalue = text.toString()
-// if (textvalue.length > 0) {
-// expect(data.applyingSchools[0].schoolLoans[0].schoolLoanSchedule)
-// .to.equal(textvalue.trim())
-// }
-// else {
-// return null
-// }
-// })
-// })
-
-// // Financial leases
-// it('TC13: Financial Leases', () => {
-// cy.get('[test-id="Finances_Financial_leases1_key"]')
-// .should('be.visible')
-// .should('contain.text', 'Are there any existing leases?')
-// cy.get('[test-id="Finances_Financial_leases1_value"]')
-// .invoke('text')
-// .then((text) => {
-// let textvalue = text.toString()
-// if (textvalue == 'Yes') {
-// // THIS IS NOT REPRESENTED IN THE JSON BODY | NOTE from Catherine "This is set as 'yes' if there are leases to display and 'No' if there aren't, as with loans"
-
-// cy.get('[test-id="Finances_Financial_leases2_key"]')
-// .should('be.visible')
-// .should('contain.text', 'Details of the term of the finance lease agreement')
-// cy.get('[test-id="Finances_Financial_leases2_value"]')
-// .invoke('text')
-// .then((text) => {
-// let textvalue = text.toString()
-// if (textvalue.length > 0) {
-// expect(data.applyingSchools[0].schoolLeases[0].schoolLeaseTerm)
-// .to.equal(textvalue.trim())
-// }
-// else {
-// return null
-// }
-// })
-// cy.get('[test-id="Finances_Financial_leases3_key"]')
-// .should('be.visible')
-// .should('contain.text', 'Repayment value')
-// cy.get('[test-id="Finances_Financial_leases3_value"]')
-// .invoke('text')
-// .then((text) => {
-// let textvalue = text.toString()
-// if (textvalue.length > 0) {
-// var expectedNumberString = new Number(data.applyingSchools[0].schoolLeases[0].schoolLeaseRepaymentValue).toLocaleString('en-GB', {
-// style: 'currency',
-// currency: 'GBP'
-// })
-// expect(expectedNumberString)
-// .to.equal(textvalue.trim())
-// }
-// else {
-// return null
-// }
-// })
-
-// cy.get('[test-id="Finances_Financial_leases4_key"]')
-// .should('be.visible')
-// .should('contain.text', 'Interest rate chargeable')
-// cy.get('[test-id="Finances_Financial_leases4_value"]')
-// .invoke('text')
-// .then((text) => {
-// let textvalue = text.toString()
-// if (textvalue.length > 0) {
-// var expectedNumberString = new Number(data.applyingSchools[0].schoolLeases[0].schoolLeaseInterestRate / 100).toLocaleString('en-GB', {
-// style: 'percent',
-// maximumFractionDigits: 2
-// })
-// expect(parseFloat(expectedNumberString).toFixed(2) + "%")
-// .to.equal(textvalue.trim())
-// }
-// else {
-// return null
-// }
-// })
-
-// cy.get('[test-id="Finances_Financial_leases5_key"]')
-// .should('be.visible')
-// .should('contain.text', 'Value of payments made to date')
-// cy.get('[test-id="Finances_Financial_leases5_value"]')
-// .invoke('text')
-// .then((text) => {
-// let textvalue = text.toString()
-// if (textvalue.length > 0) {
-// var expectedNumberString = new Number(data.applyingSchools[0].schoolLeases[0].schoolLeasePaymentToDate).toLocaleString('en-GB', {
-// style: 'currency',
-// currency: 'GBP'
-// })
-// expect(expectedNumberString)
-// .to.equal(textvalue.trim())
-// }
-// else {
-// return null
-// }
-// })
-
-// cy.get('[test-id="Finances_Financial_leases6"]')
-// .should('be.visible')
-// .should('contain.text', 'What was the finance lease for?')
-// cy.get('[test-id="Finances_Financial_leases6_value"]')
-// .invoke('text')
-// .then((text) => {
-// let textvalue = text.toString()
-// if (textvalue.length > 0) {
-// expect(data.applyingSchools[0].schoolLeases[0].schoolLeasePurpose)
-// .to.equal(textvalue.trim())
-// }
-// else {
-// return null
-// }
-// })
-
-// cy.get('[test-id="Finances_Financial_leases7_key"]')
-// .should('be.visible')
-// .should('contain.text', 'Value of the assests at the start of the finance lease agreement')
-// cy.get('[test-id="Finances_Financial_leases7_value"]')
-// .invoke('text')
-// .then((text) => {
-// let textvalue = text.toString()
-// if (textvalue.length > 0) {
-// expect(data.applyingSchools[0].schoolLeases[0].schoolLeaseValueOfAssets)
-// .to.equal(textvalue.trim())
-// }
-// else {
-// return null
-// }
-// })
-
-// cy.get('[test-id="Finances_Financial_leases8_key"]')
-// .should('be.visible')
-// .should('contain.text', 'Who is responsible for the insurance, repair and maintenance of the assets covered?')
-// cy.get('[test-id="Finances_Financial_leases8_value"]')
-// .invoke('text')
-// .then((text) => {
-// let textvalue = text.toString()
-// if (textvalue.length > 0) {
-// expect(data.applyingSchools[0].schoolLeases[0].schoolLeaseResponsibleForAssets)
-// .to.equal(textvalue.trim())
-// }
-// else {
-// return null
-// }
-// })
-// }
-// else {
-// return null
-// }
-// })
-// })
-
-
-// // Financial investigations
-// it('TC14: Financial Investigations', () => {
-// cy.get('[test-id="Finances_Financial_investigations1_key"]')
-// .should('be.visible')
-// .should('contain.text', 'Are there any financial investigations ongoing at the school?')
-// cy.get('[test-id="Finances_Financial_investigations1_value"]')
-// .invoke('text')
-// .then((text) => {
-// let textvalue = text.toString()
-// if (textvalue.length > 0) {
-// expect(data.applyingSchools[0].financeOngoingInvestigations)
-// .to.be.a('boolean')
-// }
-// else {
-// return null
-// }
-// })
-
-// cy.get('[test-id="Finances_Financial_investigations2_key"]')
-// .should('be.visible')
-// .should('contain.text', 'Provide a brief summary of the investigation')
-// cy.get('[test-id="Finances_Financial_investigations2_value"]')
-// .invoke('text')
-// .then((text) => {
-// let textvalue = text.toString()
-// if (textvalue.length > 0) {
-// expect(data.applyingSchools[0].schoolFinancialInvestigationsExplain)
-// .to.equal(text.trim())
-// }
-// else {
-// return null
-// }
-// })
-
-// cy.get('[test-id="Finances_Financial_investigations3_key"]')
-// .should('be.visible')
-// .should('contain.text', 'Is the trust you are joining aware of the investigation')
-// cy.get('[test-id="Finances_Financial_investigations3_value"]')
-// .invoke('text')
-// .then((text) => {
-// let textvalue = text.toString()
-// if (textvalue == 'Yes' || 'No') {
-// expect(data.applyingSchools[0].schoolFinancialInvestigationsTrustAware)
-// .to.be.a('boolean')
-// }
-// else {
-// return null
-// }
-// })
-// })
-
-// // Future Pupil numbers
-// it('TC15: Future Pupil Numbers Details', () => {
-
-// cy.get('[test-id="Future_pupil_numbers_Details1_key"]')
-// .should('be.visible')
-// .should('contain.text', 'Projected pupil numbers on roll in the year the academy opens (year 1)')
-// cy.get('[test-id="Future_pupil_numbers_Details1_value"]')
-// .invoke('text')
-// .then((text) => {
-// let textvalue = text.toString()
-// if (textvalue.length > 0) {
-// var expectedNumberString = new Number(data.applyingSchools[0].schoolCapacityYear1).toLocaleString('en-GB')
-// expect(expectedNumberString)
-// .to.equal(textvalue.trim())
-// }
-// else {
-// return null
-// }
-// })
-
-// cy.get('[test-id="Future_pupil_numbers_Details2_key"]')
-// .should('be.visible')
-// .should('contain.text', 'Projected pupil numbers on roll in the following year after the academy has opened (year 2)')
-// cy.get('[test-id="Future_pupil_numbers_Details2_value"]')
-// .invoke('text')
-// .then((text) => {
-// let textvalue = text.toString()
-// if (textvalue.length > 0) {
-// var expectedNumberString = new Number(data.applyingSchools[0].schoolCapacityYear2).toLocaleString('en-GB')
-// expect(expectedNumberString)
-// .to.equal(textvalue.trim())
-// }
-// else {
-// return null
-// }
-// })
-
-// cy.get('[test-id="Future_pupil_numbers_Details3_key"]')
-// .should('be.visible')
-// .should('contain.text', 'Projected pupil numbers on roll in the following year (year 3)')
-// cy.get('[test-id="Future_pupil_numbers_Details3_value"]')
-// .invoke('text')
-// .then((text) => {
-// let textvalue = text.toString()
-// if (textvalue.length > 0) {
-// var expectedNumberString = new Number(data.applyingSchools[0].schoolCapacityYear3).toLocaleString('en-GB')
-// expect(expectedNumberString)
-// .to.equal(textvalue.trim())
-// }
-// else {
-// return null
-// }
-// })
-
-// cy.get('[test-id="Future_pupil_numbers_Details4_key"]')
-// .should('be.visible')
-// .should('contain.text', 'What do you base these projected numbers on?')
-// cy.get('[test-id="Future_pupil_numbers_Details4_value"]')
-// .invoke('text')
-// .then((text) => {
-// let textvalue = text.toString()
-// if (textvalue.length > 0) {
-// expect(data.applyingSchools[0].schoolCapacityAssumptions)
-// .to.equal(textvalue.trim())
-// }
-// else {
-// return null
-// }
-// })
-
-// cy.get('[test-id="Future_pupil_numbers_Details5_key"]')
-// .should('be.visible')
-// .should('contain.text', "What is the school's published admissions number (PAN)?")
-// cy.get('[test-id="Future_pupil_numbers_Details5_value"]')
-// .invoke('text')
-// .then((text) => {
-// let textvalue = text.toString()
-// if (textvalue.length > 0) {
-// var expectedNumberString = new Number(data.applyingSchools[0].schoolCapacityPublishedAdmissionsNumber).toLocaleString('en-GB')
-// expect(expectedNumberString)
-// .to.equal(textvalue.trim())
-// }
-// else {
-// return null
-// }
-// })
-// })
-
-// // Land & Buildings
-// it('TC16: Land & Buildings Details', () => {
-// cy.get('[test-id="Land_and_buildings_Details1_key"]')
-// .should('be.visible')
-// .should('contain.text', "As far as you're aware, who owns or holds the school's buildings and land?")
-// cy.get('[test-id="Land_and_buildings_Details1_value"]')
-// .invoke('text')
-// .then((text) => {
-// let textvalue = text.toString()
-// if (textvalue.length > 0) {
-// expect(data.applyingSchools[0].schoolBuildLandOwnerExplained)
-// .to.equal(textvalue.trim())
-// }
-// else {
-// return null
-// }
-// })
-
-// cy.get('[test-id="Land_and_buildings_Details2_key"]')
-// .should('be.visible')
-// .should('contain.text', 'Are there any current planned building works?')
-// cy.get('[test-id="Land_and_buildings_Details2_value"]')
-// .invoke('text')
-// .then((text) => {
-// let textvalue = text.toString()
-// if (textvalue.length > 0) {
-// expect(data.applyingSchools[0].schoolBuildLandWorksPlanned)
-// .to.be.a('boolean')
-// }
-// else return null
-
-// })
-
-// cy.get('[test-id="Land_and_buildings_Details3_key"]')
-// .should('be.visible')
-// .should('contain.text', 'Provide details of the works, how they\'ll be funded and whether the funding will be affected by the conversion')
-// cy.get('[test-id="Land_and_buildings_Details3_value"]')
-// .invoke('text')
-// .then((text) => {
-// let textvalue = text.toString()
-// if (textvalue.length > 0) {
-// expect(data.applyingSchools[0].schoolBuildLandWorksPlannedExplained)
-// .to.equal(text.trim())
-// }
-// else {
-// return null
-// }
-// })
-
-// cy.get('[test-id="Land_and_buildings_Details4_key"]')
-// .should('be.visible')
-// .should('contain.text', 'When is the scheduled completion date?')
-// cy.get('[test-id="Land_and_buildings_Details4_value"]')
-// .invoke('text')
-// .then((text) => {
-// let textvalue = text.toString()
-// if (textvalue.length > 0) {
-// expect(data.applyingSchools[0].schoolBuildLandWorksPlannedCompletionDate)
-// .to.equal(text.trim())
-// }
-// else {
-// return null
-// }
-// })
-
-// cy.get('[test-id="Land_and_buildings_Details5_key"]')
-// .should('be.visible')
-// .should('contain.text', 'Are there any shared facilities on site?')
-// cy.get('[test-id="Land_and_buildings_Details5_value"]')
-// .invoke('text')
-// .then((text) => {
-// let textvalue = text.toString()
-// if (textvalue == 'Yes' || 'No') {
-// expect(data.applyingSchools[0].schoolBuildLandSharedFacilities)
-// .to.be.a('boolean')
-// }
-// else {
-// return null
-// }
-// })
-
-// cy.get('[test-id="Land_and_buildings_Details6_key"]')
-// .should('be.visible')
-// .should('contain.text', 'List the facilities and the school\'s plan for them after converting')
-// cy.get('[test-id="Land_and_buildings_Details6_value"]')
-// .invoke('text')
-// .then((text) => {
-// let textvalue = text.toString()
-// if (textvalue.length > 0) {
-// expect(data.applyingSchools[0].schoolBuildLandSharedFacilitiesExplained)
-// .to.equal(text.trim())
-// }
-// else {
-// return null
-// }
-// })
-
-// cy.get('[test-id="Land_and_buildings_Details7_key"]')
-// .should('be.visible')
-// .should('contain.text', 'Has the school had any grants from Sport England, the Big Lottery Fund, or the Football Federation?')
-// cy.get('[test-id="Land_and_buildings_Details7_value"]')
-// .invoke('text')
-// .then((text) => {
-// let textvalue = text.toString()
-// if (textvalue == 'Yes' || 'No') {
-// expect(data.applyingSchools[0].schoolBuildLandGrants)
-// .to.be.a('boolean')
-// }
-// else {
-// return null
-// }
-// })
-
-// cy.get('[test-id="Land_and_buildings_Details8_key"]').should('contain.text', 'Which bodies awarded the grants and what facilities did they fund?')
-// cy.get('[test-id="Land_and_buildings_Details8_value"]')
-// .invoke('text')
-// .then((text) => {
-// let textvalue = text.toString()
-// if (textvalue.length > 0) {
-// expect(data.applyingSchools[0].schoolBuildLandGrantsExplained)
-// .to.equal(text.trim())
-// }
-// else {
-// return null
-// }
-// })
-
-// cy.get('[test-id="Land_and_buildings_Details9_key"]')
-// .should('be.visible')
-// .should('contain.text', 'Is the school part of a Private Finance Intiative (PFI) scheme?')
-// cy.get('[test-id="Land_and_buildings_Details9_value"]')
-// .invoke('text')
-// .then((text) => {
-// let textvalue = text.toString()
-// if (textvalue == 'Yes' || 'No') {
-// expect(data.applyingSchools[0].schoolBuildLandPFIScheme)
-// .to.be.a('boolean')
-// }
-// else {
-// return null
-// }
-// })
-
-// cy.get('[test-id="Land_and_buildings_Details10_key"]')
-// .should('be.visible')
-// .should('contain.text', 'What kind of PFI Scheme is your school part of?')
-// cy.get('[test-id="Land_and_buildings_Details10_value"]')
-// .invoke('text')
-// .then((text) => {
-// let textvalue = text.toString()
-// if (textvalue.length > 0) {
-// expect(data.applyingSchools[0].schoolBuildLandPFISchemeType)
-// .to.equal(text.trim())
-// }
-// else {
-// return null
-// }
-// })
-
-// cy.get('[test-id="Land_and_buildings_Details11_key"]')
-// .should('be.visible')
-// .should('contain.text', 'Is the school part of a Priority School Building Programme?')
-// cy.get('[test-id="Land_and_buildings_Details11_value"]')
-// .invoke('text')
-// .then((text) => {
-// let textvalue = text.toString()
-// if (textvalue == 'Yes' || 'No') {
-// expect(data.applyingSchools[0].schoolBuildLandPriorityBuildingProgramme)
-// .to.be.a('boolean')
-// }
-// else {
-// return null
-// }
-// })
-
-// cy.get('[test-id="Land_and_buildings_Details12_key"]')
-// .should('be.visible')
-// .should('contain.text', 'Is the school part of a Building Schools for the Future Programme?')
-// cy.get('[test-id="Land_and_buildings_Details12_value"]')
-// .invoke('text')
-// .then((text) => {
-// let textvalue = text.toString()
-// if (textvalue == 'Yes' || 'No') {
-// expect(data.applyingSchools[0].schoolBuildLandFutureProgramme)
-// .to.be.a('boolean')
-// }
-// else {
-// return null
-// }
-// })
-// })
-
-// // Pre-opening support grant
-// it('TC17: Pre-Opening Support Grant Details', () => {
-// cy.get('[test-id="Pre-opening_support_grant_Details1_key"]')
-// .should('be.visible')
-// .should('contain.text', 'Do you want these funds paid to the school or the trust?')
-// cy.get('[test-id="Pre-opening_support_grant_Details1_value"]')
-// .invoke('text')
-// .then((text) => {
-// let textvalue = text.toString()
-// if (textvalue.length > 0) {
-// expect(data.applyingSchools[0].schoolSupportGrantFundsPaidTo)
-// .to.equal(textvalue.trim())
-// }
-// else {
-// return null
-// }
-// })
-// })
-
-// // Consultation Details
-// it('TC18: Consultation Details', () => {
-// cy.get('[test-id="Consultation_Details1_key"]')
-// .should('be.visible')
-// .should('contain.text', 'Has the governing body consulted the relevant stakeholders?')
-// cy.get('[test-id="Consultation_Details1_value"]')
-// .invoke('text')
-// .then((text) => {
-// let textvalue = text.toString()
-// if (textvalue == 'Yes' || 'No') {
-// expect(data.applyingSchools[0].declarationBodyAgree)
-// .to.be.a('boolean')
-// }
-// else {
-// return null
-// }
-// })
-// })
-
-// // Declaration Details
-// it('TC19: Declaration Details', () => {
-// cy.get('[test-id="Declaration_Details1_key"]')
-// .should('be.visible')
-// .should('contain.text', 'I agree with all of these statements, and believe that the facts stated in this application are true')
-// cy.get('[test-id="Declaration_Details1_value"]')
-// .invoke('text')
-// .then((text) => {
-// let textvalue = text.toString()
-// if (textvalue == 'Yes' || 'No') {
-// expect(data.applyingSchools[0].declarationBodyAgree)
-// .to.be.a('boolean')
-// }
-// else {
-// return null
-// }
-// })
-
-// cy.get('[test-id="Declaration_Details2_key"]')
-// .should('be.visible')
-// .should('contain.text', 'Signed by')
-// cy.get('[test-id="Declaration_Details2_value"]')
-// .invoke('text')
-// .then((text) => {
-// let textvalue = text.toString()
-// if (textvalue.length > 0) {
-// expect(data.applyingSchools[0].declarationSignedByName)
-// .to.equal(textvalue.trim())
-// }
-// else {
-// return null
-// }
-// })
-// })
-// })
diff --git a/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/School-application-form-apply-to-become/stageIntegration-tests.cy.js b/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/School-application-form-apply-to-become/stageIntegration-tests.cy.js
deleted file mode 100644
index 25c03aefd..000000000
--- a/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/School-application-form-apply-to-become/stageIntegration-tests.cy.js
+++ /dev/null
@@ -1,1546 +0,0 @@
-/* eslint no-unused-vars: 0 */
-/* eslint no-constant-condition: 0 */
-///
-
-import { data } from "../../fixtures/stagingProject-body.json"
-
-//***************requres environment setup on yml file******************
-describe('Fetch data from Internal', { tags: ['@integration'] }, () => {
- let fetchProjectsStaging = ['1241']
- let url = Cypress.env('url')
-
- beforeEach(() => {
- cy.login()
- cy.get('[id="school-name-0"]').click()
- if (url.toString().includes('staging')) {
- cy.visit(url + '/school-application-form/' + fetchProjectsStaging)
- }
- else {
- Cypress.runner.stop()
- }
- })
-
- // Overview
- it('TC01: Overview - Application Lead', () => {
- // key=Question:
- cy.get('[test-id="Overview1_key"]')
- .should('be.visible')
- .should('contain.text', 'Application to join')
- // value=Answer:
- cy.get('[test-id="Overview1_value"]')
- .invoke('text')
- .then((text) => {
- let textvalue = text.toString()
- if (textvalue.length > 0) {
- let nameSchoolname = data.trustName + ' with ' + data.applyingSchools[0].schoolName
- expect(textvalue)
- .to.contain(nameSchoolname.trim())
- }
- else {
- return null
- }
- })
-
- cy.get('[test-id="Overview2_key"]')
- .should('be.visible')
- .should('contain.text', 'Application reference')
- cy.get('[test-id="Overview2_value"]')
- .invoke('text')
- .then((text) => {
- let textvalue = text.toString()
- if (textvalue.length > 0) {
- expect(data.applicationId)
- .to.equal(textvalue.trim())
- }
- else {
- return null
- }
- })
-
- cy.get('[test-id="Overview3_key"]')
- .should('be.visible')
- .should('contain.text', 'Lead applicant')
- cy.get('[test-id="Overview3_value"]')
- .invoke('text')
- .then((text) => {
- let textvalue = text.toString()
- if (textvalue.length > 0) {
- expect(data.applicationLeadAuthorName)
- .to.equal(text.trim())
- }
- else {
- return null
- }
- })
- })
-
- // Details of Trust
- it('TC02: Trust details', () => {
- cy.get('[test-id="Overview_Details1_key"]')
- .should('be.visible')
- .should('contain.text', 'Trust name')
- cy.get('[test-id="Overview_Details1_value"]')
- .invoke('text')
- .then((text) => {
- let textvalue = text.toString()
- if (textvalue.length > 0) {
- expect(data.trustName)
- .to.equal(textvalue.trim())
- }
- else {
- return null
- }
- })
-
- cy.get('[test-id="Overview_Details2_key"]')
- .should('be.visible')
- .should('contain.text', 'Will there be any changes to the governance of the trust due to the school joining?')
- cy.get('[test-id="Overview_Details2_value"]')
- .invoke('text')
- .then((text) => {
- let textvalue = text.toString()
- if (textvalue.length > 0) {
- expect(data.changesToLaGovernance)
- .to.be.a('boolean')
- }
- else return null
- })
-
- cy.get('[test-id="Overview_Details2_value"]')
- .invoke('text').then(cy.log)
- .then((text) => {
- if (text === 'Yes') {
- cy.get('[test-id="Overview_Details3_key"]')
- .should('be.visible')
- .should('contain.text', 'What are the changes?')
- expect(data.changesToTrustExplained)
- .to.equal(text.trim())
- }
- else return
- })
-
- })
-
- // About the conversion
- it('TC03: The School Joining the Trust', () => {
- cy.get('[test-id="About_the_conversion_The_school_joining_the_trust1_key"]')
- .should('be.visible')
- .should('contain.text', 'The name of the school')
- cy.get('[test-id="About_the_conversion_The_school_joining_the_trust1_value"]')
- .invoke('text')
- .then((text) => {
- let textvalue = text.toString()
- if (textvalue.length > 0) {
- expect(data.applyingSchools[0].schoolName)
- .to.equal(textvalue.trim())
- }
- else {
- return null
- }
- })
-
- })
-
- // Contain Details
- it('TC04: Contact Details', () => {
- cy.get('[test-id="About_the_conversion_Contact_details1_key"]')
- .should('be.visible')
- .should('contain.text', 'Name of headteacher')
- cy.get('[test-id="About_the_conversion_Contact_details1_value"]')
- .invoke('text')
- .then((text) => {
- let textvalue = text.toString()
- if (textvalue.length > 0) {
- expect(data.applyingSchools[0].schoolConversionContactHeadName)
- .to.equal(textvalue.trim())
- }
- else {
- return null
- }
- })
-
- cy.get('[test-id="About_the_conversion_Contact_details2_key"]')
- .should('be.visible')
- .should('contain.text', "Headteacher's email address")
- cy.get('[test-id="About_the_conversion_Contact_details2_value"]')
- .invoke('text')
- .then((text) => {
- let textvalue = text.toString()
- if (textvalue.length > 0) {
- expect(data.applyingSchools[0].schoolConversionContactHeadEmail)
- .to.equal(textvalue.trim())
- }
- else {
- return null
- }
- })
-
- cy.get('[test-id="About_the_conversion_Contact_details4_key"]')
- .should('be.visible')
- .should('contain.text', 'Name of the chair of the Governing Body')
- cy.get('[test-id="About_the_conversion_Contact_details4_value"]')
- .invoke('text')
- .then((text) => {
- let textvalue = text.toString()
- if (textvalue.length > 0) {
- expect(data.applyingSchools[0].schoolConversionContactChairName)
- .to.equal(textvalue.trim())
- }
- else {
- return null
- }
- })
-
- cy.get('[test-id="About_the_conversion_Contact_details5_key"]')
- .should('be.visible')
- .should('contain.text', "Chair's email address")
- cy.get('[test-id="About_the_conversion_Contact_details5_value"]')
- .invoke('text')
- .then((text) => {
- let textvalue = text.toString()
- if (textvalue.length > 0) {
- expect(data.applyingSchools[0].schoolConversionContactChairEmail)
- .to.equal(textvalue.trim())
- }
- else {
- return null
- }
- })
-
- cy.get('[test-id="About_the_conversion_Contact_details7_key"]')
- .should('be.visible')
- .should('contain.text', "Who is the main contact for the conversion?")
- cy.get('[test-id="About_the_conversion_Contact_details7_value"]')
- .invoke('text')
- .then((text) => {
- let textvalue = text.toString()
- if (textvalue.length > 0) {
- expect(data.applyingSchools[0].schoolConversionContactRole)
- .to.equal(textvalue.trim())
- }
- else {
- return null
- }
- })
-
- cy.get('[test-id="About_the_conversion_Contact_details8_key"]')
- .should('be.visible')
- .should('contain.text', "Approver's name")
- cy.get('[test-id="About_the_conversion_Contact_details8_value"]')
- .invoke('text')
- .then((text) => {
- let textvalue = text.toString()
- if (textvalue.length > 0) {
- expect(data.applyingSchools[0].schoolConversionApproverContactName)
- .to.equal(textvalue.trim())
- }
- else {
- return null
- }
- })
- })
-
- it('TC05: Date for Conversion', () => {
- cy.get('[test-id="About_the_conversion_Date_for_conversion1_key"]')
- .should('be.visible')
- .should('contain.text', 'Do you want the conversion to happen on a particular date')
- cy.get('[test-id="About_the_conversion_Date_for_conversion1_value"]')
- .invoke('text')
- .then((text) => {
- let textvalue = text.toString()
- if (textvalue.length > 0) {
- expect(data.applyingSchools[0].schoolConversionTargetDateSpecified)
- .to.be.a('boolean')
- }
- else {
- return null
- }
- })
-
- cy.get('[test-id="About_the_conversion_Date_for_conversion2_key"]')
- .should('be.visible')
- .should('contain.text', 'Preferred date')
- cy.get('[test-id="About_the_conversion_Date_for_conversion2_value"]')
- .invoke('text')
- .then((text) => {
- let textvalue = text.toString()
- if (textvalue.length > 0) {
- var expectedDateString = new Date(data.applyingSchools[0].schoolConversionTargetDate).toLocaleDateString('en-GB', {
- year: 'numeric',
- month: 'long',
- day: 'numeric'
- })
- expect(expectedDateString)
- .to.deep.equal(text.trim())
- }
- else {
- return null
- }
- })
- })
-
- // Reasons for Joining
- it('TC06: Reasons for Joining', () => {
- cy.get('[test-id="About_the_conversion_Reasons_for_joining1_key"]')
- .should('be.visible')
- .should('contain.text', 'Why does the school want to join this trust in particular?')
- cy.get('[test-id="About_the_conversion_Reasons_for_joining1_value"]')
- .invoke('text')
- .then((text) => {
- let textvalue = text.toString()
- if (textvalue.length > 0) {
- expect(data.applyingSchools[0].schoolConversionReasonsForJoining)
- .to.equal(textvalue.replaceAll('\r\n', '').trim())
- }
- else {
- return null
- }
- })
- })
-
- // Name changes
- it('TC07: Name Changes', () => {
- cy.get('[test-id="About_the_conversion_Name_changes1_key"]')
- .should('be.visible')
- .should('contain.text', 'Is the school planning to change its name when it becomes an academy?')
- cy.get('[test-id="About_the_conversion_Name_changes1_value"]')
- .invoke('text').then(cy.log)
- .then((text) => {
- if (text === 'Yes' || 'No') {
- cy.url().then(urlString => {
- let modifiedUrl = urlString
- cy.request(
- 'GET',
- modifiedUrl).then((response) => {
- expect(data.applyingSchools[0].schoolConversionChangeNamePlanned)
- .to.be.a('boolean')
- })
- })
- }
- else {
- return null
- }
- })
- })
-
- // Further Information
- it('TC08: Additional Details', () => {
- cy.get('[test-id="Further_information_Additional_details1_key"]')
- .should('be.visible')
- .should('contain.text', 'What will the school bring to the trust they are joining?')
- cy.get('[test-id="Further_information_Additional_details1_value"]')
- .invoke('text')
- .then((text) => {
- let textvalue = text.toString()
- if (textvalue.length > 0) {
- expect(data.applyingSchools[0].schoolAdSchoolContributionToTrust)
- .to.equal(textvalue.trim())
- }
- else {
- return null
- }
- })
-
- cy.get('[test-id="Further_information_Additional_details2_key"]')
- .should('be.visible')
- .should('contain.text', 'Have Ofsted inspected the school but not published the report yet?')
- cy.get('[test-id="Further_information_Additional_details2_value"]')
- .invoke('text').then(cy.log)
- .then((text) => {
- if (text === 'Yes' || 'No') {
- cy.url().then(urlString => {
- let modifiedUrl = urlString
- cy.request(
- 'GET',
- modifiedUrl).then((response) => {
- expect(data.applyingSchools[0].schoolAdInspectedButReportNotPublished)
- .to.be.a('boolean')
- })
- })
- }
- else {
- return null
- }
- })
-
- cy.get('[test-id="Further_information_Additional_details3_key"]')
- .should('be.visible')
- .should('contain.text', 'Provide the inspection date and a short summary of the outcome')
- cy.get('[test-id="Further_information_Additional_details3_value"]')
- .invoke('text')
- .then((text) => {
- let textvalue = text.toString()
- if (textvalue.length > 0) {
- expect(data.applyingSchools[0].schoolAdInspectedButReportNotPublishedExplain)
- .to.equal(textvalue.replaceAll('\r\n', '').trim())
- }
- else {
- return null
- }
- })
-
- cy.get('[test-id="Further_information_Additional_details4_key"]')
- .should('be.visible')
- .should('contain.text', 'Are there any safeguarding investigations ongoing at the school?')
- cy.get('[test-id="Further_information_Additional_details4_value"]')
- .invoke('text')
- .then((text) => {
- if (text === 'Yes' || 'No') {
- cy.url().then(urlString => {
- let modifiedUrl = urlString
- cy.request(
- 'GET',
- modifiedUrl).then((response) => {
- expect(data.applyingSchools[0].schoolOngoingSafeguardingInvestigations)
- .to.be.a('boolean')
- })
- })
- }
- else {
- return null
- }
- })
-
- cy.get('[test-id="Further_information_Additional_details6_key"]')
- .should('be.visible')
- .should('contain.text', 'Is the school part of a local authority reorganisation?')
- cy.get('[test-id="Further_information_Additional_details6_value"]')
- .invoke('text').then(cy.log)
- .then((text) => {
- if (text === 'Yes' || 'No') {
- cy.url().then(urlString => {
- let modifiedUrl = urlString
- cy.request(
- 'GET',
- modifiedUrl).then((response) => {
- expect(data.applyingSchools[0].schoolPartOfLaReorganizationPlan)
- .to.be.a('boolean')
- })
- })
- }
- else {
- return null
- }
- })
-
- cy.get('[test-id="Further_information_Additional_details8_key"]')
- .should('be.visible')
- .should('contain.text', 'Is the school part of any local authority closure plans?')
- cy.get('[test-id="Further_information_Additional_details8_value"]')
- .invoke('text').then(cy.log)
- .then((text) => {
- if (text === 'Yes' || 'No') {
- cy.url().then(urlString => {
- let modifiedUrl = urlString
- cy.request(
- 'GET',
- modifiedUrl).then((response) => {
- expect(data.applyingSchools[0].schoolPartOfLaClosurePlan)
- .to.be.a('boolean')
- })
- })
- }
- else {
- return null
- }
- })
-
- cy.get('[test-id="Further_information_Additional_details10_key"]')
- .should('be.visible')
- .should('contain.text', 'Is your school linked to a diocese?')
- cy.get('[test-id="Further_information_Additional_details10_value"]')
- .invoke('text').then(cy.log)
- .then((text) => {
- if (text === 'Yes' || 'No') {
- cy.url().then(urlString => {
- let modifiedUrl = urlString
- cy.request(
- 'GET',
- modifiedUrl).then((response) => {
- expect(data.applyingSchools[0].schoolFaithSchool)
- .to.be.a('boolean')
- })
- })
- }
- else {
- return null
- }
- })
-
- cy.get('[test-id="Further_information_Additional_details12_key"]')
- .should('be.visible')
- .should('contain.text', 'Is your school part of a federation?')
- cy.get('[test-id="Further_information_Additional_details12_value"]')
- .invoke('text').then(cy.log)
- .then((text) => {
- if (text === 'Yes' || 'No') {
- cy.url().then(urlString => {
- let modifiedUrl = urlString
- cy.request(
- 'GET',
- modifiedUrl).then((response) => {
- expect(data.applyingSchools[0].schoolIsPartOfFederation)
- .to.be.a('boolean')
- })
- })
- }
- else {
- return null
- }
- })
-
- cy.get('[test-id="Further_information_Additional_details13_key"]')
- .should('be.visible')
- .should('contain.text', 'Is the school supported by a foundation, trust or other body (e.g. parish council) that appoints foundation governors?')
- cy.get('[test-id="Further_information_Additional_details13_value"]')
- .invoke('text')
- .then((text) => {
- let textvalue = text.toString()
- if (textvalue.length > 0) {
- expect(data.applyingSchools[0].schoolIsSupportedByFoundation)
- .to.equal(true || false)
- }
- else {
- return null
- }
- })
-
- cy.get('[test-id="Further_information_Additional_details14_key"]')
- .should('be.visible')
- .should('contain.text', 'Name of this body')
- cy.get('[test-id="Further_information_Additional_details14_value"]')
- .invoke('text')
- .then((text) => {
- let textvalue = text.toString()
- if (textvalue.length > 0) {
- expect(data.applyingSchools[0].schoolSupportedFoundationBodyName)
- .to.equal(textvalue.trim())
- }
- else {
- return null
- }
- })
-
- cy.get('[test-id="Further_information_Additional_details15_key"]')
- .should('be.visible')
- .should('contain.text', 'Does the school currently have an exemption from providing broadly Christian collective worship issued by the local Standing Committee on Religious Education (SACRE)?')
- cy.get('[test-id="Further_information_Additional_details15_value"]')
- .invoke('text').then(cy.log)
- .then((text) => {
- if (text === 'Yes' || 'No') {
- cy.url().then(urlString => {
- let modifiedUrl = urlString
- cy.request(
- 'GET',
- modifiedUrl).then((response) => {
- expect(data.applyingSchools[0].schoolHasSACREException)
- .to.be.a('boolean')
- })
- })
- }
- else {
- return null
- }
- })
-
- cy.get('[test-id="Further_information_Additional_details16_key"]')
- .should('contain.text', 'When does the exemption end?')
- cy.get('[test-id="Further_information_Additional_details16_value"]')
- .invoke('text')
- .then((text) => {
- let textvalue = text.toString()
- if (textvalue.length > 0) {
- var expectedDateString = new Date(data.applyingSchools[0].schoolSACREExemptionEndDate).toLocaleDateString('en-GB', {
- year: 'numeric',
- month: 'long',
- day: 'numeric'
- })
- expect(expectedDateString)
- .to.equal(textvalue.trim())
- }
- else {
- return null
- }
- })
-
- // 'Upload evidence' IS NOT BE COVERED IN THIS TEST AS THESE ARE UPLOAD LINKS- [test-id="Further_information_Additional_details11_key"]
- cy.get('[test-id="Further_information_Additional_details18_key"]')
- .should('be.visible')
- .should('contain.text', 'Has an equalities impact assessment been carried out and considered by the governing body?')
- cy.get('[test-id="Further_information_Additional_details18_value"]')
- .invoke('text').then(cy.log)
- .then((text) => {
- if (text === 'Yes' || 'No') {
- cy.url().then(urlString => {
- let modifiedUrl = urlString
- cy.request(
- 'GET',
- modifiedUrl).then((response) => {
- expect(data.applyingSchools[0].schoolAdEqualitiesImpactAssessmentCompleted)
- .to.be.a('boolean')
- })
- })
- }
- else {
- return null
- }
- })
-
- cy.get('[test-id="Further_information_Additional_details19_key"]')
- .should('be.visible')
- .should('contain.text', 'When the governing body considered the equality duty what did they decide?')
- cy.get('[test-id="Further_information_Additional_details19_value"]')
- .invoke('text')
- .then((text) => {
- let textvalue = text.toString()
- if (textvalue.length > 0) {
- expect(data.applyingSchools[0].schoolAdEqualitiesImpactAssessmentDetails)
- .to.equal(textvalue.trim())
- }
- else {
- return null
- }
- })
-
- cy.get('[test-id="Further_information_Additional_details20_key"]')
- .should('be.visible')
- .should('contain.text', 'Do you want to add any further information?')
- cy.get('[test-id="Further_information_Additional_details20_value"]')
- .invoke('text').then(cy.log)
- .then((text) => {
- if (text === 'Yes' || 'No') {
- cy.url().then(urlString => {
- let modifiedUrl = urlString
- cy.request(
- 'GET',
- modifiedUrl).then((response) => {
- expect(data.applyingSchools[0].schoolAdditionalInformationAdded)
- .to.be.a('boolean')
- })
- })
- }
- else {
- return null
- }
- })
-
- cy.get('[test-id="Further_information_Additional_details21_key"]')
- .should('be.visible')
- .should('contain.text', 'Add any further information')
- cy.get('[test-id="Further_information_Additional_details21_value"]')
- .invoke('text')
- .then((text) => {
- let textvalue = text.toString()
- if (textvalue.length > 0) {
- expect(data.applyingSchools[0].schoolAdditionalInformation)
- .to.equal(textvalue.replaceAll('\r\n', '').trim())
- }
- else {
- return null
- }
- })
- })
-
- // Finance Details **NEEDS ADDITIONAL LOGIC: To fix once Apply-to-become External becomes available**
- it('TC09: Previous Financial Year', () => {
- cy.get('[test-id="Finances_Previous_financial_year1_key"]')
- .should('be.visible')
- .should('contain.text', 'End of previous financial year')
- cy.get('[test-id="Finances_Previous_financial_year1_value"]')
- .invoke('text')
- .then((text) => {
- let textvalue = text.toString()
- if (textvalue.length > 0) {
- expect(data.applyingSchools[0].previousFinancialYear.fyEndDate)
- .to.equal(textvalue.trim())
- }
- else {
- return null
- }
- })
-
- cy.get('[test-id="Finances_Previous_financial_year2_key"]')
- .should('be.visible')
- .should('contain.text', 'Revenue carry forward at the end of the previous financial year (31 March)')
- cy.get('[test-id="Finances_Previous_financial_year2_value"]')
- .invoke('text')
- .then((text) => {
- let textvalue = text.toString()
- if (textvalue.length > 0) {
- var expectedNumberString = new Number(data.applyingSchools[0].previousFinancialYear.revenueCarryForward).toLocaleString('en-GB', {
- style: 'currency',
- currency: 'GBP'
- })
- expect(expectedNumberString)
- .to.equal(textvalue.trim())
- }
- else {
- return null
- }
- })
-
- cy.get('[test-id="Finances_Previous_financial_year3_key"]')
- .should('be.visible')
- .should('contain.text', 'Surplus or deficit?')
- cy.get('[test-id="Finances_Previous_financial_year3_value"]')
- .invoke('text')
- .then((text) => {
- let textvalue = text.toString()
- if (textvalue.length > 0) {
- expect(data.applyingSchools[0].previousFinancialYear.revenueIsDeficit)
- .to.be.a('boolean')
- }
- else return null
- })
-
- //Conditional Tests:
- cy.get('[test-id="Finances_Previous_financial_year3_value"]')
- .invoke('text').then(cy.log)
- .then((text) => {
- if (text === 'Surplus' || 'Deficit') {
- cy.get('[test-id="Finances_Previous_financial_year4"]')
- .should('be.visible')
- .should('contain.text', "Capital carry forward at the end of the previous financial year (31 March)")
- }
-
- })
-
- //Conditional Tests:
- cy.get('[test-id="Finances_Previous_financial_year3_value"]')
- .invoke('text').then(cy.log)
- .then((text) => {
- if (text === 'Surplus' || 'Deficit') {
- cy.get('[test-id="Finances_Previous_financial_year4_value"]')
- .invoke('text')
- .then((text) => {
- let textvalue = text.toString()
- if (textvalue.length > 0) {
- var expectedNumberString = new Number(data.applyingSchools[0].previousFinancialYear.capitalCarryForward).toLocaleString('en-GB', {
- style: 'currency',
- currency: 'GBP'
- })
- expect(expectedNumberString)
- .to.equal(textvalue.trim())
- }
- else {
- return null
- }
- })
-
- }
-
- })
-
- cy.get('[test-id="Finances_Previous_financial_year4_key"]')
- .should('be.visible')
- .should('contain.text', 'Capital carry forward at the end of the previous financial year (31 March)')
- cy.get('[test-id="Finances_Previous_financial_year4_value"]')
- .invoke('text')
- .then((text) => {
- let textvalue = text.toString()
- if (textvalue.length > 0) {
- var expectedNumberString = new Number(data.applyingSchools[0].previousFinancialYear.capitalCarryForward).toLocaleString('en-GB', {
- style: 'currency',
- currency: 'GBP'
- })
- expect(expectedNumberString)
- .to.equal(textvalue.trim())
- }
- else {
- return null
- }
- })
- })
-
- // Current Financial Year **NEEDS ADDITIONAL LOGIC: To fix once Apply-to-become External becomes available**
- it('TC10: Current Financial Year', () => {
- cy.get('[test-id="Finances_Current_financial_year1_key"]')
- .should('be.visible')
- .should('contain.text', 'End of current financial year')
- cy.get('[test-id="Finances_Current_financial_year1_value"]')
- .invoke('text')
- .then((text) => {
- let textvalue = text.toString()
- if (textvalue.length > 0) {
- expect(data.applyingSchools[0].currentFinancialYear.fyEndDate)
- .to.equal(textvalue.trim())
- }
- else {
- return null
- }
- })
-
- cy.get('[test-id="Finances_Current_financial_year2_key"]')
- .should('be.visible')
- .should('contain.text', 'Forecasted revenue carry forward at the end of the current financial year (31 March)')
- cy.get('[test-id="Finances_Current_financial_year2_value"]')
- .invoke('text')
- .then((text) => {
- let textvalue = text.toString()
- if (textvalue.length > 0) {
- var expectedNumberString = new Number(data.applyingSchools[0].currentFinancialYear.revenueCarryForward).toLocaleString('en-GB', {
- style: 'currency',
- currency: 'GBP'
- })
- expect(expectedNumberString)
- .to.equal(textvalue.trim())
- }
- else {
- return null
- }
- })
-
- cy.get('[test-id="Finances_Current_financial_year3_key"]')
- .should('be.visible')
- .should('contain.text', 'Surplus or deficit?')
- cy.get('[test-id="Finances_Current_financial_year3_value"]')
- .invoke('text')
- .then((text) => {
- let textvalue = text.toString()
- if (textvalue.length > 0) {
- expect(data.applyingSchools[0].previousFinancialYear.revenueIsDeficit)
- .to.be.a('boolean')
- }
- else return null
- })
-
- cy.get('[test-id="Finances_Current_financial_year4_key"]')
- .should('be.visible')
- .should('contain.text', 'Explain the reasons for the deficit, how the school plans to deal with it, and the recovery plan')
- cy.get('[test-id="Finances_Current_financial_year4_value"]')
- .invoke('text')
- .then((text) => {
- let textvalue = text.toString()
- if (textvalue.length > 0) {
- expect(data.applyingSchools[0].currentFinancialYear.capitalStatusExplained)
- .to.equal(text.trim())
- }
- else {
- return null
- }
- })
-
- cy.get('[test-id="Finances_Current_financial_year5_key"]')
- .should('be.visible')
- .should('contain.text', 'Forecasted capital carry forward at the end of the current financial year (31 March)')
- cy.get('[test-id="Finances_Current_financial_year5_value"]')
- .invoke('text')
- .then((text) => {
- let textvalue = text.toString()
- if (textvalue.length > 0) {
- var expectedNumberString = new Number(data.applyingSchools[0].currentFinancialYear.capitalCarryForward).toLocaleString('en-GB', {
- style: 'currency',
- currency: 'GBP'
- })
- expect(expectedNumberString)
- .to.equal(textvalue.trim())
- }
- else {
- return null
- }
- })
-
- cy.get('[test-id="Finances_Current_financial_year6_key"]')
- .should('be.visible')
- .should('contain.text', 'Surplus or deficit?')
- })
-
- // Next Financial Year
- it('TC11: Next Financial Year', () => {
- cy.get('[test-id="Finances_Next_financial_year1_key"]')
- .should('be.visible')
- .should('contain.text', 'End of next financial year')
- cy.get('[test-id="Finances_Next_financial_year1_value"]')
- .invoke('text')
- .then((text) => {
- let textvalue = text.toString()
- if (textvalue.length > 0) {
- expect(data.applyingSchools[0].nextFinancialYear.fyEndDate)
- .to.equal(textvalue.trim())
- }
- else {
- return null
- }
- })
-
- cy.get('[test-id="Finances_Next_financial_year2_key"]')
- .should('be.visible')
- .should('contain.text', 'Forecasted revenue carry forward at the end of the next financial year (31 March)')
- cy.get('[test-id="Finances_Next_financial_year2_value"]')
- .invoke('text')
- .then((text) => {
- let textvalue = text.toString()
- if (textvalue.length > 0) {
- var expectedNumberString = new Number(data.applyingSchools[0].nextFinancialYear.revenueCarryForward).toLocaleString('en-GB', {
- style: 'currency',
- currency: 'GBP'
- })
- expect(expectedNumberString)
- .to.equal(textvalue.trim())
- }
- else {
- return null
- }
- })
-
- cy.get('[test-id="Finances_Next_financial_year3_key"]')
- .should('be.visible')
- .should('contain.text', 'Surplus or deficit?')
- cy.get('[test-id="Finances_Next_financial_year3_value"]')
- .invoke('text')
- .then((text) => {
- let textvalue = text.toString()
- if (textvalue === 'Deficit' || 'Surplus') {
- expect(data.applyingSchools[0].nextFinancialYear.revenueIsDeficit)
- .to.be.a('boolean')
- }
- else return null
-
- })
-
- cy.get('[test-id="Finances_Next_financial_year4_key"]')
- .should('be.visible')
- .should('contain.text', 'Forecasted capital carry forward at the end of the next financial year (31 March)')
- cy.get('[test-id="Finances_Next_financial_year4_value"]')
- .invoke('text')
- .then((text) => {
- let textvalue = text.toString()
- if (textvalue.length > 0) {
- var expectedNumberString = new Number(data.applyingSchools[0].nextFinancialYear.capitalCarryForward).toLocaleString('en-GB', {
- style: 'currency',
- currency: 'GBP'
- })
- expect(expectedNumberString)
- .to.equal(textvalue.trim())
- }
- else {
- return null
- }
- })
-
- cy.get('[test-id="Finances_Next_financial_year5_key"]')
- .should('be.visible')
- .should('contain.text', 'Surplus or deficit?')
- cy.get('[test-id="Finances_Next_financial_year5_value"]')
- .invoke('text')
- .then((text) => {
- let textvalue = text.toString()
- if (textvalue === 'Deficit' || 'Surplus') {
- expect(data.applyingSchools[0].nextFinancialYear.capitalIsDeficit)
- .to.be.a('boolean')
- }
- else {
- return null
- }
- })
- })
-
- // Loans Details
- it('TC12: Loans Details', () => {
-
- cy.get('[test-id="Finances_Loans1_key"]')
- .should('be.visible')
- .should('contain.text', 'Are there any existing loans?')
- cy.get('[test-id="Finances_Loans1_value"]')
- .invoke('text').then(cy.log)
- // THIS IS NOT REPRESENTED IN THE JSON BODY | NOTE from Catherine "This is set as 'yes' if there are loans to display and 'No' if there aren't"
-
- cy.get('[test-id="Finances_Loans2_key"]')
- .should('be.visible')
- .should('contain.text', 'Total amount')
- cy.get('[test-id="Finances_Loans2_value"]')
- .invoke('text')
- .then((text) => {
- let textvalue = text.toString()
- if (textvalue.length > 0) {
- var expectedNumberString = new Number(data.applyingSchools[0].schoolLoans[0].schoolLoanAmount).toLocaleString('en-GB', {
- style: 'currency',
- currency: 'GBP'
- })
- expect(expectedNumberString)
- .to.equal(textvalue.trim())
- }
- else {
- return null
- }
- })
-
- cy.get('[test-id="Finances_Loans3_key"]')
- .should('be.visible')
- .should('contain.text', 'Purpose of the loan')
- cy.get('[test-id="Finances_Loans3_value"]')
- .invoke('text')
- .then((text) => {
- let textvalue = text.toString()
- if (textvalue.length > 0) {
- expect(data.applyingSchools[0].schoolLoans[0].schoolLoanPurpose)
- .to.equal(textvalue.trim())
- }
- else {
- return null
- }
- })
-
- cy.get('[test-id="Finances_Loans4_key"]')
- .should('be.visible')
- .should('contain.text', 'Loan provider')
- cy.get('[test-id="Finances_Loans4_value"]')
- .invoke('text')
- .then((text) => {
- let textvalue = text.toString()
- if (textvalue.length > 0) {
- expect(data.applyingSchools[0].schoolLoans[0].schoolLoanProvider)
- .to.equal(textvalue.trim())
- }
- else {
- return null
- }
- })
-
- cy.get('[test-id="Finances_Loans5_key"]')
- .should('be.visible')
- .should('contain.text', 'Interest rate')
- cy.get('[test-id="Finances_Loans5_value"]')
- .invoke('text')
- .then((text) => {
- let textvalue = text.toString()
- if (textvalue.length > 0) {
- expect(data.applyingSchools[0].schoolLoans[0].schoolLoanInterestRate)
- .to.equal(textvalue.trim())
- }
- else {
- return null
- }
- })
-
- cy.get('[test-id="Finances_Loans6_key"]')
- .should('be.visible')
- .should('contain.text', 'Schedule of repayment')
- cy.get('[test-id="Finances_Loans6_value"]')
- .invoke('text')
- .then((text) => {
- let textvalue = text.toString()
- if (textvalue.length > 0) {
- expect(data.applyingSchools[0].schoolLoans[0].schoolLoanSchedule)
- .to.equal(textvalue.trim())
- }
- else {
- return null
- }
- })
- })
-
- // Financial leases
- it('TC13: Financial Leases', () => {
- cy.get('[test-id="Finances_Financial_leases1_key"]')
- .should('be.visible')
- .should('contain.text', 'Are there any existing leases?')
- cy.get('[test-id="Finances_Financial_leases1_value"]')
- .invoke('text')
- .then((text) => {
- let textvalue = text.toString()
- if (textvalue == 'Yes') {
- // THIS IS NOT REPRESENTED IN THE JSON BODY | NOTE from Catherine "This is set as 'yes' if there are leases to display and 'No' if there aren't, as with loans"
-
- cy.get('[test-id="Finances_Financial_leases2_key"]')
- .should('be.visible')
- .should('contain.text', 'Details of the term of the finance lease agreement')
- cy.get('[test-id="Finances_Financial_leases2_value"]')
- .invoke('text')
- .then((text) => {
- let textvalue = text.toString()
- if (textvalue.length > 0) {
- expect(data.applyingSchools[0].schoolLeases[0].schoolLeaseTerm)
- .to.equal(textvalue.trim())
- }
- else {
- return null
- }
- })
- cy.get('[test-id="Finances_Financial_leases3_key"]')
- .should('be.visible')
- .should('contain.text', 'Repayment value')
- cy.get('[test-id="Finances_Financial_leases3_value"]')
- .invoke('text')
- .then((text) => {
- let textvalue = text.toString()
- if (textvalue.length > 0) {
- var expectedNumberString = new Number(data.applyingSchools[0].schoolLeases[0].schoolLeaseRepaymentValue).toLocaleString('en-GB', {
- style: 'currency',
- currency: 'GBP'
- })
- expect(expectedNumberString)
- .to.equal(textvalue.trim())
- }
- else {
- return null
- }
- })
-
- cy.get('[test-id="Finances_Financial_leases4_key"]')
- .should('be.visible')
- .should('contain.text', 'Interest rate chargeable')
- cy.get('[test-id="Finances_Financial_leases4_value"]')
- .invoke('text')
- .then((text) => {
- let textvalue = text.toString()
- if (textvalue.length > 0) {
- var expectedNumberString = new Number(data.applyingSchools[0].schoolLeases[0].schoolLeaseInterestRate / 100).toLocaleString('en-GB', {
- style: 'percent',
- maximumFractionDigits: 2
- })
- expect(parseFloat(expectedNumberString).toFixed(2) + "%")
- .to.equal(textvalue.trim())
- }
- else {
- return null
- }
- })
-
- cy.get('[test-id="Finances_Financial_leases5_key"]')
- .should('be.visible')
- .should('contain.text', 'Value of payments made to date')
- cy.get('[test-id="Finances_Financial_leases5_value"]')
- .invoke('text')
- .then((text) => {
- let textvalue = text.toString()
- if (textvalue.length > 0) {
- var expectedNumberString = new Number(data.applyingSchools[0].schoolLeases[0].schoolLeasePaymentToDate).toLocaleString('en-GB', {
- style: 'currency',
- currency: 'GBP'
- })
- expect(expectedNumberString)
- .to.equal(textvalue.trim())
- }
- else {
- return null
- }
- })
-
- cy.get('[test-id="Finances_Financial_leases6"]')
- .should('be.visible')
- .should('contain.text', 'What was the finance lease for?')
- cy.get('[test-id="Finances_Financial_leases6_value"]')
- .invoke('text')
- .then((text) => {
- let textvalue = text.toString()
- if (textvalue.length > 0) {
- expect(data.applyingSchools[0].schoolLeases[0].schoolLeasePurpose)
- .to.equal(textvalue.trim())
- }
- else {
- return null
- }
- })
-
- cy.get('[test-id="Finances_Financial_leases7_key"]')
- .should('be.visible')
- .should('contain.text', 'Value of the assests at the start of the finance lease agreement')
- cy.get('[test-id="Finances_Financial_leases7_value"]')
- .invoke('text')
- .then((text) => {
- let textvalue = text.toString()
- if (textvalue.length > 0) {
- expect(data.applyingSchools[0].schoolLeases[0].schoolLeaseValueOfAssets)
- .to.equal(textvalue.trim())
- }
- else {
- return null
- }
- })
-
- cy.get('[test-id="Finances_Financial_leases8_key"]')
- .should('be.visible')
- .should('contain.text', 'Who is responsible for the insurance, repair and maintenance of the assets covered?')
- cy.get('[test-id="Finances_Financial_leases8_value"]')
- .invoke('text')
- .then((text) => {
- let textvalue = text.toString()
- if (textvalue.length > 0) {
- expect(data.applyingSchools[0].schoolLeases[0].schoolLeaseResponsibleForAssets)
- .to.equal(textvalue.trim())
- }
- else {
- return null
- }
- })
- }
- else {
- return null
- }
- })
- })
-
-
- // Financial investigations
- it('TC14: Financial Investigations', () => {
- cy.get('[test-id="Finances_Financial_investigations1_key"]')
- .should('be.visible')
- .should('contain.text', 'Are there any financial investigations ongoing at the school?')
- cy.get('[test-id="Finances_Financial_investigations1_value"]')
- .invoke('text')
- .then((text) => {
- let textvalue = text.toString()
- if (textvalue == 'Yes' || 'No') {
- expect(data.applyingSchools[0].financeOngoingInvestigations)
- .to.be.a('boolean')
- }
- else {
- return null
- }
- })
- })
-
- // Future Pupil numbers
- it('TC15: Future Pupil Numbers Details', () => {
-
- cy.get('[test-id="Future_pupil_numbers_Details1_key"]')
- .should('be.visible')
- .should('contain.text', 'Projected pupil numbers on roll in the year the academy opens (year 1)')
- cy.get('[test-id="Future_pupil_numbers_Details1_value"]')
- .invoke('text')
- .then((text) => {
- let textvalue = text.toString()
- if (textvalue.length > 0) {
- var expectedNumberString = new Number(data.applyingSchools[0].schoolCapacityYear1).toLocaleString('en-GB')
- expect(expectedNumberString)
- .to.equal(textvalue.trim())
- }
- else {
- return null
- }
- })
-
- cy.get('[test-id="Future_pupil_numbers_Details2_key"]')
- .should('be.visible')
- .should('contain.text', 'Projected pupil numbers on roll in the following year after the academy has opened (year 2)')
- cy.get('[test-id="Future_pupil_numbers_Details2_value"]')
- .invoke('text')
- .then((text) => {
- let textvalue = text.toString()
- if (textvalue.length > 0) {
- var expectedNumberString = new Number(data.applyingSchools[0].schoolCapacityYear2).toLocaleString('en-GB')
- expect(expectedNumberString)
- .to.equal(textvalue.trim())
- }
- else {
- return null
- }
- })
-
- cy.get('[test-id="Future_pupil_numbers_Details3_key"]')
- .should('be.visible')
- .should('contain.text', 'Projected pupil numbers on roll in the following year (year 3)')
- cy.get('[test-id="Future_pupil_numbers_Details3_value"]')
- .invoke('text')
- .then((text) => {
- let textvalue = text.toString()
- if (textvalue.length > 0) {
- var expectedNumberString = new Number(data.applyingSchools[0].schoolCapacityYear3).toLocaleString('en-GB')
- expect(expectedNumberString)
- .to.equal(textvalue.trim())
- }
- else {
- return null
- }
- })
-
- cy.get('[test-id="Future_pupil_numbers_Details4_key"]')
- .should('be.visible')
- .should('contain.text', 'What do you base these projected numbers on?')
- cy.get('[test-id="Future_pupil_numbers_Details4_value"]')
- .invoke('text')
- .then((text) => {
- let textvalue = text.toString()
- if (textvalue.length > 0) {
- expect(data.applyingSchools[0].schoolCapacityAssumptions)
- .to.equal(textvalue.trim())
- }
- else {
- return null
- }
- })
-
- cy.get('[test-id="Future_pupil_numbers_Details5_key"]')
- .should('be.visible')
- .should('contain.text', "What is the school's published admissions number (PAN)?")
- cy.get('[test-id="Future_pupil_numbers_Details5_value"]')
- .invoke('text')
- .then((text) => {
- let textvalue = text.toString()
- if (textvalue.length > 0) {
- var expectedNumberString = new Number(data.applyingSchools[0].schoolCapacityPublishedAdmissionsNumber).toLocaleString('en-GB')
- expect(expectedNumberString)
- .to.equal(textvalue.trim())
- }
- else {
- return null
- }
- })
- })
-
- // Land & Buildings
- it('TC16: Land & Buildings Details', () => {
- cy.get('[test-id="Land_and_buildings_Details1_key"]')
- .should('be.visible')
- .should('contain.text', "As far as you're aware, who owns or holds the school's buildings and land?")
- cy.get('[test-id="Land_and_buildings_Details1_value"]')
- .invoke('text')
- .then((text) => {
- let textvalue = text.toString()
- if (textvalue.length > 0) {
- expect(data.applyingSchools[0].schoolBuildLandOwnerExplained)
- .to.equal(textvalue.trim())
- }
- else {
- return null
- }
- })
-
- cy.get('[test-id="Land_and_buildings_Details2_key"]')
- .should('be.visible')
- .should('contain.text', 'Are there any current planned building works?')
- cy.get('[test-id="Land_and_buildings_Details2_value"]')
- .invoke('text')
- .then((text) => {
- let textvalue = text.toString()
- if (textvalue.length > 0) {
- expect(data.applyingSchools[0].schoolBuildLandWorksPlanned)
- .to.be.a('boolean')
- }
- else return null
-
- })
-
- cy.get('[test-id="Land_and_buildings_Details3_key"]')
- .should('be.visible')
- .should('contain.text', 'Provide details of the works, how they\'ll be funded and whether the funding will be affected by the conversion')
- cy.get('[test-id="Land_and_buildings_Details3_value"]')
- .invoke('text')
- .then((text) => {
- let textvalue = text.toString()
- if (textvalue.length > 0) {
- expect(data.applyingSchools[0].schoolBuildLandWorksPlannedExplained)
- .to.equal(text.trim())
- }
- else {
- return null
- }
- })
-
- cy.get('[test-id="Land_and_buildings_Details4_key"]')
- .should('be.visible')
- .should('contain.text', 'When is the scheduled completion date?')
- cy.get('[test-id="Land_and_buildings_Details4_value"]')
- .invoke('text')
- .then((text) => {
- let textvalue = text.toString()
- if (textvalue.length > 0) {
- expect(data.applyingSchools[0].schoolBuildLandWorksPlannedCompletionDate)
- .to.equal(text.trim())
- }
- else {
- return null
- }
- })
-
- cy.get('[test-id="Land_and_buildings_Details5_key"]')
- .should('be.visible')
- .should('contain.text', 'Are there any shared facilities on site?')
- cy.get('[test-id="Land_and_buildings_Details5_value"]')
- .invoke('text')
- .then((text) => {
- let textvalue = text.toString()
- if (textvalue == 'Yes' || 'No') {
- expect(data.applyingSchools[0].schoolBuildLandSharedFacilities)
- .to.be.a('boolean')
- }
- else {
- return null
- }
- })
-
- cy.get('[test-id="Land_and_buildings_Details6_key"]')
- .should('be.visible')
- .should('contain.text', 'List the facilities and the school\'s plan for them after converting')
- cy.get('[test-id="Land_and_buildings_Details6_value"]')
- .invoke('text')
- .then((text) => {
- let textvalue = text.toString()
- if (textvalue.length > 0) {
- expect(data.applyingSchools[0].schoolBuildLandSharedFacilitiesExplained)
- .to.equal(text.trim())
- }
- else {
- return null
- }
- })
-
- cy.get('[test-id="Land_and_buildings_Details7_key"]')
- .should('be.visible')
- .should('contain.text', 'Has the school had any grants from Sport England, the Big Lottery Fund, or the Football Federation?')
- cy.get('[test-id="Land_and_buildings_Details7_value"]')
- .invoke('text')
- .then((text) => {
- let textvalue = text.toString()
- if (textvalue == 'Yes' || 'No') {
- expect(data.applyingSchools[0].schoolBuildLandGrants)
- .to.be.a('boolean')
- }
- else {
- return null
- }
- })
-
- cy.get('[test-id="Land_and_buildings_Details8_key"]').should('contain.text', 'Which bodies awarded the grants and what facilities did they fund?')
- cy.get('[test-id="Land_and_buildings_Details8_value"]')
- .invoke('text')
- .then((text) => {
- let textvalue = text.toString()
- if (textvalue.length > 0) {
- expect(data.applyingSchools[0].schoolBuildLandGrantsExplained)
- .to.equal(text.trim())
- }
- else {
- return null
- }
- })
-
- cy.get('[test-id="Land_and_buildings_Details9_key"]')
- .should('be.visible')
- .should('contain.text', 'Is the school part of a Private Finance Intiative (PFI) scheme?')
- cy.get('[test-id="Land_and_buildings_Details9_value"]')
- .invoke('text')
- .then((text) => {
- let textvalue = text.toString()
- if (textvalue == 'Yes' || 'No') {
- expect(data.applyingSchools[0].schoolBuildLandPFIScheme)
- .to.be.a('boolean')
- }
- else {
- return null
- }
- })
-
- cy.get('[test-id="Land_and_buildings_Details10_key"]')
- .should('be.visible')
- .should('contain.text', 'What kind of PFI Scheme is your school part of?')
- cy.get('[test-id="Land_and_buildings_Details10_value"]')
- .invoke('text')
- .then((text) => {
- let textvalue = text.toString()
- if (textvalue.length > 0) {
- expect(data.applyingSchools[0].schoolBuildLandPFISchemeType)
- .to.equal(text.trim())
- }
- else {
- return null
- }
- })
-
- cy.get('[test-id="Land_and_buildings_Details11_key"]')
- .should('be.visible')
- .should('contain.text', 'Is the school part of a Priority School Building Programme?')
- cy.get('[test-id="Land_and_buildings_Details11_value"]')
- .invoke('text')
- .then((text) => {
- let textvalue = text.toString()
- if (textvalue == 'Yes' || 'No') {
- expect(data.applyingSchools[0].schoolBuildLandPriorityBuildingProgramme)
- .to.be.a('boolean')
- }
- else {
- return null
- }
- })
-
- cy.get('[test-id="Land_and_buildings_Details12_key"]')
- .should('be.visible')
- .should('contain.text', 'Is the school part of a Building Schools for the Future Programme?')
- cy.get('[test-id="Land_and_buildings_Details12_value"]')
- .invoke('text')
- .then((text) => {
- let textvalue = text.toString()
- if (textvalue == 'Yes' || 'No') {
- expect(data.applyingSchools[0].schoolBuildLandFutureProgramme)
- .to.be.a('boolean')
- }
- else {
- return null
- }
- })
- })
-
- // Pre-opening support grant
- it('TC17: Pre-Opening Support Grant Details', () => {
- cy.get('[test-id="Pre-opening_support_grant_Details1_key"]')
- .should('be.visible')
- .should('contain.text', 'Do you want these funds paid to the school or the trust?')
- cy.get('[test-id="Pre-opening_support_grant_Details1_value"]')
- .invoke('text')
- .then((text) => {
- let textvalue = text.toString()
- if (textvalue.length > 0) {
- expect(data.applyingSchools[0].schoolSupportGrantFundsPaidTo)
- .to.equal(textvalue.trim())
- }
- else {
- return null
- }
- })
- })
-
- // Consultation Details
- it('TC18: Consultation Details', () => {
- cy.get('[test-id="Consultation_Details1_key"]')
- .should('be.visible')
- .should('contain.text', 'Has the governing body consulted the relevant stakeholders?')
- cy.get('[test-id="Consultation_Details1_value"]')
- .invoke('text')
- .then((text) => {
- let textvalue = text.toString()
- if (textvalue == 'Yes' || 'No') {
- expect(data.applyingSchools[0].declarationBodyAgree)
- .to.be.a('boolean')
- }
- else {
- return null
- }
- })
- })
-
- // Declaration Details
- it('TC19: Declaration Details', () => {
- cy.get('[test-id="Declaration_Details1_key"]')
- .should('be.visible')
- .should('contain.text', 'I agree with all of these statements, and believe that the facts stated in this application are true')
- cy.get('[test-id="Declaration_Details1_value"]')
- .invoke('text')
- .then((text) => {
- let textvalue = text.toString()
- if (textvalue == 'Yes' || 'No') {
- expect(data.applyingSchools[0].declarationBodyAgree)
- .to.be.a('boolean')
- }
- else {
- return null
- }
- })
-
- cy.get('[test-id="Declaration_Details2_key"]')
- .should('be.visible')
- .should('contain.text', 'Signed by')
- cy.get('[test-id="Declaration_Details2_value"]')
- .invoke('text')
- .then((text) => {
- let textvalue = text.toString()
- if (textvalue.length > 0) {
- expect(data.applyingSchools[0].declarationSignedByName)
- .to.equal(textvalue.trim())
- }
- else {
- return null
- }
- })
- })
-})
diff --git a/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/School-budget-information/financial-year-date-validation.cy.js b/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/School-budget-information/financial-year-date-validation.cy.js
deleted file mode 100644
index 8387a2081..000000000
--- a/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/School-budget-information/financial-year-date-validation.cy.js
+++ /dev/null
@@ -1,45 +0,0 @@
-// ///
-
-// Cypress._.each(['ipad-mini'], (viewport) => {
-// describe(`111891: "Dates user sent/return the template" are reflected in preview on ${viewport}`, () => {
-// beforeEach(() => {
-// cy.login({titleFilter: 'Gloucester school'});
-// cy.viewport(viewport);
-// cy.selectSchoolListing(2);
-// cy.urlPath().then(url => {
-// let modifiedUrl = url + '/confirm-school-budget-information'
-// cy.visit(modifiedUrl);
-// });
-// cy.get('[data-test="change-financial-year"]').click();
-// cy.url().should('contain', '/update-school-budget-information');
-// });
-
-// it('TC01: Verifies that user cannot update the invalid values for End of current Financial year', () => {
-// cy.submitEndOfCurrentFinancialYearDate(33, 3, 2020);
-// cy.saveAndContinueButton().click();
-// cy.get('[id="error-summary-title"]').should('be.visible');
-// cy.get('[data-cy="error-summary"]')
-// .invoke('text')
-// .should('contain', 'Day must be between 1 and 31');
-// });
-
-// it('TC02: Verifies that user cannot update the invalid values for End of next Financial year', () => {
-// cy.submitEndOfNextFinancialYearDate(20, 'jan', 2023);
-// cy.saveAndContinueButton().click();
-// cy.get('[id="error-summary-title"]').should('be.visible');
-// cy.get('[data-cy="error-summary"]')
-// .invoke('text')
-// .should('contains', 'Enter a date in the correct format');
-// });
-
-// it('TC03: Verifies that user cannot save current year as greater than next financial year', () => {
-// cy.submitEndOfCurrentFinancialYearDate(20, 3, 2022);
-// cy.submitEndOfNextFinancialYearDate(20, 3, 2021);
-// cy.saveAndContinueButton().click();
-// cy.get('[id="error-summary-title"]').should('be.visible');
-// cy.get('[data-cy="error-summary"]')
-// .invoke('text')
-// .should('contains', 'The next financial year cannot be before or within a year of the current financial year')
-// });
-// });
-// });
diff --git a/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/School-budget-information/school-budget-info.cy.js b/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/School-budget-information/school-budget-info.cy.js
deleted file mode 100644
index 35f153c7d..000000000
--- a/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/School-budget-information/school-budget-info.cy.js
+++ /dev/null
@@ -1,85 +0,0 @@
-// ///
-
-// Cypress._.each(['ipad-mini'], (viewport) => {
-// describe(`111891: "School budget information dates are saved and reflected in preview on ${viewport}`, () => {
-// beforeEach(() => {
-// cy.login({titleFilter: 'Gloucester school'});
-// cy.viewport(viewport);
-// cy.selectSchoolListing(2);
-// cy.urlPath().then(url => {
-// //changes the current URL
-// let modifiedUrl = url + '/confirm-school-budget-information'
-// cy.visit(modifiedUrl);
-// });
-
-// cy.get('[data-test="change-financial-year"]').click();
-// cy.submitEndOfCurrentFinancialYearDate(21, 3, 2022);
-// cy.submitEndOfNextFinancialYearDate(20, 3, 2023);
-// cy.saveAndContinueButton().click();
-// })
-
-// it('TC01: Verifies that End of Current financial year dates matches in confirm school budget info page', () => {
-// cy.endOfCurrentFinancialYearInfo()
-// .invoke('text')
-// .should('contain', '21 March 2022' )
-// .then((text) => {
-// expect(text).to.match(/^([0-9]){2}\s[a-zA-Z]{1,}\s[0-9]{4}$/)
-// });
-// });
-
-// it('TC02: Verifies that End of Current financial year dates matches in preview page', () => {
-// cy.get('[id="school-budget-information-complete"]').click();
-// cy.confirmContinueBtn().click();
-// cy.get('[id="preview-project-template-button"]').click();
-// cy.url().should('include', '/preview-project-template')
-// cy.get('h1').contains('Preview project template')
-// cy.get('h2').contains('School budget information')
-// cy.get('[id="financial-year"]')
-// .invoke('text')
-// .should('contain', '21 March 2022' )
-// .then((text) => {
-// expect(text).to.match(/^([0-9]){2}\s[a-zA-Z]{1,}\s[0-9]{4}$/)
-// });
-// });
-
-// it('TC03: Verifies that End of next financial year dates matches in confirm school budget info page', () => {
-// cy.endOfNextFinancialYearInfo()
-// .invoke('text')
-// .should('contain', '20 March 2023')
-// .then((text) => {
-// expect(text).to.match(/^([0-9]){2}\s[a-zA-Z]{1,}\s[0-9]{4}$/)
-// });
-// });
-
-// it('TC04: Verifies that End of next financial year dates matches in preview page', () => {
-// cy.get('[id="school-budget-information-complete"]').click();
-// cy.confirmContinueBtn().click();
-// cy.get('[id="preview-project-template-button"]').click();
-// cy.url().should('include', 'preview-project-template')
-// cy.get('h1').contains('Preview project template')
-// cy.get('h2').contains('School budget information')
-// cy.get('[id="next-financial-year"]')
-// .invoke('text')
-// .should('contain', '20 March 2023' )
-// .then((text) => {
-// expect(text).to.match(/^([0-9]){2}\s[a-zA-Z]{1,}\s[0-9]{4}$/)
-// });
-// });
-
-// it('TC05: Verifies that preview page has correct context for School Information', () => {
-// cy.get('[id="school-budget-information-complete"]').click();
-// cy.confirmContinueBtn().click();
-// cy.get('[id="preview-project-template-button"]').click();
-// cy.url().should('include', '/preview-project-template');
-// cy.get('h1').contains('Preview project template');
-// cy.get('h2').contains('School budget information');
-// cy.get('dl').contains('End of current financial year');
-// cy.get('dl').contains('Forecasted revenue carry forward at the end of the current financial year');
-// cy.get('dl').contains('Forecasted capital carry forward at the end of the current financial year');
-// cy.get('dl').contains('End of next financial year');
-// cy.get('dl').contains('Forecasted revenue carry forward at the end of the next financial year');
-// cy.get('dl').contains('Forecasted capital carry forward at the end of the next financial year');
-// cy.get('dl').contains('Additional information');
-// });
-// });
-// });
\ No newline at end of file
diff --git a/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/Task-list-general-Information/happy-path-mp-details.cy.js b/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/Task-list-general-Information/happy-path-mp-details.cy.js
deleted file mode 100644
index 7cf38093b..000000000
--- a/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/Task-list-general-Information/happy-path-mp-details.cy.js
+++ /dev/null
@@ -1,60 +0,0 @@
-// ///
-
-// Cypress._.each(['ipad-mini'], (viewport) => {
-// describe(`86316 Submit and view MP details ${viewport}`, () => {
-// before(() => {
-// cy.viewport(viewport)
-// });
-
-// beforeEach(() => {
-// cy.login({titleFilter: 'Gloucester school'})
-// cy.selectSchoolListing(2)
-// cy.urlPath().then(url =>{
-// let modifiedUrl = url + '/confirm-general-information'
-// cy.visit(modifiedUrl)
-// });
-// cy.viewport(viewport)
-// cy.get('[data-test="change-member-of-parliament-party"]').click()
-// cy.mpName().clear()
-// cy.mpName().type('An MP')
-// cy.mpParty().clear()
-// cy.mpParty().type('A Party')
-// })
-
-// it('TC01: Should navigate to MP details page', () => {
-// cy.url().then(href => {
-// expect(href.endsWith('/confirm-general-information/enter-MP-name-and-political-party')).to.be.true;
-// });
-// });
-
-// it('TC02: Should change the MP details', () => {
-// cy.mpName().should('have.value', 'An MP')
-// cy.mpParty().should('have.value', 'A Party')
-// });
-
-// context("when form submitted", () => {
-// beforeEach(() => {
-// cy.saveAndContinueButton().click()
-// })
-
-// it('TC03: Should go back to general information page on confirm', () => {
-// cy.url().then(href => {
-// expect(href.endsWith('/confirm-general-information')).to.be.true});
-// });
-
-// it('TC04: Should display the MP details after it is submitted', () => {
-// cy.mpName().should('have.text', 'An MP')
-// cy.mpParty().should('have.text','A Party')
-// });
-
-// it('TC05: Should navigate to MP details page and remove details', () => {
-// cy.get('[data-test="change-member-of-parliament-party"]').click()
-// cy.mpName().clear()
-// cy.mpParty().clear()
-// cy.saveAndContinueButton().click()
-// cy.mpName().should('have.text', 'Empty')
-// cy.mpParty().should('have.text', 'Empty')
-// });
-// });
-// });
-// });
\ No newline at end of file
diff --git a/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/Task-list-general-Information/modify-distance-from-school.cy.js b/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/Task-list-general-Information/modify-distance-from-school.cy.js
deleted file mode 100644
index 660c8e6fc..000000000
--- a/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/Task-list-general-Information/modify-distance-from-school.cy.js
+++ /dev/null
@@ -1,43 +0,0 @@
-// ///
-
-// Cypress._.each(['ipad-mini'], (viewport) => {
-// describe(`92796 Modify Distance from School Info ${viewport}`, () => {
-// beforeEach(() => {
-// cy.login({titleFilter: 'Gloucester school'})
-// cy.viewport(viewport)
-// cy.selectSchoolListing(2)
-// cy.urlPath().then(url => {
-// let modifiedUrl = url + '/confirm-general-information'
-// cy.visit(modifiedUrl)
-// });
-// })
-
-// it('TC01: Precondition: Distance Info Summary is empty', () => {
-// // Distrance Info
-// cy.milesIsEmpty()
-// // Additional Info box
-// cy.addInfoIsEmpty()
-// })
-
-// it('TC02: Filling in the distance of school info for the first time', () => {
-// cy.changeLink().click()
-// cy.disMiles().click()
-// cy.disMiles().type('10')
-// cy.get('[id="distance-to-trust-headquarters-additional-information"]').click()
-// cy.get('[id="distance-to-trust-headquarters-additional-information"]').type('Testing')
-// cy.saveContinue().click()
-// // Info saved on summary page
-// cy.disMiles().should('contain.text', '10 miles')
-// cy.get('[id="distance-to-trust-headquarters-additional-text"]').should('contain.text', 'Testing')
-// })
-
-// it('TC03: Error Message for distance info', () => {
-// cy.changeLink().click()
-// cy.disMiles().click()
-// cy.disMiles().type('a')
-// cy.saveContinue().click()
-// cy.get('[id="error-summary-title"]').should('contain.text', 'There is a problem')
-// cy.get('[id="distance-to-trust-headquarters-error-link"]').should('contain.text', "'Distance from the converting school to the trust or other schools in the trust' must be a valid format")
-// })
-// })
-// })
diff --git a/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/Task-list-general-Information/modify-financial-deficit.cy.js b/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/Task-list-general-Information/modify-financial-deficit.cy.js
deleted file mode 100644
index 9bcac68c4..000000000
--- a/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/Task-list-general-Information/modify-financial-deficit.cy.js
+++ /dev/null
@@ -1,44 +0,0 @@
-// ///
-// Cypress._.each(['ipad-mini'], (viewport) => {
-// describe(`86859 Modify viability fields on ${viewport}`, () => {
-// beforeEach(() => {
-// cy.login({titleFilter: 'Gloucester school'})
-// cy.selectSchoolListing(2)
-// cy.urlPath().then(url => {
-// let modifiedUrl = url + '/confirm-general-information'
-// cy.visit(modifiedUrl)
-// });
-// })
-
-// before(() => {
-// cy.viewport(viewport)
-
-// });
-
-// after(() => {
-// cy.clearLocalStorage()
-// });
-
-// it('TC01: Navigates to Financial deficit fields and modifies fields "Yes"', () => {
-// cy.viewport(viewport)
-// cy.get('[data-test="change-financial-deficit"]').click()
-// cy.get('[id="financial-deficit"]').click()
-// cy.saveAndContinueButton().click()
-// cy.get('[id="financial-deficit"]')
-// .should('contain', 'Yes')
-// .should('not.contain', 'No')
-// .should('not.contain', 'Empty')
-// });
-
-// it('TC02: Navigates to Financial deficit fields and modifies fields "No"', () => {
-// cy.viewport(viewport)
-// cy.get('[data-test="change-financial-deficit"]').click()
-// cy.get('[id="financial-deficit-2"]').click()
-// cy.saveAndContinueButton().click()
-// cy.get('[id="financial-deficit"]')
-// .should('contain', 'No')
-// .should('not.contain', 'Yes')
-// .should('not.contain', 'Empty')
-// });
-// });
-// });
\ No newline at end of file
diff --git a/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/Task-list-general-Information/modify-viability-field.cy.js b/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/Task-list-general-Information/modify-viability-field.cy.js
deleted file mode 100644
index b884894dc..000000000
--- a/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/Task-list-general-Information/modify-viability-field.cy.js
+++ /dev/null
@@ -1,43 +0,0 @@
-// ///
-
-// Cypress._.each(['ipad-mini'], (viewport) => {
-// describe(`86858 Modify viability fields on ${viewport}`, () => {
-// beforeEach(() => {
-// cy.login({titleFilter: 'Gloucester school'})
-// cy.selectSchoolListing(2)
-// cy.urlPath().then(url =>{
-// //Changes the current URL
-// let modifiedUrl = url + '/confirm-general-information'
-// cy.visit(modifiedUrl)
-// });
-// })
-
-// before(() => {
-// cy.viewport(viewport)
-// });
-
-// after(() => {
-// cy.clearLocalStorage()
-// });
-
-// it('TC01: Navigates to Viability fields and modifies fields "Yes"', () => {
-// cy.viewport(viewport)
-// cy.get('[data-test="change-viability-issues"]').click()
-// cy.get('[id="viability-issues"]').click()
-// cy.saveAndContinueButton().click()
-// cy.get('[id="viability-issues"]').should('contain', 'Yes')
-// .should('not.contain', 'No')
-// .should('not.contain', 'Empty')
-// });
-
-// it('TC02: Navigates to Viability fields and modifies fields "No"', () => {
-// cy.viewport(viewport)
-// cy.get('[data-test="change-viability-issues"]').click()
-// cy.get('[id="viability-issues-2"]').click()
-// cy.saveAndContinueButton().click()
-// cy.get('[id="viability-issues"]').should('contain', 'No')
-// .should('not.contain', 'Yes')
-// .should('not.contain', 'Empty')
-// });
-// });
-// });
\ No newline at end of file
diff --git a/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/Task-list-key-stage-tags/key-stage-4-performance-tables-tags.cy.js b/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/Task-list-key-stage-tags/key-stage-4-performance-tables-tags.cy.js
deleted file mode 100644
index ecbe54f94..000000000
--- a/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/Task-list-key-stage-tags/key-stage-4-performance-tables-tags.cy.js
+++ /dev/null
@@ -1,75 +0,0 @@
-// ///
-
-// Cypress._.each(['ipad-mini'], (viewport) => {
-// describe(`119883 Verify Key stage 4 data status on ${viewport}`, () => {
-// beforeEach(() => {
-// cy.login()
-// cy.viewport(viewport)
-// cy.navigateToFilterProjects();
-// cy.get('[data-cy="select-projectlist-filter-title"]').type('Caludon Castle School')
-// cy.get('[data-cy=select-projectlist-filter-apply]').click();
-// cy.get('[data-cy="select-projectlist-filter-count"]')
-// .invoke('text')
-// .then((text) => {
-// if( text == '0 projects found'){
-// cy.log('Expected result not found');
-// Cypress.runner.stop();
-// }
-// else {
-// cy.get('[data-cy="select-projectlist-filter-count"]').should('not.equal', '0 projects found');
-// cy.get('#school-name-0').click()
-// cy.get('*[href*="/confirm-school-trust-information-project-dates"]').should('be.visible')
-// }});
-// })
-
-// it('TC01: Navigates to Key stage 4 performance tables page', () => {
-// cy.get('[aria-describedby="key-stage-4-performance-tables"]').click();
-// cy.url().should('contain', '/key-stage-4-performance-tables')
-
-// // Conditional test because we cannot control the data coming back from Trams. This is nothing more than a best effort
-// // test Revised tags are orange.
-// cy.get('body')
-// .then($body => {
-// if ($body.find('[class="govuk-tag govuk-tag--orange"]').length) {
-// console.log('checking Revised tags');
-// cy.get('[class="govuk-tag govuk-tag--orange"]').should('contain', 'Revised');
-// }
-// });
-
-// // test any Final tags are green
-// cy.get('body')
-// .then($body => {
-// if ($body.find('[class="govuk-tag govuk-tag--green"]').length) {
-// console.log('checking Final tags');
-// cy.get('[class="govuk-tag govuk-tag--green"]').should('contain', 'Final');
-// }
-// });
-// });
-
-// it('TC02: Navigates to Key stage 4 performance tables on Preview page ', () => {
-// cy.get('[id="preview-project-template-button"]').click();
-// cy.url().should('include', '/preview-project-template');
-// cy.get('h1').contains('Preview project template')
-// cy.get('#key-stage-4-performance-tables').should('have.text', 'Key stage 4 performance tables')
-
-// // Conditional test because we cannot control the data coming back from Trams. This is nothing more than a best effort
-// // test any Revised tags are orange.
-// cy.get('body')
-// .then($body => {
-// if ($body.find('[class="govuk-tag govuk-tag--orange"]').length) {
-// console.log('checking Revised tags');
-// cy.get('[class="govuk-tag govuk-tag--orange"]').should('contain', 'Revised');
-// }
-// });
-
-// // test any Final tags are green
-// cy.get('body')
-// .then($body => {
-// if ($body.find('[class="govuk-tag govuk-tag--green"]').length) {
-// console.log('checking Final tags');
-// cy.get('[class="govuk-tag govuk-tag--green"]').should('contain', 'Final');
-// }
-// });
-// });
-// });
-// });
diff --git a/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/assign-project/assign-project.cy.js b/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/assign-project/assign-project.cy.js
deleted file mode 100644
index 8b2887e6e..000000000
--- a/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/assign-project/assign-project.cy.js
+++ /dev/null
@@ -1,54 +0,0 @@
-// ///
-
-// Cypress._.each(['ipad-mini'], (viewport) => {
-// describe(`Assign project to user ${viewport}`, () => {
-// beforeEach(() => {
-// cy.selectFirstProject();
-// })
-
-// it('TC01: Assign a project to user for the first time', () => {
-// cy.unassignUser();
-// cy.get('a[href*="project-assignment"]').click();
-// cy.get('[id="delivery-officer"]').click()
-// cy.get('[id="delivery-officer"]').type('Richika Dogra{enter}');
-// cy.get('[class="govuk-button"]').click();
-// cy.get('[id="notification-message"]').should('contain.text', 'Project is assigned');
-// cy.selectsConversion();
-// cy.get('[id="delivery-officer-0"]').should('contain.text', 'Richika Dogra');
-// });
-
-// it('TC02: Remove assigned user by unassigning', () => {
-// cy.get('a[href*="project-assignment"]').click();
-// cy.get('[id="unassign-link"]').click();
-// cy.get('[id="notification-message"]').should('contain.text', 'Project is unassigned');
-// });
-
-// it('TC03: Remove assigned user via keyboard delete', () => {
-// cy.assignUser();
-// cy.get('a[href*="project-assignment"]').click();
-// cy.get('[id="delivery-officer"]').click()
-// cy.get('[id="delivery-officer"]').type('{backspace}');
-// cy.get('[class="govuk-button"]').click();
-// });
-
-// it('TC04: Click on the continue button while an assigned user is assigned', () => {
-// cy.assignUser();
-// cy.get('a[href*="project-assignment"]').click();
-// cy.get('[class="govuk-button"]').click();
-// cy.get('[id="notification-message"]').should('contain.text', 'Project is assigned');
-// });
-
-// it('TC05: Click on the unassigned button with no assigned user', () => {
-// cy.unassignUser();
-// cy.get('a[href*="project-assignment"]').click();
-// cy.get('[id="unassign-link"]');
-// cy.get('[class="govuk-button"]').click();
-// });
-
-// it('TC06: Project list is updated accordingly with unassigned', () => {
-// cy.unassignUser();
-// cy.selectsConversion();
-// cy.get('[id="delivery-officer-0"]').should('contain.text', 'Empty')
-// });
-// });
-// });
\ No newline at end of file
diff --git a/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/conversion_filters/filter-by-delivery-officer.cy.js b/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/conversion_filters/filter-by-delivery-officer.cy.js
deleted file mode 100644
index 429cb3421..000000000
--- a/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/conversion_filters/filter-by-delivery-officer.cy.js
+++ /dev/null
@@ -1,35 +0,0 @@
-///
-
-Cypress._.each(['ipad-mini'], (viewport) => {
- describe(`109473: Filter projects by deliver officer ${viewport}`, () => {
- beforeEach(() => {
- cy.viewport(viewport);
- cy.login();
- cy.navigateToFilterProjects();
- })
-
- afterEach(() => {
- cy.clearCookies();
- });
-
- it('TC01: should display Not assigned filter option at the top', () => {
- cy.get(':nth-child(4) > .govuk-form-group > .govuk-fieldset > .govuk-checkboxes > :nth-child(1)')
- .should('contain', 'Not assigned');
- });
-
- it('TC02: should display all the Non assigned projects when Not Assigned option is selected', () => {
- cy.get('[data-cy="select-projectlist-filter-officer-not-assigned"]').click();
- cy.get('[data-cy=select-projectlist-filter-apply]').click();
- cy.get('[data-cy="select-projectlist-filter-count"]').should('contain', 'projects found');
- cy.get('[data-cy="select-projectlist-filter-count"]').should('not.equal', '0 projects found');
- cy.get('.join-a-mat .do .empty').should('contain', 'Empty');
- });
-
- it('TC03: should display all the projects assigned to the DO when a particular DO name option is selected', () => {
- cy.get('[name="selectedOfficers"]').eq(1).click();
- cy.get('[data-cy=select-projectlist-filter-apply]').click();
- cy.get('[data-cy="select-projectlist-filter-count"]').should('not.equal', '0 projects found');
- cy.get('.join-a-mat .do').should('not.have.text', 'Delivery officer: Empty');
- });
- });
- });
diff --git a/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/conversion_filters/filter-by-region.cy.js b/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/conversion_filters/filter-by-region.cy.js
deleted file mode 100644
index d4ed07a3a..000000000
--- a/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/conversion_filters/filter-by-region.cy.js
+++ /dev/null
@@ -1,86 +0,0 @@
-///
-
-Cypress._.each(['ipad-mini'], (viewport) => {
- describe(`112393: Filter projects by region ${viewport}`, () => {
- beforeEach(() => {
- cy.viewport(viewport);
- cy.login();
- cy.navigateToFilterProjects();
- })
-
- afterEach(() => {
- cy.clearCookies();
- });
-
- it('TC01: should display results when region option is checked', () => {
- cy.get('[data-cy="select-projectlist-filter-region-West Midlands"]').click();
- cy.get('[data-cy=select-projectlist-filter-apply]').click();
- cy.get('[data-cy="select-projectlist-filter-row"]').should('be.visible');
- cy.get('[data-cy="select-projectlist-filter-banner"]').should('be.visible');
- cy.get('[data-cy="select-projectlist-filter-count"]').should('not.equal', '0 projects found');
- });
-
- it('TC02: should display all the results when all filters are cleared', () => {
- cy.clearFilters();
- cy.get('[data-cy="select-projectlist-filter-banner"]').should('not.exist');
- cy.get('[data-cy="select-projectlist-filter-count"]').should('not.equal', '0 projects found');
- });
-
- it('TC03: should display results when multiple filter options are checked', () => {
- cy.get('[data-cy="select-projectlist-filter-title"]').type('School');
- cy.get('[data-cy="select-projectlist-filter-region-West Midlands"]').click();
- cy.get('[data-cy=select-projectlist-filter-apply]').click();
- cy.get('[data-cy="select-projectlist-filter-banner"]').should('be.visible');
- cy.get('[data-cy="select-projectlist-filter-count"]').should('not.contain', '0 projects found');
- });
-
- it('TC04: should display results when all the Region filter options are selected and retain selection on different pages', () => {
- cy.get('[data-cy="select-projectlist-filter-region-East Midlands"]').click();
- cy.get('[data-cy="select-projectlist-filter-region-East of England"]').click();
- cy.get('[data-cy="select-projectlist-filter-region-London"]').click();
- cy.get('[data-cy="select-projectlist-filter-region-North East"]').click();
- cy.get('[data-cy="select-projectlist-filter-region-North West"]').click();
- cy.get('[data-cy="select-projectlist-filter-region-South East"]').click();
- cy.get('[data-cy="select-projectlist-filter-region-South West"]').click();
- cy.get('[data-cy="select-projectlist-filter-region-West Midlands"]').click();
- cy.get('[data-cy="select-projectlist-filter-region-Yorkshire and the Humber"]').click();
- cy.get('[data-cy=select-projectlist-filter-apply]').click();
- cy.get('[data-cy="select-projectlist-filter-banner"]').should('be.visible');
- cy.get('[data-cy="select-projectlist-filter-row"]').should('be.visible');
- cy.get('[data-cy="select-projectlist-filter-count"]').should('not.equal', '0 projects found');
- cy.get('[test-id="projectCount"]')
- .invoke('text')
- .then((text) => {
- cy.log(text)
- const total_count = text.replace('projects found', '').trim()
- if (total_count > 10) {
- cy.get('[test-id="nextPage"]').click()
- cy.url().should('contain', 'currentPage=2');
- cy.get('[data-cy="select-projectlist-filter-region-North East"]').should('have.attr', 'checked');
- cy.get('[test-id="previousPage"]').click()
- cy.get('[data-cy="select-projectlist-filter-region-North East"]').should('have.attr', 'checked');
- }
- else {
- cy.log('Number of projects does not exceed 10')
- }
- })
- });
-
- it('TC05: should retain multiple filter selection or non selection while paginating', () => {
- cy.get('[data-cy="select-projectlist-filter-region-London"]').click();
- cy.get('[data-cy="select-projectlist-filter-region-North East"]').click();
- cy.get('[data-cy="select-projectlist-filter-officer-not-assigned"]').click();
- cy.get('[data-cy=select-projectlist-filter-apply]').click();
- cy.get('[data-cy="select-projectlist-filter-banner"]').should('be.visible');
- cy.get('[data-cy="select-projectlist-filter-row"]').should('be.visible');
- cy.get('[data-cy="select-projectlist-filter-count"]').should('not.equal', '0 projects found');
- cy.get('[data-cy="select-projectlist-filter-region-North East"]').should('have.attr', 'checked');
- cy.get('[data-cy="select-projectlist-filter-officer-not-assigned"]').should('have.attr', 'checked');
- cy.get('[data-cy="select-projectlist-filter-region-North East"]').click();
- cy.get('[data-cy="select-projectlist-filter-officer-not-assigned"]').click();
- cy.get('[data-cy=select-projectlist-filter-apply]').click();
- cy.get('[data-cy="select-projectlist-filter-region-North East"]').should('not.have.attr', 'checked');
- cy.get('[data-cy="select-projectlist-filter-officer-not-assigned"]').should('not.have.attr', 'checked');
- });
- });
-});
\ No newline at end of file
diff --git a/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/conversion_filters/filter-by-type-and-status.cy.js b/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/conversion_filters/filter-by-type-and-status.cy.js
deleted file mode 100644
index c5fe0c53e..000000000
--- a/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/e2e/conversion_filters/filter-by-type-and-status.cy.js
+++ /dev/null
@@ -1,64 +0,0 @@
-///
-
-Cypress._.each(['ipad-mini'], (viewport) => {
- describe(`109473: Filter projects by type and status${viewport}`, () => {
- beforeEach(() => {
- cy.viewport(viewport);
- cy.login();
- cy.navigateToFilterProjects();
- })
-
- afterEach(() => {
- cy.clearCookies();
- });
-
- it('TC01: results should display correct format after applying filter', () => {
- cy.get('[class="govuk-checkboxes__input"]').first().click();
- cy.get('[data-cy=select-projectlist-filter-apply]').click();
- cy.get('[id="govuk-notification-banner-title"]')
- .should('contain', 'Success')
- cy.get('[data-cy="select-projectlist-filter-count"]')
- .invoke('text')
- .should('match', /^[0-9]\D*/);
- });
-
- it('TC02: should display 0 count when no match found for the projects', () => {
- cy.get('[data-cy="select-projectlist-filter-title"]').type('this is a completely made up school name unlikely to ever exist')
- cy.get('[data-cy=select-projectlist-filter-apply]').click();
- cy.get('[data-cy="select-projectlist-filter-count"]').should('contain', '0 projects found');
- });
-
- it('TC03: should display result when match found for the project title', () => {
- cy.get('[data-cy="select-projectlist-filter-title"]').type('school')
- cy.get('[data-cy=select-projectlist-filter-apply]').click();
- cy.get('[data-cy="select-projectlist-filter-count"]').should('not.equal', '0 projects found');
- });
-
- it('TC04: should display count when match found in the results on applying filter', () => {
- cy.get('[data-cy="select-projectlist-filter-status-Declined"]').click();
- cy.get('[data-cy=select-projectlist-filter-apply]').click();
- cy.get('[data-cy="select-projectlist-filter-row"]')
- cy.get('[data-cy="select-projectlist-filter-count"]')
- .then(($text) => {
- expect($text).not.to.have.text('0 projects found');
- });
- });
-
- it('TC05: should display count when match found in the results for project status', () => {
- cy.get('[data-cy="select-projectlist-filter-status-Approved"]').click();
- cy.get('[data-cy=select-projectlist-filter-apply]').click();
- cy.get('[test-id="projectCount"]')
- .invoke('text')
- .then((text) => {
- cy.log(text)
- const total_count = text.replace('projects found', '').trim()
- if (total_count > 0) {
- cy.get('[data-cy="select-projectlist-filter-row"]').should('be.visible')
- }
- else {
- cy.log('No match found')
- }
- });
- });
- });
-});
diff --git a/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/support/commands.js b/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/support/commands.js
index 3b9c77ed3..9585b5d24 100644
--- a/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/support/commands.js
+++ b/Dfe.PrepareConversions/Dfe.PrepareConversions.CypressTests/cypress/support/commands.js
@@ -86,179 +86,12 @@ Cypress.Commands.add('enterDate', (idSelector, day, month, year) => {
cy.get(`[id*="${idSelector}-year"]`).clear().type(year);
})
-//--LA Info Page
-
-// Submit Date 'Sent' (LA Info Page)
-Cypress.Commands.add('submitDateLaInfoSent', (day, month, year) => {
- cy.get('[id="la-info-template-sent-date-day"]').should('be.visible')
- cy.get('[id="la-info-template-sent-date-day"]').clear().type(day)
- cy.get('[id="la-info-template-sent-date-month"]').clear().type(month)
- cy.get('[id="la-info-template-sent-date-year"]').clear().type(year)
- cy.saveLocalStorage()
-})
-
-// Submit Date 'Return' (LA info Page)
-Cypress.Commands.add('submitDateLaInfoReturn', (day, month, year) => {
- cy.get('[id="la-info-template-returned-date-day"]').should('be.visible')
- cy.get('[id="la-info-template-returned-date-day"]').clear().type(day)
- cy.get('[id="la-info-template-returned-date-month"]').clear().type(month)
- cy.get('[id="la-info-template-returned-date-year"]').clear().type(year)
-})
-
-// Form Status (LA info Page)
-Cypress.Commands.add('statusLaInfo', () => {
- cy.get('[id="la-info-template-status"]')
-})
-
-// Form Status is Complete (LA info Page)
-Cypress.Commands.add('completeStatusLaInfo', () => {
- cy.get('[id="la-info-template-complete"]')
-})
-
-// Checkbox: unchecked (LA info Page)
-Cypress.Commands.add('uncheckLaInfo', () => {
- cy.get('*[href*="/confirm-local-authority-information-template-dates"]').click()
- cy.get('[id="la-info-template-complete"]').click()
- cy.get('[id="confirm-and-continue-button"]').click()
-})
-
-// Commentbox (LA info Page)
-Cypress.Commands.add('commentBoxLaInfo', () => {
- cy.get('[id="la-info-template-comments"]')
-})
-
-// Commentbox: Clear (LA info Page)
-Cypress.Commands.add('commentBoxClearLaInfo', () => {
- cy.get('[data-test="change-la-info-template-comments"]').click()
- cy.get('[id="la-info-template-comments"]').clear()
- cy.get('[id="save-and-continue-button"]').click()
-})
-
-// Sent Date Summary (LA info Page)
-Cypress.Commands.add('sentDateSummLaInfo', () => {
- cy.get('[id="la-info-template-sent-date"]')
-})
-
-// Returned Date Summary (LA info Page)
-Cypress.Commands.add('returnDateSummLaInfo', () => {
- cy.get('[id="la-info-template-returned-date"]')
-})
-
-//--School Trust Info Page
-
-// Checkbox: unchecked (School Trust Info Page)
-Cypress.Commands.add('uncheckSchoolTrust', () => {
- cy.get('*[href*="/confirm-school-trust-information-project-dates"]').click()
- cy.completeStatusSchoolTrust().click()
- cy.confirmContinueBtn().click()
-});
-
-// Submit Date (School Trust Info Page)
-Cypress.Commands.add('submitDateSchoolTrust', (day, month, year) => {
- cy.get('#head-teacher-board-date-day').should('be.visible')
- cy.get('#head-teacher-board-date-day').clear().type(day)
- cy.get('#head-teacher-board-date-month').clear().type(month)
- cy.get('#head-teacher-board-date-year').clear().type(year)
- cy.saveLocalStorage()
-});
-
-// Form Status (School Trust Info Page)
-Cypress.Commands.add('statusSchoolTrust', () => {
- cy.get('[id=school-and-trust-information-status]')
-});
-
-// Form Status is Complete (School Trust Info Page)
-Cypress.Commands.add('completeStatusSchoolTrust', () => {
- cy.get('[id="school-and-trust-information-complete"]')
-});
-
-//--General Info Page
-
-// MP Name (General Info Page)
-Cypress.Commands.add('mpName', () => {
- cy.get('[id="member-of-parliament-name"]')
-});
-
-// MP Party (General Info Page)
-Cypress.Commands.add('mpParty', () => {
- cy.get('[id="member-of-parliament-party"]')
-});
-
-// Distance Inf (General Info Page) - Conditional: Miles box
-Cypress.Commands.add('milesIsEmpty', () => {
- cy.get('[data-test="change-distance-to-trust-headquarters"]').click()
- cy.get('[id="distance-to-trust-headquarters"]')
- .invoke('text')
- .then((text) => {
- if (text.includes('Empty')) {
- return
- }
- else {
- cy.get('[id="distance-to-trust-headquarters"]').click()
- .type('{backspace}{backspace}{backspace}{backspace}{backspace}{backspace}{backspace}{backspace}{backspace}')
- .should('contain.text', '')
- }
- })
-})
-
-// Distance Info (General Info Page) - Conditional: Additional Info box
-Cypress.Commands.add('addInfoIsEmpty', () => {
- cy.get('[id="distance-to-trust-headquarters-additional-information"]')
- .click()
- .invoke('text')
- .then((text) => {
- if (text.length, 1) {
- cy.get('[id="distance-to-trust-headquarters-additional-information"]')
- .click()
- .type('{backspace}{backspace}{backspace}{backspace}{backspace}{backspace}{backspace}{backspace}{backspace}')
- .should('contain.text', '')
- cy.get('[id="save-and-continue-button"]').click()
- }
- else {
- return
- }
- })
-})
-
-// Distance Info (General Info Page) - Change LinkI D
-Cypress.Commands.add('changeLink', () => {
- cy.get('[data-test="change-distance-to-trust-headquarters"]')
-})
-
-// Distance Info (General Info Page) - Miles field ID
-Cypress.Commands.add('disMiles', () => {
- cy.get('[id="distance-to-trust-headquarters"]')
-})
-
-// Distance Info (General Info Page) - Save & Continue Button ID
-Cypress.Commands.add('saveContinue', () => {
- cy.get('[id="save-and-continue-button"]')
-})
-
-// Record a decision 'Continue' button
-Cypress.Commands.add('continueBtn', () => {
- cy.get('[id="submit-btn"]')
-})
-
-// Record a decision 'date entry'
-Cypress.Commands.add('recordDecisionDate', (day, month, year) => {
- cy.get('[id="decision-date-day"]').clear().type(day)
- cy.get('[id="decision-date-month"]').clear().type(month)
- cy.get('[id="decision-date-year"]').clear().type(year)
-})
-
-// Change decision button
-Cypress.Commands.add('changeDecision', () => {
- cy.get('[id="record-decision-link"]')
-})
-
-
-// Approved No Btn
+// No Radio Btn
Cypress.Commands.add('NoRadioBtn', () => {
cy.get('[data-cy="select-radio-no" i]')
})
-// Approved Yes Btn
+// Yes Radio Btn
Cypress.Commands.add('YesRadioBtn', () => {
cy.get('[data-cy="select-radio-yes" i]')
})
@@ -268,338 +101,15 @@ Cypress.Commands.add('RadioBtn', (label) => {
cy.get(`[data-cy="select-radio-${label}" i]`)
})
-// Approved Changed Condition
-Cypress.Commands.add('ChangeConditionsLink', () => {
- cy.get('[id="change-conditions-set-btn"]')
-})
-
-// Approved Yes Condition text box
-Cypress.Commands.add('YesTextBox', () => {
- cy.get('[id="ApprovedConditionsDetails"]')
-})
-
-// Approved Decision Preview
-Cypress.Commands.add('ApprovedDecisionPreview', () => {
- cy.get('[id="decision"]')
-})
-
-// Approved Decision Made By
-Cypress.Commands.add('ApprovedMadeByPreview', () => {
- cy.get('[id="decision-made-by"]')
-})
-
-// Approved Conditions Set
-Cypress.Commands.add('ApprovedConditionDetails', () => {
- cy.get('[id="condition-details"]')
-})
-
-// Approved Conditions detail
-Cypress.Commands.add('AprrovedConditionsSet', () => {
- cy.get('[id="condition-set"]')
-})
-
-// Approved Conditions detail
-Cypress.Commands.add('ApprovedDecisionDate', () => {
- cy.get('[id="decision-date"]')
-})
-
-// Approved Decision Recorded Banner
-Cypress.Commands.add('ApprovedMessageBanner', () => {
- cy.get('[id="notification-message"]')
-})
-
-// Decline reasons finance box
-Cypress.Commands.add('declineFinancebox', () => {
- cy.get('[id="declined-reasons-finance"]')
-})
-
-// Decline reasons finance reasons text
-Cypress.Commands.add('declineFinancText', () => {
- cy.get('[id="reason-finance"]')
-})
-
-// Decline reasons performance box
-Cypress.Commands.add('performanceBox', () => {
- cy.get('[id="declined-reasons-performance"]')
-})
-
-// Decline reasons performance text
-Cypress.Commands.add('performanceText', () => {
- cy.get('[id="reason-performance"]')
-})
-
-// Decline reasons governance box
-Cypress.Commands.add('governanceBox', () => {
- cy.get('[id="declined-reasons-governance"]')
-})
-
-// Decline reasons governance text
-Cypress.Commands.add('governanceText', () => {
- cy.get('[id="reason-governance"]')
-})
-
-// Decline reasons Trust Box
-Cypress.Commands.add('trustBox', () => {
- cy.get('[id="declined-reasons-choiceoftrust"]')
-})
-
-// Decline reasons Trust text
-Cypress.Commands.add('trustText', () => {
- cy.get('[id="reason-choiceoftrust"]')
-})
-
-// Decline radio button
-Cypress.Commands.add('declineRadioBtn', () => {
- cy.get('[id="declined-radio"]')
-})
-
-// declined reason 'Other'
-Cypress.Commands.add('declineOtherbox', () => {
- cy.get('[id="declined-reasons-other"]')
-})
-
-// declined reason 'Other reason'
-Cypress.Commands.add('declineOthertxt', () => {
- cy.get('[id="reason-other"]')
-})
-
-// initial decision preview
-Cypress.Commands.add('decision', () => {
- cy.get('[id="decision"]')
-})
-
-// declined record notification Message
-Cypress.Commands.add('recordnoteMsg', () => {
- cy.get('[id="notification-message"]')
-})
-
-// declined reason change link
-Cypress.Commands.add('reasonchangeLink', () => {
- cy.get('[id="change-declined-btn"]')
-
-})
-
-// declined decision made by
-Cypress.Commands.add('decisionMadeBy', () => {
- cy.get('[id="decision-made-by"]')
-
-})
-
-// declined decision date preview
-Cypress.Commands.add('decisionDate', () => {
- cy.get('[id="decision-date"]')
-
-})
-
-// Deferred declined radio button
-Cypress.Commands.add('deferredRadioBtn', () => {
- cy.get('[id="deferred-radio"]')
-})
-
-// Deferred Additional Information Needed Checkbox
-Cypress.Commands.add('addInfoNeededBox', () => {
- cy.get('[id="additionalinformationneeded-checkbox"]')
-})
-
-// Deferred Additional Information Needed Textbox
-Cypress.Commands.add('addInfoNeededText', () => {
- cy.get('[id="additionalinformationneeded-txtarea"]')
-})
-
-// Deferred reasonChangeLink
-Cypress.Commands.add('deferredReasonChangeLink', () => {
- cy.get('[id="change-deferred-btn"]')
-})
-
-// Deferred Decision
-Cypress.Commands.add('deferredDecision', () => {
- cy.get('[id="decision"]')
-})
-
-// Deferred Decision Made By
-Cypress.Commands.add('deferredDecisionMadeBy', () => {
- cy.get('[id="decision-made-by"]')
-})
-
-// Deferred Decision Date
-Cypress.Commands.add('deferredDecisionDate', () => {
- cy.get('[id="decision-date"]')
-})
-
-// Deferred project status
-Cypress.Commands.add('deferredProjectStateId', () => {
- cy.get('[id="notification-message"]')
-})
-
-// Deferred Await Ofsted Report Checkbox
-Cypress.Commands.add('awaitOfstedReportBox', () => {
- cy.get('[id="awaitingnextofstedreport-checkbox"]')
-})
-
-// Deferred Await Ofsted Report Text
-Cypress.Commands.add('awaitOfstedReportText', () => {
- cy.get('[id="awaitingnextofstedreport-txtarea"]')
-})
-
-// Deferred Performance Check box
-Cypress.Commands.add('performanceCheckBox', () => {
- cy.get('[id="performanceconcerns-checkbox"]')
-})
-
-// Deferred Performance Check box text
-Cypress.Commands.add('performanceCheckText', () => {
- cy.get('[id="performanceconcerns-txtarea"]')
-})
-
-// Deferred Other box
-Cypress.Commands.add('OtherCheckBox', () => {
- cy.get('[id="other-checkbox"]')
-})
-
-// Deferred Other text
-Cypress.Commands.add('OtherCheckText', () => {
- cy.get('[id="other-txtarea"]')
-})
-
-//--Legal Requirements (Task List)
-
-// Governing Body: Change Link
-Cypress.Commands.add('govBodyChangeLink', () => {
- cy.get('[data-cy="select-legal-summary-governingbody-change"]').click()
-})
-
-// Save & Continue btn (Universal)
-Cypress.Commands.add('saveAndContinueButton', () => {
- cy.get('[data-cy="select-common-submitbutton"]')
-})
-
-// Governing Body: status
-Cypress.Commands.add('govBodyStatus', () => {
- cy.get('[data-cy="select-legal-summary-governingbody-status"]')
-})
-
-// Consulation: Change Link
-Cypress.Commands.add('consultationChangeLink', () => {
- cy.get('[data-cy="select-legal-summary-consultation-change"]').click()
-})
-
-// Consultation: Status
-Cypress.Commands.add('consultationStatus', () => {
- cy.get('[data-cy="select-legal-summary-consultation-status"]')
-})
-
-// Diocesan consent: Change Link
-Cypress.Commands.add('diocesanConsentChangeLink', () => {
- cy.get('[data-cy="select-legal-summary-diocesanconsent-change"]').click()
-})
-
-// Diocesan consent: Status
-Cypress.Commands.add('diocesanConsentStatus', () => {
- cy.get('[data-cy="select-legal-summary-diocesanconsent-status"]')
-})
-
-// Foundation consent: Change Link
-Cypress.Commands.add('foundataionConsentChange', () => {
- cy.get('[data-cy="select-legal-summary-foundationconsent-change"]').click()
-})
-
-// Foundation consent: Status
-Cypress.Commands.add('foundationConsentStatus', () => {
- cy.get('[data-cy="select-legal-summary-foundationconsent-status"]')
-})
-
-// Universal: selects conversion project from list
-Cypress.Commands.add('selectsConversion', () => {
- let url = Cypress.env('url');
- cy.visit(url);
- cy.get('[data-cy="select-projecttype-input-conversion"]').click();
- cy.get('[data-cy="select-common-submitbutton"]').click();
-})
-
-// Universal: selects first project from list
-Cypress.Commands.add('selectFirstProject', () => {
- let url = Cypress.env('url');
- cy.visit(url);
- cy.get('[data-cy="select-projecttype-input-conversion"]').click();
- cy.get('[data-cy="select-common-submitbutton"]').click();
- cy.get('[id="school-name-0"]').click();
-})
-
-// Assign User to project
-
-// Unassign a user
-Cypress.Commands.add('unassignUser', () => {
- cy.get('[data-id="assigned-user"]')
- .invoke('text')
- .then((text) => {
- if (text.includes('Empty')) {
- return
- }
- else {
- // assign link
- cy.get('a[href*="project-assignment"]').click()
- // unassign link
- cy.get('[id="unassign-link"]').click()
- // continue button
- cy.get('[class="govuk-button"]').click()
- }
- })
-})
-
-// Assign User
-
-Cypress.Commands.add('assignUser', () => {
- cy.get('[data-id="assigned-user"]')
- .invoke('text')
- .then((text) => {
- if (text.includes('Empty')) {
- cy.get('a[href*="project-assignment"]').click()
- cy.get('[id="delivery-officer"]').click().type('Chris Sherlock').type('{enter}')
- cy.get('[class="govuk-button"]').click()
- }
- })
-})
-
-//Navigate To Filter Projects section
-Cypress.Commands.add('navigateToFilterProjects', () => {
- cy.get('[data-cy="select-projectlist-filter-expand"]').click();
- cy.get('[data-cy="select-projectlist-filter-clear"]').click();
- cy.get('[data-cy="select-projectlist-filter-expand"]').click();
- cy.get('[data-id="filter-container"]').should('be.visible');
-});
-
-// Submit End of current financial Date (School Budget Info Page)
-Cypress.Commands.add('submitEndOfCurrentFinancialYearDate', (day, month, year) => {
- cy.get('[id="financial-year-day"]').should('be.visible');
- cy.get('[id="financial-year-day"]').clear().type(day);
- cy.get('[id="financial-year-month"]').clear().type(month);
- cy.get('[id="financial-year-year"]').clear().type(year);
- cy.saveLocalStorage();
-})
-
-// Submit End of next financial Date (School Budget info Page)
-Cypress.Commands.add('submitEndOfNextFinancialYearDate', (day, month, year) => {
- cy.get('[id="next-financial-year-day"]').should('be.visible');
- cy.get('[id="next-financial-year-day"]').clear().type(day);
- cy.get('[id="next-financial-year-month"]').clear().type(month);
- cy.get('[id="next-financial-year-year"]').clear().type(year);
-})
-
-// End of Current Financial Year Date (School Budget info Page)
-Cypress.Commands.add('endOfCurrentFinancialYearInfo', () => {
- cy.get('[id="financial-year"]')
-})
-
-// End of Next Financial Year Date (School Budget info Page)
-Cypress.Commands.add('endOfNextFinancialYearInfo', () => {
- cy.get('[id="next-financial-year"]')
-})
-
Cypress.Commands.add('clearFilters', () => {
cy.get('[data-cy="select-projectlist-filter-clear"]').should('have.text', 'Clear filters')
cy.get('[data-cy="select-projectlist-filter-clear"]').click();
})
+Cypress.Commands.add('saveContinue', () => {
+ cy.get('[id="save-and-continue-button"]')
+})
+
Cypress.Commands.add("excuteAccessibilityTests", () => {
// FUNCTION COURTESY OF FAHAD DARWISH - NIMBLE APPROACH CONFLUENECE
const wcagStandards = ["wcag22aa", "wcag21aa"];
@@ -620,118 +130,6 @@ Cypress.Commands.add("excuteAccessibilityTests", () => {
);
});
-Cypress.Commands.add('createInvoluntaryProject', () => {
- cy.get('[role="button"]').should('contain.text', "Start a new involuntary conversion project")
- cy.get('a[href="/start-new-project/school-name"]').click()
- cy.selectSchool()
- cy.selectTrust()
- cy.url().should('include', 'start-new-project/check-school-trust-details')
- cy.get('[data-id="submit"]').click()
- cy.url().should('include', 'project-list')
- cy.get('[id="school-name-0"]').should('include.text', 'Glo')
- cy.get('#application-to-join-trust-0').should('include.text', 'CIT')
-})
-
-Cypress.Commands.add('selectSchool', () => {
- cy.url().should('include', '/start-new-project/school-name')
- cy.get('[id="SearchQuery"]').first().type('glo')
- cy.get('#SearchQuery__option--0').click();
- cy.get('[data-id="submit"]').click()
-})
-
-Cypress.Commands.add('selectTrust', () => {
- cy.url().should('include', 'start-new-project/trust-name')
- cy.get('[id="SearchQuery"]').first().type('cit')
- cy.get('#SearchQuery__option--1').click();
- cy.get('[data-id="submit"]').click()
-})
-
-Cypress.Commands.add('submitDateSNMReceivedForm', (day, month, year) => {
- cy.get('#form-7-received-date-day').should('be.visible')
- cy.get('#form-7-received-date-day').clear().type(day)
- cy.get('#form-7-received-date-month').clear().type(month)
- cy.get('#form-7-received-date-year').clear().type(year)
- cy.saveLocalStorage()
-});
-
-Cypress.Commands.add('submitDAODate', (day, month, year) => {
- cy.get('#dao-pack-sent-date-day').should('be.visible')
- cy.get('#dao-pack-sent-date-day').clear().type(day)
- cy.get('#dao-pack-sent-date-month').clear().type(month)
- cy.get('#dao-pack-sent-date-year').clear().type(year)
- cy.saveLocalStorage()
-});
-
-Cypress.Commands.add('setAdvisoryBoardDate', (day, month, year) => {
- cy.get('#head-teacher-board-date-day').should('be.visible')
- cy.get('#head-teacher-board-date-day').clear().type(day)
- cy.get('#head-teacher-board-date-month').clear().type(month)
- cy.get('#head-teacher-board-date-year').clear().type(year)
- cy.get('#save-and-continue-button').click()
- cy.saveLocalStorage()
-});
-
-Cypress.Commands.add('navigateToAllCreateProjectTemplateLinks', () => {
- cy.get('[aria-describedby="school-and-trust-information-status"]').click()
- cy.get('h1').should('not.contain', 'Page not found')
- cy.get('[id="confirm-and-continue-button"]').click()
- cy.get('[aria-describedby="general-information-status"]').click()
- cy.get('h1').should('not.contain', 'Page not found')
- cy.get('[id="confirm-and-continue-button"]').click()
- cy.get('[aria-describedby="school-performance-status"]').click()
- cy.get('h1').should('not.contain', 'Page not found')
- cy.get('[id="confirm-and-continue-button"]').click()
- cy.get('[aria-describedby="rationale-status"]').click()
- cy.get('h1').should('not.contain', 'Page not found')
- cy.get('[id="confirm-and-continue-button"]').click()
- cy.get('[aria-describedby="risks-and-issues"]').click()
- cy.get('h1').should('not.contain', 'Page not found')
- cy.get('[id="confirm-and-continue-button"]').click()
- cy.get('[aria-describedby="legal-requirements"]').click()
- cy.get('h1').should('not.contain', 'Page not found')
- cy.get('[data-cy="select-legal-summary-submitbutton"]').click()
- cy.get('[aria-describedby="school-budget-information-status"]').click()
- cy.get('h1').should('not.contain', 'Page not found')
- cy.get('[id="confirm-and-continue-button"]').click()
- cy.get('[aria-describedby="school-pupil-forecasts-status"]').click()
- cy.get('h1').should('not.contain', 'Page not found')
- cy.get('[id="confirm-and-continue-button"]').click()
-});
-
-Cypress.Commands.add('schoolsInThisMAT', () => {
- cy.get('h1').should('not.contain', 'Page not found')
- cy.title().should('contain', 'Schools in this MAT')
- cy.url().should('include', 'schools-in-this-mat')
- cy.get('[data-cy="select-projectlist-filter-row"]').invoke('text')
- .should('contain', 'PRE ADVISORY BOARD')
- cy.get('[data-cy="route"]').should('contain', 'Route: Form a MAT')
- cy.get('#school-name-0').should('be.visible')
- cy.get('#urn-0').contains('URN: ')
- cy.get('#application-to-join-trust-0').contains('Application to join a trust: ')
- cy.get('#application-received-date-0').contains('Project created date: ')
- cy.get('#local-authority-0').contains('Local authority: ')
-});
-
-Cypress.Commands.add('schoolApplicationForm', () => {
- cy.get('h1').should('not.contain', 'Page not found')
- cy.title().should('contain', 'School Application Form')
- cy.get('#Overview_link').should('be.visible')
- cy.get('#Trust_information_link').click()
- cy.get('#Trust_information').should('be.visible')
- cy.get('#Key_people_within_the_trust_link').click();
- cy.get('#Key_people_within_the_trust').should('be.visible')
- cy.get('h2').should('contain', 'Key people within the trust')
- cy.contains('Position(s) within the trust')
- cy.get('#About_the_conversion_link').should('be.visible')
- cy.get('#Further_information_link').should('be.visible')
- cy.get('#Finances_link').should('be.visible')
- cy.get('#Future_pupil_numbers_link').should('be.visible')
- cy.get('#Land_and_buildings_link').should('be.visible')
- cy.get('#Pre-opening_support_grant_link').should('be.visible')
- cy.get('#Consultation_link').should('be.visible')
- cy.get('#Declaration_link').should('be.visible')
-});
-
// Interceptors do not run for cy.request or cy.Api. Therefore use a command to make the request instead, an include the required headers etc.
Cypress.Commands.add('callAcademisationApi',