1

i wrote an integration test by integration test package with flutter. but my app need to grant location permission, and it show native pop up message to allow or deny i want to click on allow button by automated test using integration test package

i tried to search about this issue but it doesn't exist
this image for message : https://i.stack.imgur.com/HmRBS.jpg

can i click on native element by this kind of test ?

SABANTO
  • 1,316
  • 9
  • 24
congrat
  • 11
  • 3

1 Answers1

0

No you can't. Integration tests can't interact with native components or other applications.

Only way to click through it is to do it manually. Or allow it beforehand. Solution here