Skip to content

Commit

Permalink
Fixing metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
rishigupta1599 committed Nov 16, 2023
1 parent 5a9a8ff commit 6b279be
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/webdriver-utils/src/providers/automateProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,8 @@ export default class AutomateProvider extends GenericProvider {
sha: tileData.sha.split('-')[0] // drop build id
}));
}

return { tiles: tiles, domInfoSha: tileResponse.dom_sha };
const metadata = {};
return { tiles: tiles, domInfoSha: tileResponse.dom_sha, metadata: metadata };
}

async browserstackExecutor(action, args) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -247,11 +247,12 @@ describe('AutomateProvider', () => {
sha: 'cde'
})
],
domInfoSha: 'def'
domInfoSha: 'def',
metadata: {}
};
expect(browserstackExecutorSpy).toHaveBeenCalledTimes(1);
expect(executeScriptSpy).toHaveBeenCalledTimes(1);
expect(Object.keys(res).length).toEqual(2);
expect(Object.keys(res).length).toEqual(3);
expect(res.domInfoSha).toBe('def');
expect(res.tiles.length).toEqual(2);
expect(res.tiles[0]).toBeInstanceOf(Tile);
Expand Down

0 comments on commit 6b279be

Please sign in to comment.