From e2ef37837885490b023253cfebc5cd8bec8c1800 Mon Sep 17 00:00:00 2001 From: Dominik Zogg Date: Mon, 18 Mar 2024 21:43:01 +0100 Subject: [PATCH] Add mock data-testid --- tests/component/page/pet/update.test.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/component/page/pet/update.test.tsx b/tests/component/page/pet/update.test.tsx index 03f7547..3530d36 100644 --- a/tests/component/page/pet/update.test.tsx +++ b/tests/component/page/pet/update.test.tsx @@ -220,7 +220,7 @@ test('successful', async () => { const { container } = render( - } /> + } /> } /> , @@ -230,10 +230,10 @@ test('successful', async () => { await userEvent.click(testButton); - await screen.findByTestId('page-pet-list'); + await screen.findByTestId('page-pet-list-mock'); expect(formatHtml(container.outerHTML)).toMatchInlineSnapshot(` - "
+ "
" `); });