test: fix E2E spec selectors for payments and remittances (strict mode, heading role)

This commit is contained in:
root
2026-03-31 03:23:55 +00:00
parent 986ee3dc6d
commit e4f04cf38e
2 changed files with 11 additions and 10 deletions

View File

@@ -32,8 +32,8 @@ test.describe('Payments', () => {
await page.locator('[data-testid="payment-row"]').first().click();
await expect(page.locator('text=Payment Details')).toBeVisible({ timeout: 5000 });
// Check modal has key fields
await expect(page.locator('text=Amount')).toBeVisible();
await expect(page.locator('text=Method')).toBeVisible();
await expect(page.locator('.fixed.inset-0 span:has-text("Amount")').first()).toBeVisible();
await expect(page.locator('.fixed.inset-0 span:has-text("Method")').first()).toBeVisible();
});
test('detail modal closes on close button', async ({ page }) => {