fix(tests): restore packing panel inline header + update tests for ui changes

- PackingListPanel accepts inlineHeader prop (default true) to keep its
  legacy title and inline import button; ListsContainer passes
  inlineHeader={false} since the toolbar now owns those controls
- ReservationModal tests look for the renamed 'Car' button (was 'Rental Car')
- Budget total-budget test asserts against the split integer/decimal
  spans that replaced the single text node
This commit is contained in:
Maurice
2026-04-17 23:56:42 +02:00
parent 189b257254
commit 71637a8483
4 changed files with 34 additions and 13 deletions
@@ -107,7 +107,7 @@ describe('ReservationModal', () => {
expect(screen.getByRole('button', { name: /Accommodation/i })).toBeInTheDocument();
expect(screen.getByRole('button', { name: /Restaurant/i })).toBeInTheDocument();
expect(screen.getByRole('button', { name: /Train/i })).toBeInTheDocument();
expect(screen.getByRole('button', { name: /Rental Car/i })).toBeInTheDocument();
expect(screen.getByRole('button', { name: /^Car$/i })).toBeInTheDocument();
expect(screen.getByRole('button', { name: /Cruise/i })).toBeInTheDocument();
expect(screen.getByRole('button', { name: /Event/i })).toBeInTheDocument();
expect(screen.getByRole('button', { name: /Tour/i })).toBeInTheDocument();
@@ -636,7 +636,7 @@ describe('ReservationModal', () => {
it('FE-PLANNER-RESMODAL-045: car type shows date/time section', async () => {
render(<ReservationModal {...defaultProps} />);
await userEvent.click(screen.getByRole('button', { name: /Rental Car/i }));
await userEvent.click(screen.getByRole('button', { name: /^Car$/i }));
// Car type still shows date fields (not hotel which hides them)
await waitFor(() => {
expect(screen.getAllByTestId('date-picker').length).toBeGreaterThan(0);