@@ -108,15 +108,15 @@ Future<void> main() async {
108108 expectStoneNum (tester, SquareType .white, 2 );
109109 expectStoneCoordinates (tester, ['d4' , 'f4' ], SquareType .white);
110110
111- await tester.tap (find.byIcon ( FontAwesomeIcons .angleLeft ));
111+ await tester.tap (find.byType ( FaIcon ). at ( 3 ));
112112 await waitEdaxServerResponse (tester);
113113 await tester.pump ();
114114 expectStoneNum (tester, SquareType .black, 3 );
115115 expectStoneCoordinates (tester, ['d5' , 'e5' , 'f5' ], SquareType .black);
116116 expectStoneNum (tester, SquareType .white, 3 );
117117 expectStoneCoordinates (tester, ['d4' , 'e4' , 'f4' ], SquareType .white);
118118
119- await tester.tap (find.byIcon ( FontAwesomeIcons .angleRight ));
119+ await tester.tap (find.byType ( FaIcon ). at ( 4 ));
120120 await waitEdaxServerResponse (tester);
121121 await tester.pump ();
122122 expectStoneNum (tester, SquareType .black, 5 );
@@ -140,15 +140,15 @@ Future<void> main() async {
140140 expectStoneNum (tester, SquareType .white, 2 );
141141 expectStoneCoordinates (tester, ['d4' , 'f4' ], SquareType .white);
142142
143- await tester.tap (find.byIcon ( FontAwesomeIcons .anglesLeft ));
143+ await tester.tap (find.byType ( FaIcon ). at ( 2 ));
144144 await waitEdaxServerResponse (tester);
145145 await tester.pump (const Duration (microseconds: 300 ));
146146 expectStoneNum (tester, SquareType .black, 2 );
147147 expectStoneCoordinates (tester, ['e4' , 'd5' ], SquareType .black);
148148 expectStoneNum (tester, SquareType .white, 2 );
149149 expectStoneCoordinates (tester, ['d4' , 'e5' ], SquareType .white);
150150
151- await tester.tap (find.byIcon ( FontAwesomeIcons .anglesRight ));
151+ await tester.tap (find.byType ( FaIcon ). at ( 3 ));
152152 await waitEdaxServerResponse (tester);
153153 await tester.pump (const Duration (microseconds: 300 ));
154154 expectStoneNum (tester, SquareType .black, 5 );
@@ -275,15 +275,15 @@ Future<void> main() async {
275275 expectStoneNum (tester, SquareType .white, 6 );
276276 expectStoneCoordinates (tester, ['e7' , 'f6' , 'g5' , 'h4' , 'h5' , 'h6' ], SquareType .white);
277277
278- await tester.tap (find.byIcon ( FontAwesomeIcons .angleLeft )); // skip pass internally in engine.
278+ await tester.tap (find.byType ( FaIcon ). at ( 3 ));
279279 await waitEdaxServerResponse (tester);
280280 await tester.pump ();
281281 expectStoneNum (tester, SquareType .black, 8 );
282282 expectStoneCoordinates (tester, ['d3' , 'd4' , 'd5' , 'e4' , 'e5' , 'f5' , 'f6' , 'f7' ], SquareType .black);
283283 expectStoneNum (tester, SquareType .white, 4 );
284284 expectStoneCoordinates (tester, ['g5' , 'h4' , 'h5' , 'h6' ], SquareType .white);
285285
286- await tester.tap (find.byIcon ( FontAwesomeIcons .angleRight )); // skip pass internally in engine.
286+ await tester.tap (find.byType ( FaIcon ). at ( 4 ));
287287 await waitEdaxServerResponse (tester);
288288 await tester.pump ();
289289 expectStoneNum (tester, SquareType .black, 7 );
0 commit comments