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