From 715309241db773b487bbfd4f65eae8b66c98884a Mon Sep 17 00:00:00 2001 From: georgewrmarshall Date: Wed, 9 Nov 2022 15:51:02 -0600 Subject: [PATCH] Fixing casing on tests --- .../component-library/text-field/text-field.test.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ui/components/component-library/text-field/text-field.test.js b/ui/components/component-library/text-field/text-field.test.js index 1fbc6c0aeabb..fac0033d1440 100644 --- a/ui/components/component-library/text-field/text-field.test.js +++ b/ui/components/component-library/text-field/text-field.test.js @@ -69,7 +69,7 @@ describe('TextField', () => { it('should render showClearButton button when showClearButton is true and value exists', () => { // As TextField is a controlled input we need to pass in a value for the clear button to appear const { getByRole } = render(); - expect(getByRole('button', { name: /clear/u })).toBeDefined(); + expect(getByRole('button', { name: /Clear/u })).toBeDefined(); expect(getByRole('textbox')).toBeDefined(); }); it('should render with the rightAccessory', () => { @@ -98,7 +98,7 @@ describe('TextField', () => { const { user, getByRole } = setup( , ); - await user.click(getByRole('button', { name: /clear/u })); + await user.click(getByRole('button', { name: /Clear/u })); expect(fn).toHaveBeenCalledTimes(1); // clear button onClick is fired }); it('should fire clearButtonProps.onClick event when passed to clearButtonProps.onClick prop', async () => { @@ -111,7 +111,7 @@ describe('TextField', () => { showClearButton />, ); - await user.click(getByRole('button', { name: /clear/u })); + await user.click(getByRole('button', { name: /Clear/u })); expect(fn).toHaveBeenCalledTimes(1); }); it('should be able to accept inputProps', () => {