@@ -291,10 +291,10 @@ describe("dashboard widget edit", () => {
291291 // Layout flag tests
292292 // -------------------------------------------------------------------------
293293
294- test ( "applies --x and --y layout flags to existing widget" , async ( ) => {
294+ test ( "applies --col and --row layout flags to existing widget" , async ( ) => {
295295 const { context } = createMockContext ( ) ;
296296 const func = await editCommand . loader ( ) ;
297- await func . call ( context , { json : false , index : 0 , x : 4 , y : 3 } , "123" ) ;
297+ await func . call ( context , { json : false , index : 0 , col : 4 , row : 3 } , "123" ) ;
298298
299299 const body = updateDashboardSpy . mock . calls [ 0 ] ?. [ 2 ] ;
300300 const edited = body . widgets [ 0 ] ;
@@ -310,7 +310,7 @@ describe("dashboard widget edit", () => {
310310 const func = await editCommand . loader ( ) ;
311311 await func . call (
312312 context ,
313- { json : false , index : 1 , x : 0 , width : 6 , height : 4 } ,
313+ { json : false , index : 1 , col : 0 , width : 6 , height : 4 } ,
314314 "123"
315315 ) ;
316316
@@ -332,14 +332,14 @@ describe("dashboard widget edit", () => {
332332 expect ( edited . layout ) . toEqual ( { x : 0 , y : 0 , w : 2 , h : 1 } ) ;
333333 } ) ;
334334
335- test ( "throws ValidationError for x out of range" , async ( ) => {
335+ test ( "throws ValidationError for col out of range" , async ( ) => {
336336 const { context } = createMockContext ( ) ;
337337 const func = await editCommand . loader ( ) ;
338338 const err = await func
339- . call ( context , { json : false , index : 0 , x : 6 } , "123" )
339+ . call ( context , { json : false , index : 0 , col : 6 } , "123" )
340340 . catch ( ( e : Error ) => e ) ;
341341 expect ( err ) . toBeInstanceOf ( ValidationError ) ;
342- expect ( err . message ) . toContain ( "--x " ) ;
342+ expect ( err . message ) . toContain ( "--col " ) ;
343343 } ) ;
344344
345345 test ( "throws ValidationError for negative width" , async ( ) => {
@@ -352,8 +352,8 @@ describe("dashboard widget edit", () => {
352352 expect ( err . message ) . toContain ( "--width" ) ;
353353 } ) ;
354354
355- test ( "throws ValidationError when --x overflows with fallback width on layoutless widget" , async ( ) => {
356- // Widget without layout uses FALLBACK_LAYOUT (w=3), so --x 4 → 4+3=7 > 6
355+ test ( "throws ValidationError when --col overflows with fallback width on layoutless widget" , async ( ) => {
356+ // Widget without layout uses FALLBACK_LAYOUT (w=3), so --col 4 → 4+3=7 > 6
357357 getDashboardSpy . mockResolvedValueOnce ( {
358358 ...sampleDashboard ,
359359 widgets : [
@@ -377,17 +377,17 @@ describe("dashboard widget edit", () => {
377377 const { context } = createMockContext ( ) ;
378378 const func = await editCommand . loader ( ) ;
379379 const err = await func
380- . call ( context , { json : false , index : 0 , x : 4 } , "123" )
380+ . call ( context , { json : false , index : 0 , col : 4 } , "123" )
381381 . catch ( ( e : Error ) => e ) ;
382382 expect ( err ) . toBeInstanceOf ( ValidationError ) ;
383383 expect ( err . message ) . toContain ( "overflows the grid" ) ;
384384 } ) ;
385385
386- test ( "throws ValidationError when x + width overflows grid" , async ( ) => {
386+ test ( "throws ValidationError when col + width overflows grid" , async ( ) => {
387387 const { context } = createMockContext ( ) ;
388388 const func = await editCommand . loader ( ) ;
389389 const err = await func
390- . call ( context , { json : false , index : 0 , x : 4 , width : 4 } , "123" )
390+ . call ( context , { json : false , index : 0 , col : 4 , width : 4 } , "123" )
391391 . catch ( ( e : Error ) => e ) ;
392392 expect ( err ) . toBeInstanceOf ( ValidationError ) ;
393393 expect ( err . message ) . toContain ( "overflows the grid" ) ;
0 commit comments