mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-06 02:34:21 +00:00
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:
@@ -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 () => {
|
||||
|
||||
Reference in New Issue
Block a user