mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-06 10:44:23 +00:00
feat(settings,admin): every tab and popup in the planner's design
This commit is contained in:
@@ -155,14 +155,14 @@ describe('ApiKeysSection', () => {
|
||||
const user = userEvent.setup();
|
||||
renderSection();
|
||||
|
||||
await user.click(await screen.findByTitle('Delete key'));
|
||||
await user.click(await screen.findByRole('button', { name: 'Delete key' }));
|
||||
expect(deleted).toBe(0);
|
||||
expect(screen.getByText(/stops working immediately/)).toBeInTheDocument();
|
||||
|
||||
await user.click(screen.getByRole('button', { name: /^Cancel$/ }));
|
||||
expect(deleted).toBe(0);
|
||||
|
||||
await user.click(await screen.findByTitle('Delete key'));
|
||||
await user.click(await screen.findByRole('button', { name: 'Delete key' }));
|
||||
const [, confirm] = screen.getAllByRole('button', { name: /Delete key/ });
|
||||
await user.click(confirm);
|
||||
await waitFor(() => expect(deleted).toBe(1));
|
||||
|
||||
Reference in New Issue
Block a user