Skip to content
This repository was archived by the owner on May 13, 2024. It is now read-only.

Commit 29ae370

Browse files
committed
fix: tests
1 parent f0186c6 commit 29ae370

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/features/dashboard/components/ApiTokenTable/__tests__/index.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ describe('DeleteTokenDialog', () => {
134134
const delete_modal = await screen.findByText(/Are you sure you want to delete this token?/i);
135135
expect(delete_modal).toBeInTheDocument();
136136

137-
const cancel_button = await screen.findByRole('button', { name: 'Cancel' });
137+
const cancel_button = await screen.findByRole('button', { name: 'Yes, delete' });
138138
await userEvent.click(cancel_button);
139139

140140
expect(mockDeleteToken).toHaveBeenCalledTimes(1);

src/features/dashboard/components/AppsTable/__tests__/apps-table.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ describe('Apps Table', () => {
8888
const deleteDialogTitle = await screen.findByText('Are you sure you want to delete this app?');
8989
expect(deleteDialogTitle).toBeInTheDocument();
9090

91-
const closeDeleteDialog = await screen.findByText(/no, keep it/i);
91+
const closeDeleteDialog = await screen.findByText(/cancel/i);
9292
await userEvent.click(closeDeleteDialog);
9393

9494
expect(deleteDialogTitle).not.toBeInTheDocument();

0 commit comments

Comments
 (0)