feat: i18n user interface (#40306)
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
This commit is contained in:
@@ -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"', () => {
|
||||
|
Reference in New Issue
Block a user