diff --git a/gef-ui/component-tests/partials/amendments/bank-review-date.component-test.ts b/gef-ui/component-tests/partials/amendments/bank-review-date.component-test.ts index fc2a7fd90b..1ca69c42b0 100644 --- a/gef-ui/component-tests/partials/amendments/bank-review-date.component-test.ts +++ b/gef-ui/component-tests/partials/amendments/bank-review-date.component-test.ts @@ -24,7 +24,7 @@ describe(page, () => { it('should render the page heading', () => { const wrapper = render(params); - wrapper.expectText('[data-cy="page-heading"]').toRead('Bank review date'); + wrapper.expectText('[data-cy="page-heading"]').toContain('Bank review date'); }); it(`should render the 'Back' link`, () => { diff --git a/gef-ui/component-tests/partials/amendments/cancel-portal-facility-amendment.component-test.ts b/gef-ui/component-tests/partials/amendments/cancel-portal-facility-amendment.component-test.ts index 00ee5cbe74..9a264ef320 100644 --- a/gef-ui/component-tests/partials/amendments/cancel-portal-facility-amendment.component-test.ts +++ b/gef-ui/component-tests/partials/amendments/cancel-portal-facility-amendment.component-test.ts @@ -16,6 +16,12 @@ describe(page, () => { facilityType, }; + it('should render the page heading', () => { + const wrapper = render(params); + + wrapper.expectText('[data-cy="page-heading"]').toContain('Are you sure you want to cancel the request?'); + }); + it(`should render the 'Back' link`, () => { const wrapper = render(params); diff --git a/gef-ui/component-tests/partials/amendments/cover-end-date.component-test.ts b/gef-ui/component-tests/partials/amendments/cover-end-date.component-test.ts index 2379ba2b1f..ee2a08707a 100644 --- a/gef-ui/component-tests/partials/amendments/cover-end-date.component-test.ts +++ b/gef-ui/component-tests/partials/amendments/cover-end-date.component-test.ts @@ -23,7 +23,7 @@ describe(page, () => { it('should render the page heading', () => { const wrapper = render(params); - wrapper.expectText('[data-cy="page-heading"]').toRead('New cover end date'); + wrapper.expectText('[data-cy="page-heading"]').toContain('New cover end date'); }); it(`should render the 'Back' link`, () => { diff --git a/gef-ui/component-tests/partials/amendments/do-you-have-a-facility-end-date.component-test.ts b/gef-ui/component-tests/partials/amendments/do-you-have-a-facility-end-date.component-test.ts index 41f587fc72..8973baf1a2 100644 --- a/gef-ui/component-tests/partials/amendments/do-you-have-a-facility-end-date.component-test.ts +++ b/gef-ui/component-tests/partials/amendments/do-you-have-a-facility-end-date.component-test.ts @@ -21,7 +21,7 @@ describe(page, () => { it('should render the page heading', () => { const wrapper = render(params); - wrapper.expectText('[data-cy="page-heading"]').toRead('Do you have a facility end date?'); + wrapper.expectText('[data-cy="page-heading"]').toContain('Do you have a facility end date?'); }); it(`should render the 'Back' link`, () => { diff --git a/gef-ui/component-tests/partials/amendments/effective-from.component-test.ts b/gef-ui/component-tests/partials/amendments/effective-from.component-test.ts index 3e6293bbf3..ac19e54a39 100644 --- a/gef-ui/component-tests/partials/amendments/effective-from.component-test.ts +++ b/gef-ui/component-tests/partials/amendments/effective-from.component-test.ts @@ -24,7 +24,7 @@ describe(page, () => { it('should render the page heading', () => { const wrapper = render(params); - wrapper.expectText('[data-cy="page-heading"]').toRead('Date amendment effective from'); + wrapper.expectText('[data-cy="page-heading"]').toContain('Date amendment effective from'); }); it(`should render the 'Back' link`, () => { diff --git a/gef-ui/component-tests/partials/amendments/eligibility.component-test.ts b/gef-ui/component-tests/partials/amendments/eligibility.component-test.ts index 2f9fb1acf0..0e8ab1d3a3 100644 --- a/gef-ui/component-tests/partials/amendments/eligibility.component-test.ts +++ b/gef-ui/component-tests/partials/amendments/eligibility.component-test.ts @@ -28,7 +28,7 @@ describe(page, () => { it('should render the page heading', () => { const wrapper = render(params); - wrapper.expectText('[data-cy="page-heading"]').toRead('Eligibility'); + wrapper.expectText('[data-cy="page-heading"]').toContain('Eligibility'); }); it(`should render the 'Back' link`, () => { diff --git a/gef-ui/component-tests/partials/amendments/facility-end-date.component-test.ts b/gef-ui/component-tests/partials/amendments/facility-end-date.component-test.ts index 165eff2be6..07e2b324f0 100644 --- a/gef-ui/component-tests/partials/amendments/facility-end-date.component-test.ts +++ b/gef-ui/component-tests/partials/amendments/facility-end-date.component-test.ts @@ -24,7 +24,7 @@ describe(page, () => { it('should render the page heading', () => { const wrapper = render(params); - wrapper.expectText('[data-cy="page-heading"]').toRead('Facility end date'); + wrapper.expectText('[data-cy="page-heading"]').toContain('Facility end date'); }); it(`should render the 'Back' link`, () => { diff --git a/gef-ui/component-tests/partials/amendments/facility-value.component-test.ts b/gef-ui/component-tests/partials/amendments/facility-value.component-test.ts index 230be9ea7a..3b4e5fd5ed 100644 --- a/gef-ui/component-tests/partials/amendments/facility-value.component-test.ts +++ b/gef-ui/component-tests/partials/amendments/facility-value.component-test.ts @@ -26,7 +26,7 @@ describe(page, () => { it('should render the page heading', () => { const wrapper = render(params); - wrapper.expectText('[data-cy="page-heading"]').toRead('New facility value'); + wrapper.expectText('[data-cy="page-heading"]').toContain('New facility value'); }); it(`should render the 'Back' link`, () => { diff --git a/gef-ui/component-tests/partials/amendments/what-needs-to-change.component-test.ts b/gef-ui/component-tests/partials/amendments/what-needs-to-change.component-test.ts index caadb73597..fc9df95492 100644 --- a/gef-ui/component-tests/partials/amendments/what-needs-to-change.component-test.ts +++ b/gef-ui/component-tests/partials/amendments/what-needs-to-change.component-test.ts @@ -24,7 +24,7 @@ describe(page, () => { it('should render the page heading', () => { const wrapper = render(params); - wrapper.expectText('[data-cy="page-heading"]').toRead('What do you need to change?'); + wrapper.expectText('[data-cy="page-heading"]').toContain('What do you need to change?'); }); it('should render the exporter name and facility type in the heading caption', () => {