From 09f05d4ecc41e1ca88c3d7587d2dbd9429d40d95 Mon Sep 17 00:00:00 2001 From: Mahdi Date: Thu, 8 Oct 2026 20:28:38 +0330 Subject: [PATCH] e2e: fix ambiguous selector in Tahesab assets test Co-authored-by: Cursor --- e2e/smoke.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();