Merge commit 'ca6a0516'

This commit is contained in:
2026-10-25 21:55:38 +00:00
2 changed files with 69 additions and 12 deletions
@@ -16,7 +16,9 @@ void main() {
await openVisit(tester, platform);
expect(find.byKey(const Key('run-visit-pane')), findsOneWidget);
expect(find.text('plan · visit 1'), findsOneWidget);
expect(find.text('plan'), findsOneWidget);
expect(find.text('Visit 1'), findsOneWidget);
expect(find.text('Run 77'), findsOneWidget);
// Each fact as its label over its value; several share a line.
for (final (label, value) in [
('Status', 'completed'),
@@ -34,8 +36,16 @@ void main() {
expect(find.text('Verdict'), findsOneWidget);
expect(find.text('Diagnostic'), findsOneWidget);
// The title and its facts share one leading edge.
final title = tester.getTopLeft(find.text('plan · visit 1')).dx;
// Stage identity is a distinct, prominent heading; coordinates are
// subordinate and the facts remain aligned with the heading.
final titleFinder = find.byKey(const Key('run-visit-title'));
final title = tester.getTopLeft(titleFinder).dx;
final titleStyle = tester.widget<Text>(titleFinder).style!;
expect(titleStyle.fontSize!, greaterThan(18));
expect(
tester.getTopLeft(find.text('Visit 1')).dy,
greaterThan(tester.getTopLeft(titleFinder).dy),
);
expect(
tester.getTopLeft(find.byKey(const Key('run-visit-facts-grid'))).dx,
title,
@@ -98,6 +108,29 @@ void main() {
expect(find.byKey(const Key('run-visit-pane')), findsOneWidget);
expect(tester.takeException(), isNull);
});
testWidgets('${platform.name} long stage identity wraps at 2x', (
tester,
) async {
final run = visitRunFixture();
firstVisitStep(run)['stage'] =
'review-generated-release-artifacts-and-verify-evidence';
await openVisit(
tester,
platform,
run: run,
size: const Size(320, 568),
scale: 2,
);
expect(
find.text('review-generated-release-artifacts-and-verify-evidence'),
findsOneWidget,
);
expect(find.text('Visit 1'), findsOneWidget);
expect(find.text('Run 77'), findsOneWidget);
expect(tester.takeException(), isNull);
});
}
testWidgets('session export with no configured endpoint states the hint', (