TF-4102 Don't display free-busy on IMIP responses (accepted, tentative, rejected)
This commit is contained in:
+3
-3
@@ -38,7 +38,7 @@ void main() {
|
||||
calendarEvent: calendarEvent,
|
||||
onCalendarEventReplyActionClick: (_) {},
|
||||
calendarEventReplying: false,
|
||||
isFree: false,
|
||||
isFreeBusyEnabled: false,
|
||||
ownEmailAddress: ownEmail,
|
||||
),
|
||||
),
|
||||
@@ -81,7 +81,7 @@ void main() {
|
||||
calendarEvent: calendarEvent,
|
||||
onCalendarEventReplyActionClick: (_) {},
|
||||
calendarEventReplying: false,
|
||||
isFree: false,
|
||||
isFreeBusyEnabled: false,
|
||||
ownEmailAddress: ownEmail,
|
||||
),
|
||||
),
|
||||
@@ -121,7 +121,7 @@ void main() {
|
||||
calendarEvent: calendarEvent,
|
||||
onCalendarEventReplyActionClick: (_) {},
|
||||
calendarEventReplying: false,
|
||||
isFree: false,
|
||||
isFreeBusyEnabled: false,
|
||||
ownEmailAddress: ownEmail,
|
||||
),
|
||||
),
|
||||
|
||||
+6
-6
@@ -21,21 +21,21 @@ void main() {
|
||||
group('EventTimeInformationWidget tests', () {
|
||||
Widget makeTestableWidget({
|
||||
required String timeEvent,
|
||||
required bool isFree,
|
||||
required bool isFreeBusyEnabled,
|
||||
}) {
|
||||
return WidgetFixtures.makeTestableWidget(
|
||||
child: EventTimeInformationWidget(
|
||||
timeEvent: timeEvent,
|
||||
isFree: isFree,
|
||||
isFreeBusyEnabled: isFreeBusyEnabled,
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
testWidgets('should show error icon with tooltip when isFree is false', (tester) async {
|
||||
testWidgets('should show error icon with tooltip when isFreeBusyEnabled is true', (tester) async {
|
||||
// arrange
|
||||
final widget = makeTestableWidget(
|
||||
timeEvent: '10:00 AM - 11:00 AM',
|
||||
isFree: false,
|
||||
isFreeBusyEnabled: true,
|
||||
);
|
||||
|
||||
// act
|
||||
@@ -51,11 +51,11 @@ void main() {
|
||||
expect(find.byType(Tooltip), findsOneWidget);
|
||||
});
|
||||
|
||||
testWidgets('should not show error icon when isFree is true', (tester) async {
|
||||
testWidgets('should not show error icon when isFreeBusyEnabled is false', (tester) async {
|
||||
// arrange
|
||||
final widget = makeTestableWidget(
|
||||
timeEvent: '10:00 AM - 11:00 AM',
|
||||
isFree: true,
|
||||
isFreeBusyEnabled: false,
|
||||
);
|
||||
|
||||
// act
|
||||
|
||||
Reference in New Issue
Block a user