diff --git a/.github/workflows/SDK-ci.yml b/.github/workflows/SDK-ci.yml index 683c346..b5cdbaa 100644 --- a/.github/workflows/SDK-ci.yml +++ b/.github/workflows/SDK-ci.yml @@ -25,12 +25,12 @@ jobs: - name: Install Dependencies run: | + cd sdk + npm i npm i @lambdatest/smartui-cli - name: Execute NodeJS Wrapper run: | cd sdk - npm i 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 diff --git a/sdk/package.json b/sdk/package.json index d1010dd..82bf246 100644 --- a/sdk/package.json +++ b/sdk/package.json @@ -9,9 +9,9 @@ "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" -} +} \ No newline at end of file diff --git a/sdk/sdkLocal.js b/sdk/sdkLocal.js index 23f23df..d90d7ce 100644 --- a/sdk/sdkLocal.js +++ b/sdk/sdkLocal.js @@ -6,9 +6,9 @@ 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"); + await smartuiSnapshot(driver, "Pinterest - NYC"); } finally { await driver.quit(); }