Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix test
  • Loading branch information
guidezpl committed Dec 5, 2022
commit 07b96bbc2510a2ba2fbd0de88a89cb339b8451e6
4 changes: 2 additions & 2 deletions examples/api/test/material/switch/switch.3_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ void main() {
const example.SwitchApp(),
);

final Finder switchFinder = find.byType(Switch);
Switch materialSwitch = tester.firstWidget<Switch>(switchFinder);
final Finder switchFinder = find.byType(Switch).first;
Switch materialSwitch = tester.widget<Switch>(switchFinder);
expect(materialSwitch.value, true);

await tester.tap(switchFinder);
Expand Down