@@ -52,7 +52,6 @@ describe('UserEditor', () => {
5252 slurm_accounts : [ ] ,
5353 project_dir : null ,
5454 slurm_user : null ,
55- cache_dir : null ,
5655 ssh_host : null ,
5756 ssh_username : null ,
5857 ssh_private_key_path : null ,
@@ -80,15 +79,13 @@ describe('UserEditor', () => {
8079 resolve ( {
8180 ...initialSettings ,
8281 slurm_user : 'user' ,
83- cache_dir : '/path/to/cache/dir' ,
8482 project_dir : '/path/to/project/dir' ,
8583 } )
8684 )
8785 } ) ;
8886
8987 await user . type ( screen . getByRole ( 'textbox' , { name : 'Project dir' } ) , '/path/to/project/dir' ) ;
9088 await user . type ( screen . getByRole ( 'textbox' , { name : 'SLURM user' } ) , 'user' ) ;
91- await user . type ( screen . getByRole ( 'textbox' , { name : 'Cache dir' } ) , '/path/to/cache/dir' ) ;
9289 await user . click ( screen . getByRole ( 'button' , { name : 'Save' } ) ) ;
9390 await screen . findByText ( 'User successfully updated' ) ;
9491
@@ -99,7 +96,6 @@ describe('UserEditor', () => {
9996 slurm_accounts : [ ] ,
10097 project_dir : '/path/to/project/dir' ,
10198 slurm_user : 'user' ,
102- cache_dir : '/path/to/cache/dir' ,
10399 ssh_host : null ,
104100 ssh_username : null ,
105101 ssh_private_key_path : null ,
@@ -130,7 +126,7 @@ describe('UserEditor', () => {
130126 resolve ( {
131127 detail : [
132128 {
133- loc : [ 'body' , 'cache_dir ' ] ,
129+ loc : [ 'body' , 'project_dir ' ] ,
134130 msg : 'mocked_error' ,
135131 type : 'value_error'
136132 }
@@ -139,7 +135,7 @@ describe('UserEditor', () => {
139135 )
140136 } ) ;
141137
142- await user . type ( screen . getByRole ( 'textbox' , { name : 'Cache dir' } ) , 'xxx' ) ;
138+ await user . type ( screen . getByRole ( 'textbox' , { name : 'Project dir' } ) , 'xxx' ) ;
143139 await user . click ( screen . getByRole ( 'button' , { name : 'Save' } ) ) ;
144140 await screen . findByText ( 'mocked_error' ) ;
145141
@@ -148,9 +144,8 @@ describe('UserEditor', () => {
148144 expect . objectContaining ( {
149145 body : JSON . stringify ( {
150146 slurm_accounts : [ ] ,
151- project_dir : null ,
147+ project_dir : 'xxx' ,
152148 slurm_user : null ,
153- cache_dir : 'xxx' ,
154149 ssh_host : null ,
155150 ssh_username : null ,
156151 ssh_private_key_path : null ,
@@ -204,7 +199,6 @@ describe('UserEditor', () => {
204199 slurm_accounts : [ ] ,
205200 project_dir : null ,
206201 slurm_user : null ,
207- cache_dir : null ,
208202 ssh_host : 'localhost' ,
209203 ssh_username : 'username' ,
210204 ssh_private_key_path : 'xxx' ,
@@ -274,7 +268,6 @@ describe('UserEditor', () => {
274268 slurm_accounts : [ ] ,
275269 project_dir : null ,
276270 slurm_user : null ,
277- cache_dir : null ,
278271 ssh_host : 'localhost' ,
279272 ssh_username : 'username' ,
280273 ssh_private_key_path : '/path/to/private/key' ,
0 commit comments