Skip to content

Latest commit

 

History

History
61 lines (45 loc) · 1.56 KB

README.md

File metadata and controls

61 lines (45 loc) · 1.56 KB

smartui-figma-web-cli-sample

Steps to run:

  1. Please clone the following sample Github repo (https://github.com/LambdaTest/smartui-figma-web-cli-sample/).
git clone https://github.com/LambdaTest/smartui-figma-web-cli-sample
  1. Install the node modules using the command:
npm i
  1. Configure your project token and Figma token
  • Setup your project token show in the SmartUI app after, creating your project.
export PROJECT_TOKEN="123456#1234abcd-****-****-****-************"
set PROJECT_TOKEN="123456#1234abcd-****-****-****-************"
export FIGMA_TOKEN="123456#1234abcd-****-****-****-************"
set FIGMA_TOKEN="123456#1234abcd-****-****-****-************"
  1. Create your figma baseline
npx smartui upload-figma-web designs.json --buildName=FigmaBaseline1  
  1. Execute your functional test script (Selenium Nodejs in this sample)
npx smartui --config web-config.json exec --buildName=web-build -- node figma-web-local.js