Skip to content

Commit 34c5a64

Browse files
Merge pull request #3158 from acterglobal/anisha/boost-story-selection
Choosing a boost/story, the click now works with radio button.
2 parents 75a612e + 9ca2c8d commit 34c5a64

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
- [Fix] : Click-to-choose boost/story now works correctly with radio buttons at time of boost/story creation.

app/lib/features/news/pages/add_news/add_news_post_to_page.dart

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -176,10 +176,7 @@ class _AddNewsPostToPageState extends ConsumerState<AddNewsPostToPage> {
176176
return Radio(
177177
value: postTypeSelection,
178178
groupValue: postType,
179-
onChanged:
180-
isEnable
181-
? (value) => selectedPostType.value = postType
182-
: null,
179+
onChanged: isEnable ? (value) => selectedPostType.value = postTypeSelection : null,
183180
toggleable: isEnable,
184181
);
185182
},

app/test/features/events/pages/create_event_page_test.dart

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,8 +287,14 @@ void main() {
287287
await tester.tap(find.text('OK'));
288288
await tester.pump();
289289

290+
// Wait for any pending timers to complete
291+
await tester.pumpAndSettle(const Duration(seconds: 3));
292+
290293
// Verify end date is not updated
291294
expect(find.text('14'), findsNothing);
295+
296+
// Ensure all EasyLoading operations are dismissed
297+
await tester.pump(const Duration(seconds: 1));
292298
});
293299

294300
testWidgets('handles end time validation correctly', (tester) async {

0 commit comments

Comments
 (0)