Skip to content

Commit 6f8fdd7

Browse files
committed
fix test query
1 parent b573b21 commit 6f8fdd7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/features/discussions/routes/__tests__/Discussions.test.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ test('should create, render and delete discussions', async () => {
4040
await waitFor(() => expect(drawer).not.toBeInTheDocument());
4141

4242
const row = screen.getByRole('row', {
43-
name: `${newDiscussion.title} ${formatDate(newDiscussion.createdAt)} View Delete`,
43+
name: `${newDiscussion.title} ${formatDate(newDiscussion.createdAt)} View Delete Discussion`,
4444
});
4545

4646
expect(
@@ -51,7 +51,7 @@ test('should create, render and delete discussions', async () => {
5151

5252
userEvent.click(
5353
within(row).getByRole('button', {
54-
name: /delete/i,
54+
name: /delete discussion/i,
5555
})
5656
);
5757

@@ -60,7 +60,7 @@ test('should create, render and delete discussions', async () => {
6060
});
6161

6262
const confirmationDeleteButton = within(confirmationDialog).getByRole('button', {
63-
name: /delete/i,
63+
name: /delete discussion/i,
6464
});
6565

6666
userEvent.click(confirmationDeleteButton);

0 commit comments

Comments
 (0)