From d767c6613c0ce00a058a42fbab710e7a0fab0e19 Mon Sep 17 00:00:00 2001 From: Srivishnu Ayyagari <120724250+srivishnua-lambdatest@users.noreply.github.com> Date: Mon, 19 Feb 2024 17:47:44 +0530 Subject: [PATCH 1/9] Update SDK-ci.yml Changes the step for directory change. --- .github/workflows/SDK-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/SDK-ci.yml b/.github/workflows/SDK-ci.yml index 683c346..31e9c11 100644 --- a/.github/workflows/SDK-ci.yml +++ b/.github/workflows/SDK-ci.yml @@ -25,11 +25,11 @@ jobs: - name: Install Dependencies run: | + cd sdk npm i @lambdatest/smartui-cli - name: Execute NodeJS Wrapper run: | - cd sdk npm i npx smartui --version npx smartui config:create smartui-web.json From 73bf20a06a3a6208b467550f8f13e19dcddd8f33 Mon Sep 17 00:00:00 2001 From: Srivishnu Ayyagari <120724250+srivishnua-lambdatest@users.noreply.github.com> Date: Mon, 19 Feb 2024 17:49:49 +0530 Subject: [PATCH 2/9] Update sdkLocal.js --- sdk/sdkLocal.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/sdkLocal.js b/sdk/sdkLocal.js index 23f23df..2079286 100644 --- a/sdk/sdkLocal.js +++ b/sdk/sdkLocal.js @@ -6,7 +6,7 @@ const { smartuiSnapshot } = require('@lambdatest/selenium-driver'); try { await driver.get("https://www.lambdatest.com"); - await smartuiSnapshot(driver, "Lambdatest"); + await smartuiSnapshot(driver, "Lambdatest - Home"); await driver.get("https://www.pinterest.com/pin/112801165652823604/"); await smartuiSnapshot(driver, "NYC"); } finally { From efb94bf22499a16a1e581202a4265baf7af22e86 Mon Sep 17 00:00:00 2001 From: Srivishnu Ayyagari <120724250+srivishnua-lambdatest@users.noreply.github.com> Date: Mon, 19 Feb 2024 17:50:11 +0530 Subject: [PATCH 3/9] Update sdkLocal.js --- sdk/sdkLocal.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/sdkLocal.js b/sdk/sdkLocal.js index 2079286..d90d7ce 100644 --- a/sdk/sdkLocal.js +++ b/sdk/sdkLocal.js @@ -8,7 +8,7 @@ const { smartuiSnapshot } = require('@lambdatest/selenium-driver'); await driver.get("https://www.lambdatest.com"); await smartuiSnapshot(driver, "Lambdatest - Home"); await driver.get("https://www.pinterest.com/pin/112801165652823604/"); - await smartuiSnapshot(driver, "NYC"); + await smartuiSnapshot(driver, "Pinterest - NYC"); } finally { await driver.quit(); } From b0e5e108b11f02f5e5add48131d2325a209d070e Mon Sep 17 00:00:00 2001 From: Srivishnu Ayyagari <120724250+srivishnua-lambdatest@users.noreply.github.com> Date: Mon, 19 Feb 2024 17:52:47 +0530 Subject: [PATCH 4/9] Update SDK-ci.yml --- .github/workflows/SDK-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/SDK-ci.yml b/.github/workflows/SDK-ci.yml index 31e9c11..b4bc898 100644 --- a/.github/workflows/SDK-ci.yml +++ b/.github/workflows/SDK-ci.yml @@ -26,11 +26,11 @@ jobs: - name: Install Dependencies run: | cd sdk + npm i npm i @lambdatest/smartui-cli - name: Execute NodeJS Wrapper run: | - npm i npx smartui --version npx smartui config:create smartui-web.json npx smartui --config smartui-web.json exec -- npm run smartui-cloud From d57ef5f8d531d9578839dfbc099a8ef5bbb31d0b Mon Sep 17 00:00:00 2001 From: Srivishnu Ayyagari <120724250+srivishnua-lambdatest@users.noreply.github.com> Date: Mon, 19 Feb 2024 18:05:14 +0530 Subject: [PATCH 5/9] Changes in the scripts --- sdk/package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sdk/package.json b/sdk/package.json index d1010dd..bbf43e7 100644 --- a/sdk/package.json +++ b/sdk/package.json @@ -9,8 +9,8 @@ "description": "", "main": "sdk.js", "scripts": { - "smartui-local": "smartui exec node sdkLocal.js", - "smartui-cloud": "smartui exec node sdkCloud.js" + "smartui-local": "npx smartui exec node sdkLocal.js", + "smartui-cloud": "npx smartui exec node sdkCloud.js" }, "author": "", "license": "ISC" From f801543462a23d9b1be4e19632c1fd478854aefa Mon Sep 17 00:00:00 2001 From: Srivishnu Ayyagari <120724250+srivishnua-lambdatest@users.noreply.github.com> Date: Mon, 19 Feb 2024 18:08:56 +0530 Subject: [PATCH 6/9] Changes in CI steps --- .github/workflows/SDK-ci.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/SDK-ci.yml b/.github/workflows/SDK-ci.yml index b4bc898..a9620f1 100644 --- a/.github/workflows/SDK-ci.yml +++ b/.github/workflows/SDK-ci.yml @@ -32,5 +32,4 @@ jobs: - name: Execute NodeJS Wrapper run: | npx smartui --version - npx smartui config:create smartui-web.json - npx smartui --config smartui-web.json exec -- npm run smartui-cloud + npm run smartui-cloud From f1fd07e14b849cc7a655c3fe00d6339a771228cd Mon Sep 17 00:00:00 2001 From: Srivishnu Ayyagari <120724250+srivishnua-lambdatest@users.noreply.github.com> Date: Mon, 19 Feb 2024 18:27:15 +0530 Subject: [PATCH 7/9] Changes in the scripts --- sdk/package.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sdk/package.json b/sdk/package.json index bbf43e7..82bf246 100644 --- a/sdk/package.json +++ b/sdk/package.json @@ -9,9 +9,9 @@ "description": "", "main": "sdk.js", "scripts": { - "smartui-local": "npx smartui exec node sdkLocal.js", - "smartui-cloud": "npx smartui exec node sdkCloud.js" + "smartui-local": "npx smartui exec -- node sdkLocal.js", + "smartui-cloud": "npx smartui exec -- node sdkCloud.js" }, "author": "", "license": "ISC" -} +} \ No newline at end of file From 1b3b1c927ec778bb421239bb7ab219a219031f03 Mon Sep 17 00:00:00 2001 From: Srivishnu Ayyagari <120724250+srivishnua-lambdatest@users.noreply.github.com> Date: Mon, 19 Feb 2024 18:31:46 +0530 Subject: [PATCH 8/9] Changes in the steps --- .github/workflows/SDK-ci.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/SDK-ci.yml b/.github/workflows/SDK-ci.yml index a9620f1..dd3d8c0 100644 --- a/.github/workflows/SDK-ci.yml +++ b/.github/workflows/SDK-ci.yml @@ -31,5 +31,4 @@ jobs: - name: Execute NodeJS Wrapper run: | - npx smartui --version npm run smartui-cloud From f6ae76d3f4c1c05b17d5c793d773901176ccf8c2 Mon Sep 17 00:00:00 2001 From: Srivishnu Ayyagari <120724250+srivishnua-lambdatest@users.noreply.github.com> Date: Mon, 19 Feb 2024 18:32:50 +0530 Subject: [PATCH 9/9] Changes in steps --- .github/workflows/SDK-ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/SDK-ci.yml b/.github/workflows/SDK-ci.yml index dd3d8c0..b5cdbaa 100644 --- a/.github/workflows/SDK-ci.yml +++ b/.github/workflows/SDK-ci.yml @@ -31,4 +31,6 @@ jobs: - name: Execute NodeJS Wrapper run: | + cd sdk + npx smartui --version npm run smartui-cloud