test: follow the qol sweep in the e2e schemas and the assertions it changed

The hand-written e2e schemas gain the new columns and place_regions, and the
unit assertions take the new arguments and fields. The Public API page names
GET /api/auth/app-config for the running version.
This commit is contained in:
Maurice
2026-09-30 23:28:14 +02:00
parent 8fd46c4c18
commit f5103d04e0
19 changed files with 56 additions and 223 deletions
@@ -667,6 +667,7 @@ describe('useMPlanTimeline', () => {
expect(result.current.routeModeOptions).toEqual([
{ key: 'driving', label: 'mobileTrip.profileDriving' },
{ key: 'walking', label: 'mobileTrip.profileWalking' },
{ key: 'cycling', label: 'mobileTrip.profileCycling' },
{ key: 'plugin:ev/eco', label: 'Eco' },
{ key: 'plugin:ev/fast', label: 'Fast' },
])
@@ -332,7 +332,7 @@ describe('useMVacay', () => {
mocks.vacay = buildVacay({ plan: buildPlan({ company_holidays_enabled: true }) });
act(() => { rerender(); });
await act(async () => { await result.current.handleDayTap('2026-12-24'); });
expect(toggleCompanyHoliday).toHaveBeenCalledWith('2026-12-24');
expect(toggleCompanyHoliday.mock.calls[0][0]).toBe('2026-12-24');
});
it('FE-MOB-MVAC-019: the entitlement stepper caps at 365 and never drops below used', async () => {