mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-01 17:03:15 +00:00
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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user