Fix remaining v2.5.1 Playwright POST download and FY selector tests
This commit is contained in:
@@ -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);
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user