TF-4102 Don't display free-busy on IMIP responses (accepted, tentative, rejected)

This commit is contained in:
dab246
2025-10-15 15:17:12 +07:00
committed by Dat H. Pham
parent 51b85c8b79
commit 474a8806e2
7 changed files with 37 additions and 16 deletions
@@ -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,
),
),
@@ -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