From 6b279bec494053b845fb5dca17f1db9a18a4b746 Mon Sep 17 00:00:00 2001 From: rishigupta1599 Date: Thu, 16 Nov 2023 14:56:47 +0530 Subject: [PATCH] Fixing metadata --- packages/webdriver-utils/src/providers/automateProvider.js | 4 ++-- .../webdriver-utils/test/providers/automateProvider.test.js | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/packages/webdriver-utils/src/providers/automateProvider.js b/packages/webdriver-utils/src/providers/automateProvider.js index 66f21d2b4..b3879be28 100644 --- a/packages/webdriver-utils/src/providers/automateProvider.js +++ b/packages/webdriver-utils/src/providers/automateProvider.js @@ -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) { diff --git a/packages/webdriver-utils/test/providers/automateProvider.test.js b/packages/webdriver-utils/test/providers/automateProvider.test.js index 7a51bfd2d..7661d4cb0 100644 --- a/packages/webdriver-utils/test/providers/automateProvider.test.js +++ b/packages/webdriver-utils/test/providers/automateProvider.test.js @@ -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);