From 1ec7a0483a31cde915f296b7de88f18cc6264982 Mon Sep 17 00:00:00 2001 From: Jose Buitron Date: Tue, 7 Nov 2023 11:47:57 -0500 Subject: [PATCH] fix: Fixed account profile tests --- src/account/components/AccountProfile.test.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/account/components/AccountProfile.test.js b/src/account/components/AccountProfile.test.js index a1cca489c..5eae2dc26 100644 --- a/src/account/components/AccountProfile.test.js +++ b/src/account/components/AccountProfile.test.js @@ -217,13 +217,15 @@ test('AccountProfile: Save language', async () => { expect(screen.getByText('English')).toBeInTheDocument(); await act(async () => - fireEvent.mouseDown(screen.getByRole('button', { name: /English/i })) + fireEvent.mouseDown(screen.getByRole('combobox', { name: /English/i })) ); const listbox = within(screen.getByRole('listbox')); await act(async () => fireEvent.click(listbox.getByRole('option', { name: /Español/i })) ); - expect(screen.getByRole('button', { name: /Español/i })).toBeInTheDocument(); + expect( + screen.getByRole('combobox', { name: /Español/i }) + ).toBeInTheDocument(); await act(async () => fireEvent.click(screen.getByRole('button', { name: 'Save Profile' }))