Skip to content

Commit

Permalink
Remove consult solicitor page
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Liburd committed Feb 25, 2025
1 parent 7d63370 commit 8bbfa0f
Show file tree
Hide file tree
Showing 9 changed files with 3 additions and 135 deletions.
11 changes: 0 additions & 11 deletions e2e-tests/steps/beforeYouStartSection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,17 +63,6 @@ export const completeSolicitorDetailsTask = async (page: Page, name: string) =>

await completeHasSolicitorPage(page, name)
await completeSolicitorContactInformationPage(page)
await completeConsultSolicitorPage(page, name)
}

async function completeConsultSolicitorPage(page: Page, name: string) {
const consultSolicitorPage = await ApplyPage.initialize(
page,
`Have you spoken to ${name}'s solicitor about this application?`,
)

await consultSolicitorPage.checkRadio('Yes')
await consultSolicitorPage.clickButton('Save and continue')
}

async function completeHasSolicitorPage(page: Page, name: string) {
Expand Down
3 changes: 0 additions & 3 deletions integration_tests/fixtures/applicationData.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,6 @@
"has-solicitor": {
"hasSolicitor": "yes"
},
"consult-solicitor": {
"consultSolicitor": "yes"
},
"contact-information": {
"name": "Jay Legal",
"legalFirmAndAddress": "Legal Firm, 1 Winchester Road, X14 3UF",
Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { applicationFactory, personFactory } from '../../../../testutils/factori
describe('ContactInformation', () => {
const application = applicationFactory.build({ person: personFactory.build({ name: 'Roger Smith' }) })

itShouldHaveNextValue(new ContactInformation({}, application), 'consult-solicitor')
itShouldHaveNextValue(new ContactInformation({}, application), '')
itShouldHavePreviousValue(new ContactInformation({}, application), 'has-solicitor')

describe('errors', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export default class ContactInformation implements TaskListPage {
}

next() {
return 'consult-solicitor'
return ''
}

errors() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,10 @@
import { Task } from '../../../utils/decorators'
import ContactInformation from './contactInformation'
import HasSolicitor from './hasSolicitor'
import ConsultSolicitor from './consultSolicitor'

@Task({
name: 'Add solicitor details',
slug: 'solicitor-details',
pages: [HasSolicitor, ContactInformation, ConsultSolicitor],
pages: [HasSolicitor, ContactInformation],
})
export default class SolicitorDetails {}
6 changes: 0 additions & 6 deletions server/form-pages/utils/questions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,6 @@ export const getQuestions = (name: string) => {
question: "Add solicitor's contact information",
},
},
'consult-solicitor': {
consultSolicitor: {
question: `Have you spoken to ${name}'s solicitor about this application?`,
answers: yesOrNo,
},
},
},
'personal-information': {
'working-mobile-phone': {
Expand Down

This file was deleted.

0 comments on commit 8bbfa0f

Please sign in to comment.