Skip to content

Commit

Permalink
Add test 'when a course without lessons "Nächster Schultag" should be…
Browse files Browse the repository at this point in the history
… automatically selected'.
  • Loading branch information
Jonas-Sander committed Nov 28, 2023
1 parent 0cb8bc1 commit cec9a63
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions app/test/homework/homework_dialog_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -775,6 +775,18 @@ void main() {

expect(controller.getSelectedLessonChips(), ['Nächster Schultag']);
});
testWidgets(
'when a course without lessons "Nächster Schultag" should be automatically selected',
(tester) async {
final controller = createController(tester);
controller.addCourse(courseWith(id: 'foo_course', name: 'Foo course'));
await pumpAndSettleHomeworkDialog(tester,
showDueDateSelectionChips: true);

await controller.selectCourse('foo_course');

expect(controller.getSelectedLessonChips(), ['Nächster Schultag']);
}, skip: true);
testWidgets(
'when pressing the "next schoolday" chip the next schoolday will be selected',
(tester) async {
Expand Down

0 comments on commit cec9a63

Please sign in to comment.