Skip to content

Updates the CI workflow steps #28

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 11 commits into
base: main
Choose a base branch
from
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