feat: i18n user interface (#40306)

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
This commit is contained in:
Tom
2020-12-16 02:02:52 -06:00
committed by Mrugesh Mohapatra
parent a60a887e63
commit 3978c6be28
149 changed files with 3408 additions and 1084 deletions

View File

@@ -11,10 +11,10 @@ test('<BlockSaveButton /> snapshot', () => {
expect(container).toMatchSnapshot();
});
test('Button text should default to "Save"', () => {
test('Button text should default to the correct translation key', () => {
const { getByRole } = render(<BlockSaveButton />);
expect(getByRole('button')).toHaveTextContent('Save');
expect(getByRole('button')).toHaveTextContent('buttons.save');
});
test('Button text should match "children"', () => {