test(transit): check the rendered line badge colours

The booking test checked the nested label after the badge layout changed. Assert the provider colours on the outer badge that sets them.
This commit is contained in:
Maurice
2026-12-01 11:21:52 +01:00
parent 67b65a7647
commit 8f20f9f7ea
@@ -42,7 +42,7 @@ describe('transitSummary', () => {
describe('TransitLegs', () => {
it('FE-PLANNER-BKTRANSIT-005: a ride shows its line, stops and facts', () => {
render(<TransitLegs legs={[ride]} />);
const line = screen.getByText('U2');
const line = screen.getByText('U2').parentElement;
expect(line).toHaveStyle({ background: '#dc2626', color: '#ffffff' });
expect(screen.getByText('Alexanderplatz')).toBeInTheDocument();
expect(screen.getByText('Eberswalder Str.')).toBeInTheDocument();