apache / cordova-paramedic

Apache Cordova - Paramedic
https://cordova.apache.org/
Apache License 2.0
36 stars 53 forks source link

[Appium] Running camera Appium tests locally fails because it is running the "normal tests" app #75

Open janpio opened 5 years ago

janpio commented 5 years ago

... that was built before which doesn't have a plugin, that is required for the tests to pass.


The second app build for Appium adds a plugin cordova-save-image-gallery to the app that seems to be used in the Appium tests: https://github.com/apache/cordova-paramedic/blob/d7fb51752e10440bab5814d18c51aec61fa2a5cd/lib/appium/AppiumRunner.js#L381 When using Saucelabs, this build is uploaded and then used to run the app. When running locally, the build is not installed on the device, so the previous build that is missing the plugin is used.


Workaround: Make paramedic.js install the plugin on the first build as well:

additionalPlugins.push('cordova-save-image-gallery');

around line 180 in ParamedicRunner.prototype.installPlugins