@@ -170,21 +170,22 @@ describe('renderMarkup', () => {
170170 expect ( mixedOut ) . not . toContain ( 'was 14:46' ) // minor early arrival -> gated out
171171 } )
172172
173- it ( 'shows the on-time verdict as the 4th full-card tile (label-less), and hides it when unknown' , ( ) => {
174- // assert on the tile element, not the always-present .stat-tile--status CSS rule
173+ it ( 'shows the on-time verdict in the header status line (not a 4th tile), and hides it when unknown' , ( ) => {
175174 const delayed = renderMarkup ( { ...sampleFlight , delayString : 'Delayed' } , 'full' , 0 , 'https://example.com' )
176- expect ( delayed ) . toContain ( 'class="stat-tile stat-tile--status"' )
177- expect ( delayed ) . toContain ( '>Delayed<' )
178- expect ( delayed ) . toContain ( '>ALT<' ) // sits alongside the telemetry tiles
179- // unknown -> no status tile
175+ // adherence rides in the header next to the flight phase, keeping the tile row a clean 3
176+ expect ( delayed ) . toContain ( 'class="flight-adherence"' )
177+ expect ( delayed ) . toContain ( 'Delayed' )
178+ expect ( delayed ) . not . toContain ( 'stat-tile--status' ) // the old 4th tile is gone
179+ expect ( delayed ) . toContain ( '>ALT<' ) // uniform ALT/SPD/HDG telemetry row remains
180+ // unknown -> no adherence in the header
180181 const unknown = renderMarkup ( { ...sampleFlight , delayString : null } , 'full' , 0 , 'https://example.com' )
181- expect ( unknown ) . not . toContain ( 'class="stat-tile stat-tile--status "' )
182+ expect ( unknown ) . not . toContain ( 'class="flight-adherence "' )
182183 } )
183184
184185 it ( 'does not surface delayString on half variants (the "was" anchors carry the delay there)' , ( ) => {
185186 const out = renderMarkup ( { ...sampleFlight , delayString : 'Delayed' } , 'half_horizontal' , 0 , 'https://example.com' )
186- expect ( out ) . not . toContain ( '>Delayed< ' )
187- expect ( out ) . not . toContain ( 'class="stat-tile stat-tile-- status"' )
187+ expect ( out ) . not . toContain ( 'flight-adherence ' )
188+ expect ( out ) . not . toContain ( 'Delayed' ) // status is 'Cruising'; adherence never rendered on halves
188189 } )
189190
190191 it ( 'counts down to departure (DEPARTS IN) pre-takeoff, then to arrival (ARRIVING IN)' , ( ) => {
0 commit comments