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