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
+15 -6
View File
@@ -152,20 +152,29 @@ test.describe('SVC: Services depth', () => {
test('[V25-SVC-002] SVC-002 Bulk imports service-master template downloads', async ({ page }) => {
await login(page, 'Firm Admin');
const resp = await safeGoto(page, '/services/bulk-imports/templates/service-master.xlsx');
expect(resp.status()).toBeLessThan(500);
const [download] = await Promise.all([
page.waitForEvent('download'),
page.goto('/services/bulk-imports/templates/service-master.xlsx').catch(() => null),
]);
expect(await download.suggestedFilename()).toMatch(/service.*template|xlsx/i);
});
test('[V25-SVC-003] SVC-003 Bulk imports engagement-assignments template downloads', async ({ page }) => {
await login(page, 'Firm Admin');
const resp = await safeGoto(page, '/services/bulk-imports/templates/engagement-assignments.xlsx');
expect(resp.status()).toBeLessThan(500);
const [download] = await Promise.all([
page.waitForEvent('download'),
page.goto('/services/bulk-imports/templates/engagement-assignments.xlsx').catch(() => null),
]);
expect(await download.suggestedFilename()).toMatch(/assignment|template|xlsx/i);
});
test('[V25-SVC-004] SVC-004 Bulk imports firm-task-templates template downloads', async ({ page }) => {
await login(page, 'Firm Admin');
const resp = await safeGoto(page, '/services/bulk-imports/templates/firm-task-templates.xlsx');
expect(resp.status()).toBeLessThan(500);
const [download] = await Promise.all([
page.waitForEvent('download'),
page.goto('/services/bulk-imports/templates/firm-task-templates.xlsx').catch(() => null),
]);
expect(await download.suggestedFilename()).toMatch(/task|template|xlsx/i);
});
test('[V25-SVC-005] SVC-005 Bulk import preview CSRF-less POST is rejected', async ({ request }) => {