Jay Banker
Jay Banker

Reputation: 11

Authorize camera access in integration testing with flutter integration_test package

I want to test Add Picture (using camera) feature for my app using integration_test package for app. When app tries to open a camera it asks for camera permission and I could not find a way to tap allow permission as its a system dialog.

I am looking for two solution.

1 - Find a way to control System dialog so I can tap allow button using Widget Tester. 2 - I want to set a all permission when I start the app for Testing. Please note that I want to do only for testing.

Upvotes: 1

Views: 1222

Answers (1)

Jakub Kořenek
Jakub Kořenek

Reputation: 33

as of now integration test can't interact with native popups and other application.

But solution to this problem was given here

Upvotes: 1

Related Questions