diff --git a/changelog/fix-8926-localise-vat-details-modal b/changelog/fix-8926-localise-vat-details-modal new file mode 100644 index 00000000000..4c351552f7e --- /dev/null +++ b/changelog/fix-8926-localise-vat-details-modal @@ -0,0 +1,4 @@ +Significance: minor +Type: add + +Support adding tax details (corporate number) for Japan merchants (so can generate tax documents for consumption tax, aka VAT). diff --git a/client/documents/list/test/index.tsx b/client/documents/list/test/index.tsx index a917edaf108..c54cf7a02c8 100644 --- a/client/documents/list/test/index.tsx +++ b/client/documents/list/test/index.tsx @@ -238,20 +238,24 @@ describe( 'Document download button', () => { expect( window.open ).not.toHaveBeenCalled(); } ); - it( 'should open the VAT form modal', () => { + it( 'should open the tax details modal', () => { // Make sure the modal is not opened before clicking on the button. expect( - screen.queryByRole( 'dialog', { name: 'VAT details' } ) + screen.queryByRole( 'dialog', { + name: 'Set your tax details', + } ) ).toBeNull(); user.click( downloadButton ); expect( - screen.getByRole( 'dialog', { name: 'VAT details' } ) + screen.getByRole( 'dialog', { + name: 'Set your tax details', + } ) ).toBeVisible(); } ); - describe( 'after the VAT details are submitted', () => { + describe( 'after the tax details are submitted', () => { beforeEach( () => { user.click( downloadButton ); @@ -260,7 +264,9 @@ describe( 'Document download button', () => { it( 'should close the modal', () => { expect( - screen.queryByRole( 'dialog', { name: 'VAT details' } ) + screen.queryByRole( 'dialog', { + name: 'Set your tax details', + } ) ).toBeNull(); } ); diff --git a/client/vat/form-modal/index.tsx b/client/vat/form-modal/index.tsx index 42470fe45bc..56ddcda2833 100644 --- a/client/vat/form-modal/index.tsx +++ b/client/vat/form-modal/index.tsx @@ -24,7 +24,7 @@ const VatFormModal = ( { } ): JSX.Element | null => { return isModalOpen ? ( setModalOpen( false ) } > diff --git a/client/vat/form-modal/test/__snapshots__/index.tsx.snap b/client/vat/form-modal/test/__snapshots__/index.tsx.snap index f790a7c8b87..ff5d063931f 100644 --- a/client/vat/form-modal/test/__snapshots__/index.tsx.snap +++ b/client/vat/form-modal/test/__snapshots__/index.tsx.snap @@ -1,6 +1,6 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`VAT form modal should render the VAT Form 1`] = ` +exports[`Tax details modal should render the VAT Form 1`] = `
- VAT details + Set your tax details