diff --git a/e2e/smoke.spec.ts b/e2e/smoke.spec.ts index 2a23b83..17595b0 100644 --- a/e2e/smoke.spec.ts +++ b/e2e/smoke.spec.ts @@ -47,7 +47,7 @@ test('دارایی‌ها و اسناد ته‌حساب مشتری', async ({ pa const personId = process.env.E2E_PERSON_ID; test.skip(!personId, 'E2E_PERSON_ID تنظیم نشده'); await page.goto(`/contacts/people/${personId}?tab=assets`); - await expect(page.getByText('مانده حساب')).toBeVisible({ timeout: 30_000 }); + await expect(page.getByRole('heading', { name: /مانده حساب/ })).toBeVisible({ timeout: 30_000 }); await page.getByRole('button', { name: 'جزئیات حساب', exact: true }).click(); await expect(page.locator('.invoice, .asnad-grid .sanad-card').first().or(page.getByText('در این بازه سندی یافت نشد'))).toBeVisible({ timeout: 60_000 }); const invoice = page.locator('.invoice').first();