e2e: fix ambiguous selector in Tahesab assets test

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-10-08 20:28:38 +03:30
co-authored by Cursor
parent 46a7693ea0
commit 09f05d4ecc
+1 -1
View File
@@ -47,7 +47,7 @@ test('دارایی‌ها و اسناد ته‌حساب مشتری', async ({ pa
const personId = process.env.E2E_PERSON_ID; const personId = process.env.E2E_PERSON_ID;
test.skip(!personId, 'E2E_PERSON_ID تنظیم نشده'); test.skip(!personId, 'E2E_PERSON_ID تنظیم نشده');
await page.goto(`/contacts/people/${personId}?tab=assets`); 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 page.getByRole('button', { name: 'جزئیات حساب', exact: true }).click();
await expect(page.locator('.invoice, .asnad-grid .sanad-card').first().or(page.getByText('در این بازه سندی یافت نشد'))).toBeVisible({ timeout: 60_000 }); await expect(page.locator('.invoice, .asnad-grid .sanad-card').first().or(page.getByText('در این بازه سندی یافت نشد'))).toBeVisible({ timeout: 60_000 });
const invoice = page.locator('.invoice').first(); const invoice = page.locator('.invoice').first();