I am working one project for E2E testing react native with Detox but find a problem. I can not mock my camera to deal with detox E2E. Some of the documentation is there but it is hard to implement once there no working stuff. Any help would be appreciated :)
The image above demonstrates how my E2E testing works. I want to take the picture from a react-native camera.
This my last code snippet
describe('Pickup', () => {
it('should change 1012 to 1023', async () => {
await element(by.id('tab_pickup')).tap();
await element(by.id('list_broadcast_pickup_0')).tap();
await element(by.id('btn_accept_request_pickup_0')).tap();
await element(by.id('btn_yes_start_pickup')).tap();
});
it('should select the camera’, async () => {
});
});