File tree Expand file tree Collapse file tree 3 files changed +16
-1
lines changed
Expand file tree Collapse file tree 3 files changed +16
-1
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " @lambdatest/smartui-cli" ,
3- "version" : " 4.1.50 " ,
3+ "version" : " 4.1.51 " ,
44 "description" : " A command line interface (CLI) to run SmartUI tests on LambdaTest" ,
55 "files" : [
66 " dist/**/*"
Original file line number Diff line number Diff line change @@ -107,6 +107,9 @@ export function verifyFigmaWebConfig(ctx: Context) {
107107 if ( c . screenshot_names && c . screenshot_names . length > 0 && c . figma_ids && c . figma_ids . length != c . screenshot_names . length ) {
108108 throw new Error ( "Mismatch in Figma Ids and Screenshot Names in figma config" ) ;
109109 }
110+ if ( c . screenshot_viewports && c . screenshot_viewports . length > 0 && c . figma_ids && c . figma_ids . length != c . screenshot_viewports . length ) {
111+ throw new Error ( "Mismatch in Figma Ids and Screenshot Viewports in figma config" ) ;
112+ }
110113 if ( isValidArray ( c . screenshot_names ) ) {
111114 for ( const name of c . screenshot_names ) {
112115 screenshots . push ( name ) ;
Original file line number Diff line number Diff line change @@ -739,6 +739,18 @@ const FigmaWebConfigSchema: JSONSchemaType<Object> = {
739739 "type" : "string"
740740 } ,
741741 uniqueItems : false
742+ } ,
743+ "screenshot_viewports" : {
744+ "type" : "array" ,
745+ "items" : {
746+ "type" : "array" ,
747+ "items" : {
748+ "type" : "integer" ,
749+ "minimum" : 1
750+ } ,
751+ "minItems" : 1 ,
752+ "maxItems" : 2
753+ }
742754 }
743755 } ,
744756 "required" : [ "figma_file_token" , "figma_ids" ]
You can’t perform that action at this time.
0 commit comments