Remove Cupertino template branches
Keep the Material-only template implementation and narrow its tests to the runtime path. Retain public Cupertino parameters for compatibility while removing unreachable hosts, widgets, and test variants.
This commit is contained in:
@@ -192,34 +192,28 @@ void main() {
|
||||
);
|
||||
});
|
||||
|
||||
testWidgets('the name field is labelled for screen readers on both hosts', (
|
||||
tester,
|
||||
) async {
|
||||
testWidgets('the name field is labelled for screen readers', (tester) async {
|
||||
final handle = tester.ensureSemantics();
|
||||
for (final cupertino in <bool>[false, true]) {
|
||||
await tester.pumpWidget(
|
||||
templateCreateApp(
|
||||
TemplateCreateHost(
|
||||
gateway: FakeTemplateCreateGateway(acceptedTemplateCreate),
|
||||
onCreated: (_) {},
|
||||
cupertino: cupertino,
|
||||
),
|
||||
cupertino: cupertino,
|
||||
textScale: 2,
|
||||
await tester.pumpWidget(
|
||||
templateCreateApp(
|
||||
TemplateCreateHost(
|
||||
gateway: FakeTemplateCreateGateway(acceptedTemplateCreate),
|
||||
onCreated: (_) {},
|
||||
),
|
||||
);
|
||||
await tester.tap(find.byKey(templateCreateOpenKey));
|
||||
await tester.pumpAndSettle();
|
||||
await tester.enterText(find.byKey(templateCreateNameKey), 'Scaled');
|
||||
await tester.pump();
|
||||
textScale: 2,
|
||||
),
|
||||
);
|
||||
await tester.tap(find.byKey(templateCreateOpenKey));
|
||||
await tester.pumpAndSettle();
|
||||
await tester.enterText(find.byKey(templateCreateNameKey), 'Scaled');
|
||||
await tester.pump();
|
||||
|
||||
final data = tester
|
||||
.getSemantics(find.byKey(templateCreateNameKey))
|
||||
.getSemanticsData();
|
||||
expect(data.label, templateCreateNameLabel);
|
||||
expect(data.value, 'Scaled');
|
||||
expect(data.flagsCollection.isTextField, isTrue);
|
||||
}
|
||||
final data = tester
|
||||
.getSemantics(find.byKey(templateCreateNameKey))
|
||||
.getSemanticsData();
|
||||
expect(data.label, templateCreateNameLabel);
|
||||
expect(data.value, 'Scaled');
|
||||
expect(data.flagsCollection.isTextField, isTrue);
|
||||
handle.dispose();
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user