Fix the test annotation used for test groups (#28638)

diff --git a/packages/flutter_test/lib/src/test_compat.dart b/packages/flutter_test/lib/src/test_compat.dart
index e2e83fc..f21dd4e 100644
--- a/packages/flutter_test/lib/src/test_compat.dart
+++ b/packages/flutter_test/lib/src/test_compat.dart
@@ -231,7 +231,7 @@
 /// suite*—tests in other suites will run as normal. We recommend that users
 /// avoid this flag if possible, and instead use the test runner flag `-n` to
 /// filter tests by name.
-@isTest
+@isTestGroup
 void group(Object description, Function body) {
   _declarer.group(description.toString(), body);
 }