Skip to content

Commit

Permalink
Fix app finder (#1117)
Browse files Browse the repository at this point in the history
* pick fileName based on cap object

* 8.4.7-rc.28
  • Loading branch information
saikrishna321 authored May 17, 2024
1 parent 9cba07d commit 3c5d3d2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "appium-device-farm",
"version": "8.4.7-rc.27",
"version": "8.4.7-rc.28",
"description": "An appium 2.0 plugin that manages and create driver session on available devices",
"main": "./lib/src/main.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/CapabilityManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ function deleteAlwaysMatch(caps: ISessionCapability, capabilityName: string) {

async function findAppPath(caps: any) {
if (caps.firstMatch[0]['df:skipReport']) return;
const fileName = caps.alwaysMatch['appium:app'] || caps.firstMatch[0]['appium:app'];
const fileName = _.has(caps, 'alwaysMatch') ? caps.alwaysMatch['appium:app'] : caps.firstMatch[0]['appium:app'];
if (fileName?.startsWith('file')) {
const appInfo: any = await prisma.appInformation.findFirst({
where: { uploadedFileName: fileName as string },
Expand Down

0 comments on commit 3c5d3d2

Please sign in to comment.