Skip to content

Commit

Permalink
feat(DTFS2-7779): update component tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Roberts committed Jan 28, 2025
1 parent db3d0ba commit 77e33c7
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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`, () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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`, () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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`, () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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`, () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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`, () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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`, () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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`, () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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', () => {
Expand Down

0 comments on commit 77e33c7

Please sign in to comment.