Drop Cupertino variants of the row menu and run detail tests

This commit is contained in:
2026-11-10 23:02:20 +00:00
parent 440065614c
commit 6a071a5b02
4 changed files with 6 additions and 27 deletions
@@ -78,7 +78,8 @@ Color _accentColor(WidgetTester tester, String id) =>
tester.widget<AppListRow>(_accent(id)).accent!;
void main() {
for (final cupertino in [false, true]) {
// The row menu is Material only.
for (final cupertino in [false]) {
for (final brightness in Brightness.values) {
final host = '${cupertino ? 'Cupertino' : 'Material'} ${brightness.name}';
@@ -178,30 +178,6 @@ void main() {
},
);
testWidgets('duplicate Cupertino titles disambiguate the action labels', (
tester,
) async {
final semantics = tester.ensureSemantics();
final gateway = FakeChatGateway()
..sessionsReply = {
'chat_sessions': [
{'id': 'd1', 'title': 'New chat', 'directory': '/work'},
{'id': 'd2', 'title': 'New chat', 'directory': '/work'},
],
};
await pumpCupertinoChat(tester, gateway);
expect(
tester.getSemantics(find.byKey(const Key('chat-actions-d1'))).label,
'Chat actions for New chat (d1)',
);
expect(
tester.getSemantics(find.byKey(const Key('chat-actions-d2'))).label,
'Chat actions for New chat (d2)',
);
semantics.dispose();
});
testWidgets('closed chats start folded away behind their heading', (
tester,
) async {
@@ -8,7 +8,8 @@ import 'chat_test_harness.dart';
import 'fake_chat_gateway.dart';
void main() {
for (final cupertino in [false, true]) {
// The row menu is Material only.
for (final cupertino in [false]) {
for (final beside in [false, true]) {
testWidgets(
'${cupertino ? 'Cupertino' : 'Material'} split menu passes selected chat ${beside ? 'beside' : 'below'}',
@@ -133,7 +133,8 @@ void main() {
});
tearDown(() => controller.dispose());
for (final platform in AppPlatform.values) {
// The run's More menu is Material only.
for (final platform in [AppPlatform.material]) {
testWidgets('${platform.name} detail at 390 with 2x text', (tester) async {
gateway.detail = runFixture(steps: 12);
await controller.select(1);