diff --git a/app/components/options/sittersTab.test.tsx b/app/components/options/sittersTab.test.tsx index a933d7f7..2d38d4f2 100644 --- a/app/components/options/sittersTab.test.tsx +++ b/app/components/options/sittersTab.test.tsx @@ -101,7 +101,7 @@ test('alerts on rejected ids', async () => { renderTab(); await screen.findByText('Macedon'); - await user.click(screen.getByRole('button', { name: 'Authorize all allies' })); + await user.click(screen.getByRole('button', { name: 'Authorize All Allies' })); expect(mockedAuthorize).toHaveBeenCalledWith({ allied: 1 }); await waitFor(() => expect(mockedAlert).toHaveBeenCalledWith('Could not authorize: Nobody')); @@ -116,8 +116,8 @@ test('renews one or all sitters', async () => { await user.click(screen.getByRole('button', { name: 'Renew' })); expect(mockedAuthorize).toHaveBeenCalledWith({ empires: [3] }); - await waitFor(() => expect(screen.getByRole('button', { name: 'Renew all' })).toBeEnabled()); - await user.click(screen.getByRole('button', { name: 'Renew all' })); + await waitFor(() => expect(screen.getByRole('button', { name: 'Renew All' })).toBeEnabled()); + await user.click(screen.getByRole('button', { name: 'Renew All' })); expect(mockedAuthorize).toHaveBeenCalledWith({ revalidate_all: 1 }); });