From acb51c600fe8d25fa978865eb358933b46fee1a3 Mon Sep 17 00:00:00 2001 From: Natalie Rose Date: Sat, 26 Sep 2026 11:53:42 +1000 Subject: [PATCH] Fix name of buttons in sitters tab test --- app/components/options/sittersTab.test.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 }); }); -- 2.51.2