test(app): run summary hashes use the bundled monospace family
This commit is contained in:
@@ -6,6 +6,7 @@ import 'package:pipelines_app/features/pipelines/pipeline_format.dart';
|
||||
import 'package:pipelines_app/features/runs/ui/run_detail_summary_fields.dart';
|
||||
|
||||
import 'run_detail_graph_support.dart';
|
||||
import 'package:pipelines_app/ui/text/monospace.dart';
|
||||
|
||||
/// A run whose recorded facts fill every Summary row.
|
||||
JsonMap recordedRunFixture() => <String, dynamic>{
|
||||
@@ -156,12 +157,12 @@ void main() {
|
||||
final hash = tester.widget<SelectableText>(
|
||||
find.widgetWithText(SelectableText, 'abc123def456'),
|
||||
);
|
||||
expect(hash.style?.fontFamily, 'monospace');
|
||||
expect(hash.style?.fontFamily, appMonospaceFamily);
|
||||
} else {
|
||||
final tile = tester.widget<CupertinoListTile>(
|
||||
find.byKey(const ValueKey('run-detail-summary-content-hash')),
|
||||
);
|
||||
expect((tile.subtitle! as Text).style?.fontFamily, 'monospace');
|
||||
expect((tile.subtitle! as Text).style?.fontFamily, appMonospaceFamily);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user