latest error resolved

This commit is contained in:
A R R R Associates
2026-06-30 23:18:42 +05:30
parent f84777ed4f
commit 3bcb6ed093
3 changed files with 23 additions and 7 deletions
+2 -2
View File
@@ -178,7 +178,7 @@ test.describe('v2.0.4 additional security / FY / context checks', () => {
test('V204-FY-002 switching FY does not crash core transactional pages', async ({ page }) => {
await login(page, 'System Admin');
await page.goto('/system-settings');
await switchFinancialYearIfPossible(page, activeFY);
await page.goto(`/system-settings/context/financial-year/${encodeURIComponent(activeFY)}`);
for (const route of ['/services/engagements', '/documents', '/notice-cases', '/billing', '/billing/payments']) {
const resp = await page.goto(route).catch(() => null);
if (resp && [404,405].includes(resp.status())) continue;
@@ -191,7 +191,7 @@ test.describe('v2.0.4 additional security / FY / context checks', () => {
if (!process.env.LOCKED_FY) test.skip(true, 'Set LOCKED_FY in .env after locking a financial year');
await login(page, 'System Admin');
await page.goto('/system-settings');
await switchFinancialYearIfPossible(page, process.env.LOCKED_FY);
await page.goto(`/system-settings/context/financial-year/${encodeURIComponent(process.env.LOCKED_FY)}`);
await page.goto('/notice-cases/new');
await page.waitForLoadState('domcontentloaded').catch(() => {});
const csrf = await extractCsrfFromPage(page);