Skip to content
6 changes: 3 additions & 3 deletions .github/workflows/SDK-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
6 changes: 3 additions & 3 deletions sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
4 changes: 2 additions & 2 deletions sdk/sdkLocal.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down