production
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:lucide_icons_flutter/lucide_icons.dart';
|
||||
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
import 'package:get/get.dart';
|
||||
@@ -98,11 +99,20 @@ void main() {
|
||||
) async {
|
||||
await pump(tester);
|
||||
|
||||
// The brief's first ink is the hero numeral now — the caption sits to
|
||||
// its right — so the claim is measured on the numeral.
|
||||
// ── Measured on the metrics, not on the headline ──
|
||||
//
|
||||
// The headline is centred now: the card is symmetrical — a title over a
|
||||
// full-width bar — and a left-aligned headline over a centred bar reads as
|
||||
// two elements that failed to line up. So the brief's left edge is the one
|
||||
// its *left-aligned* content sits on, which is the metric grid under the
|
||||
// bar. That is the column the route below has to agree with.
|
||||
// The grid's first ink is the icon tile, not the word beside it.
|
||||
final brief = tester.getRect(
|
||||
find
|
||||
.descendant(of: find.byType(TripBriefStrip), matching: find.text('2'))
|
||||
.ancestor(
|
||||
of: find.byIcon(LucideIcons.clock),
|
||||
matching: find.byType(Container),
|
||||
)
|
||||
.first,
|
||||
);
|
||||
final route = tester.getRect(find.text('TODAY’S RUN'));
|
||||
|
||||
Reference in New Issue
Block a user