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
+3 -2
View File
@@ -126,8 +126,9 @@ test.describe('v2.0.4 additional security / FY / context checks', () => {
await page.goto('/system-settings');
await expectNoBackendError(page);
const body = await readBody(page);
const selectorExists = await page.locator('select[name="active_financial_year"], select[name="financial_year"], [data-testid="active-fy-select"], text=/FY|Financial Year|Active FY/i').count();
expect(selectorExists || /financial year|active fy|fy\s*[:\-]/i.test(body)).toBeTruthy();
const cssSelectorCount = await page.locator('select[name="active_financial_year"], select[name="financial_year"], [data-testid="active-fy-select"]').count();
const textSelectorCount = await page.getByText(/FY|Financial Year|Active FY/i).count().catch(() => 0);
expect(cssSelectorCount || textSelectorCount || /financial year|active fy|fy\s*[:\-]/i.test(body)).toBeTruthy();
});
test('V204-FY-002 switching FY does not crash core transactional pages', async ({ page }) => {