Fix remaining v2.5.1 Playwright POST download and FY selector tests

This commit is contained in:
A R R R Associates
2026-06-25 23:20:56 +05:30
parent ba1075ef19
commit 21c90749fb
8 changed files with 53 additions and 21 deletions
+5 -3
View File
@@ -225,9 +225,11 @@ test.describe('BILL: Invoices and payments', () => {
test('[V25-BILL-016] BILL-016 Fee structure import template download works', async ({ page }) => {
await login(page, 'Firm Admin');
const resp = await safeGoto(page, '/billing/fee-structures/template');
// should download or redirect, not crash
expect(resp.status()).toBeLessThan(500);
const [download] = await Promise.all([
page.waitForEvent('download'),
page.goto('/billing/fee-structures/template').catch(() => null),
]);
expect(await download.suggestedFilename()).toMatch(/fee.*structure|template|xlsx/i);
});
});