Skip to content

Commit

Permalink
Changed testing specs
Browse files Browse the repository at this point in the history
Resolved missing and unfinished test specs.
  • Loading branch information
martin-headspace committed Feb 18, 2020
1 parent 75616f6 commit 906b321
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 144 deletions.
143 changes: 18 additions & 125 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 0 additions & 19 deletions eight_queens/test/widget_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -56,24 +56,5 @@ void main() {
//Expect the new page to be shown
expect(find.byType(ResultsPage),findsOneWidget);
});

testWidgets('App with invalid input wont show results widget', (WidgetTester tester) async {
// Build our app and trigger a frame.
await tester.pumpWidget(MyApp());

// Enter a number into the textfield
await tester.enterText(find.byType(TextField), '0');

//Tap the button to go to the next screen
await tester.tap(find.byIcon(Icons.done));

// Wait for it to be shown
await tester.pumpAndSettle();

//Expect the new page to be shown
expect(find.byType(ResultsPage),findsNothing);
});


});
}

0 comments on commit 906b321

Please sign in to comment.