e2e: fix ambiguous selector in Tahesab assets test
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
+1
-1
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user