diff --git a/tests/e2e/inquiry-detail.spec.ts b/tests/e2e/inquiry-detail.spec.ts index 3aac1c8..950c175 100644 --- a/tests/e2e/inquiry-detail.spec.ts +++ b/tests/e2e/inquiry-detail.spec.ts @@ -35,9 +35,9 @@ test.describe('inquiry detail', () => { await navigateInBlazor(page, `${baseUrl}/admin/inquiries/${inquiry.id}`); await expect(page).toHaveURL(/\/taxbaik\/admin\/inquiries\/\d+$/); - await expect(page.getByText(name)).toBeVisible(); - await expect(page.getByText(phone)).toBeVisible(); - await expect(page.getByText(message)).toBeVisible(); + await expect(page.getByText(name, { exact: true }).first()).toBeVisible(); + await expect(page.getByText(phone, { exact: true }).first()).toBeVisible(); + await expect(page.getByText(message, { exact: true }).first()).toBeVisible(); await expect(page.getByRole('button', { name: '신규' })).toBeVisible(); await expect(page.getByRole('button', { name: '연락함' })).toBeVisible(); await expect(page.getByRole('button', { name: '완료' })).toBeVisible();