test: fix E2E spec selectors for payments and remittances (strict mode, heading role)
This commit is contained in:
@@ -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 }) => {
|
||||
|
||||
Reference in New Issue
Block a user