Files
eryao/apps/test/shared/widgets/divination/yao_legend_test.dart
T

17 lines
583 B
Dart
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:meeyao_qianwen/shared/widgets/divination/yao_legend.dart';
void main() {
testWidgets('legend shows yang yin and changing symbols', (tester) async {
await tester.pumpWidget(
const MaterialApp(home: Scaffold(body: YaoLegend())),
);
expect(find.text('— 阳'), findsOneWidget);
expect(find.text('-- 阴'), findsOneWidget);
expect(find.text('○ 老阳(变)'), findsOneWidget);
expect(find.text('× 老阴(变)'), findsOneWidget);
});
}