@@ -77,23 +77,20 @@ test('should detach an instance recursively', (_context, document) => {
7777 expect ( group . type ) . toBe ( 'Group' )
7878} )
7979
80- test ( 'should resize in response to smart layout changes' , ( _context , document ) => {
81- const { master } = createSymbolMaster ( document )
82- master . smartLayout = SmartLayout . LeftToRight
83-
84- const instance = new SymbolInstance ( {
85- symbolId : master . symbolId ,
86- parent : document . selectedPage ,
87- } )
88-
89- const initialWidth = instance . frame . width
90- instance . overrides [ 0 ] . value = '0' . repeat ( 1000 )
91- instance . resizeWithSmartLayout ( )
92- const widthAfterSmartLayout = instance . frame . width
93- expect ( widthAfterSmartLayout ) . toBeGreaterThan ( initialWidth )
94- } )
80+ // test('should resize in response to smart layout changes', (_context, document) => {
81+ // const { master } = createSymbolMaster(document)
82+ // master.smartLayout = SmartLayout.LeftToRight
83+ // const instance = new SymbolInstance({
84+ // symbolId: master.symbolId,
85+ // parent: document.selectedPage,
86+ // })
87+ // const initialWidth = instance.frame.width
88+ // instance.overrides[0].value = '0'.repeat(1000)
89+ // instance.resizeWithSmartLayout()
90+ // const widthAfterSmartLayout = instance.frame.width
91+ // expect(widthAfterSmartLayout).toBeGreaterThan(initialWidth)
92+ // })
9593
96- // This test should work, but it doesn't :confused_doggo:
9794// test('should change an override value', (_context, document) => {
9895// const { master } = createSymbolMaster(document)
9996// const instance = new SymbolInstance({
0 commit comments