Skip to content

Commit

Permalink
Update test to consider df:options as object and also df: caps
Browse files Browse the repository at this point in the history
  • Loading branch information
saikrishna321 committed Feb 5, 2024
1 parent e897e29 commit f1c91a4
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
1 change: 0 additions & 1 deletion src/CapabilityManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,5 @@ export function getDeviceFarmCapabilities(caps: ISessionCapability) {
},
{} as Record<string, any>,
);

return _.merge(deviceFarmOptions, individualCapabilities);
}
2 changes: 1 addition & 1 deletion src/modules
1 change: 0 additions & 1 deletion src/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,6 @@ class DevicePlugin extends BasePlugin {
const sessionId = (session as CreateSessionResponseInternal).value[0];
const sessionResponse = (session as CreateSessionResponseInternal).value[1];
const deviceFarmCapabilities = getDeviceFarmCapabilities(caps);

log.info(`📱 Device UDID ${device.udid} blocked for session ${sessionId}`);
await updatedAllocatedDevice(device, {
busy: true,
Expand Down
6 changes: 4 additions & 2 deletions test/e2e/android/conf.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,10 @@ const capabilities = {
platformName: 'Android',
'appium:uiautomator2ServerInstallTimeout': '50000',
'appium:automationName': 'UIAutomator2',
'appium:build': 'DeviceFarm BuildName 2',
'appium:record_video': true,
'df:build': 'DeviceFarm BuildName 4',
'df:options': {
record_video: true,
},
'appium:app':
'https://github.com/AppiumTestDistribution/appium-demo/blob/main/VodQA.apk?raw=true',
};
Expand Down

0 comments on commit f1c91a4

Please sign in to comment.