Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'CupertinoTextField' is not a subtype of type 'TextField' #2

Open
cdm2012 opened this issue Apr 3, 2022 · 0 comments
Open

'CupertinoTextField' is not a subtype of type 'TextField' #2

cdm2012 opened this issue Apr 3, 2022 · 0 comments

Comments

@cdm2012
Copy link

cdm2012 commented Apr 3, 2022

The internal functionality of the BaseIntegrationTest.enterText defaults to EditText. I'm currently using a CupertinoEditText and it is failing with the following message/stack.

I/flutter (11696): The following _CastError was thrown running a test:
I/flutter (11696): type 'CupertinoTextField' is not a subtype of type 'TextField' in type cast
I/flutter (11696): 
I/flutter (11696): When the exception was thrown, this was the stack:
I/flutter (11696): #0      BaseIntegrationTest.enterText (package:integration_test_helper/integration_test_helper.dart:135:56)
I/flutter (11696): <asynchronous suspension>
I/flutter (11696): #1      ScreenIntegrationTestGroups.testConcreteNumberFeature(app_feature_groups.dart:55:9)
I/flutter (11696): <asynchronous suspension>
I/flutter (11696): #2      ScreenIntegrationTestGroups.testEndToEndUsing (app_feature_groups.dart:37:9)
I/flutter (11696): <asynchronous suspension>
I/flutter (11696): #3      main.<anonymous closure> (app_features.dart:35:11)
I/flutter (11696): <asynchronous suspension>
I/flutter (11696): #4      testWidgets.<anonymous closure>.<anonymous closure> (package:flutter_test/src/widget_tester.dart:170:15)
I/flutter (11696): <asynchronous suspension>
I/flutter (11696): #5      TestWidgetsFlutterBinding._runTestBody (package:flutter_test/src/binding.dart:806:5)
I/flutter (11696): <asynchronous suspension>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant