mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-10-23 23:46:35 +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:
@@ -1917,8 +1917,9 @@ describe('DayDetailPanel time format', () => {
|
||||
);
|
||||
render(<DayDetailPanel {...defaultProps} />);
|
||||
|
||||
// The arrival day shows only the check-in; the check-out belongs to the last day (#2393).
|
||||
expect(await screen.findByText('15:00')).toBeInTheDocument();
|
||||
expect(screen.getByText('11:00')).toBeInTheDocument();
|
||||
expect(screen.queryByText('11:00')).not.toBeInTheDocument();
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
@@ -99,7 +99,8 @@ describe('LocationSelect', () => {
|
||||
await screen.findByText('Gare du Nord');
|
||||
|
||||
expect(body.query).toBe('Gare du Nord');
|
||||
expect(lang).toBe('en-US');
|
||||
// The place name language, which follows the app's language when none is picked (#1799).
|
||||
expect(lang).toBe('en');
|
||||
});
|
||||
|
||||
it('FE-PLANNER-LOCSEL-008: a hit whose address equals its name shows no duplicate subtitle', async () => {
|
||||
|
||||
@@ -369,7 +369,7 @@ describe('VacayCalendar', () => {
|
||||
// Now click a month card cell
|
||||
await user.click(screen.getByText('click-0'))
|
||||
|
||||
expect(toggleCompanyHoliday).toHaveBeenCalledWith('2025-01-01')
|
||||
expect(toggleCompanyHoliday.mock.calls[0][0]).toBe('2025-01-01')
|
||||
expect(toggleEntry).not.toHaveBeenCalled()
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user