@@ -27,7 +27,8 @@ test.describe('Settings: Change user properties', () => {
2727 await expect ( page . getByText ( / A c c o u n t u p d a t e d / i) ) . toBeVisible ( )
2828
2929 // Verify backend
30- const info = JSON . parse ( await runOcc ( [ 'user:info' , '--output=json' , user . userId ] ) )
30+ const { stdout : jsonList } = await runOcc ( [ 'user:info' , '--output=json' , user . userId ] )
31+ const info = JSON . parse ( jsonList )
3132 expect ( info ?. display_name ) . toBe ( 'John Doe' )
3233 } )
3334
@@ -68,7 +69,8 @@ test.describe('Settings: Change user properties', () => {
6869 await expect ( page . getByText ( / A c c o u n t u p d a t e d / i) ) . toBeVisible ( )
6970
7071 // Verify backend
71- const info = JSON . parse ( await runOcc ( [ 'user:info' , '--output=json' , user . userId ] ) )
72+ const { stdout : jsonList } = await runOcc ( [ 'user:info' , '--output=json' , user . userId ] )
73+ const info = JSON . parse ( jsonList )
7274 expect ( info ?. email ) . toBe ( 'mymail@example.com' )
7375 } )
7476
@@ -90,7 +92,8 @@ test.describe('Settings: Change user properties', () => {
9092 await expect ( page . getByText ( / A c c o u n t u p d a t e d / i) ) . toBeVisible ( )
9193
9294 // Verify backend
93- const info = JSON . parse ( await runOcc ( [ 'user:info' , '--output=json' , user . userId ] ) )
95+ const { stdout : jsonList } = await runOcc ( [ 'user:info' , '--output=json' , user . userId ] )
96+ const info = JSON . parse ( jsonList )
9497 expect ( info ?. quota ) . toBe ( '5 GB' )
9598 } )
9699
@@ -112,7 +115,8 @@ test.describe('Settings: Change user properties', () => {
112115 await expect ( page . getByText ( / A c c o u n t u p d a t e d / i) ) . toBeVisible ( )
113116
114117 // Verify backend (stored as bytes)
115- const info = JSON . parse ( await runOcc ( [ 'user:info' , '--output=json' , user . userId ] ) )
118+ const { stdout : jsonList } = await runOcc ( [ 'user:info' , '--output=json' , user . userId ] )
119+ const info = JSON . parse ( jsonList )
116120 expect ( info ?. quota ) . not . toBe ( 'none' )
117121 } )
118122
0 commit comments