fix(tours): the last review findings of the city walks

A place closing at midnight is no longer read as open past it: the hours
run on only where the next date opens at midnight (any window of the day
counts, as written order is kept), and an impossible date such as
2026-02-31 reads as unknown instead of rolling into March. The hours
source names the trip's places rather than "your own" entries, in all
27 locales, as the pill beside it does.

The day a walk's arrivals are checked for shows its date on the pill,
not only "Day N". The 12 hour clock is tested for a window to midnight.

The along-the-tour term table is built once again, now that the one test
that stubbed the places client without its real exports spreads them.
New test seeding goes through the ORM factories.
This commit is contained in:
Maurice
2026-10-20 10:37:29 +02:00
parent 6477bf5e39
commit 3882feec5c
40 changed files with 178 additions and 80 deletions
@@ -294,7 +294,7 @@ describe('TourWaypointList', () => {
it('FE-TOUR-WAYPOINT-LIST-009: names the day above the stops and the conflict at the stop it is about', () => {
render(<TourWaypointList planner={walkPlanner()} canEdit isSaving={false} />);
expect(screen.getByTestId('walk-day')).toHaveTextContent('Day 1, start 17:20');
expect(screen.getByTestId('walk-day')).toHaveTextContent(/^Day 1, Mon, Oct 19(, 2026)?, start 17:20$/);
const rows = screen.getAllByTestId('tour-planner-waypoint-row');
const first = within(at(rows, 0)).getByTestId('walk-station-schedule');
expect(within(first).getByText('Arrival about 17:20, stay until 18:20')).toBeInTheDocument();
@@ -312,7 +312,7 @@ describe('TourWaypointList', () => {
it('FE-TOUR-WAYPOINT-LIST-010: shows no arrival while the route is not planned for the points as they are', () => {
render(<TourWaypointList planner={walkPlanner({ routeCurrent: false })} canEdit isSaving={false} />);
expect(screen.getByTestId('walk-day')).toHaveTextContent('Day 1, start 17:20');
expect(screen.getByTestId('walk-day')).toHaveTextContent(/^Day 1, Mon, Oct 19(, 2026)?, start 17:20$/);
expect(screen.queryByTestId('walk-station-schedule')).not.toBeInTheDocument();
expect(screen.queryByTestId('walk-station-conflict')).not.toBeInTheDocument();
});