@@ -40,7 +40,7 @@ describe('JobsList', () => {
4040 const filters = result . getAllByRole ( 'combobox' ) ;
4141
4242 const statusFilter = filters [ 0 ] ;
43- verifyOptions ( statusFilter , [ '' , 'running ' , 'done' , 'failed' , 'submitted '] ) ;
43+ verifyOptions ( statusFilter , [ '' , 'submitted ' , 'done' , 'failed' ] ) ;
4444 const projectFilter = filters [ 1 ] ;
4545 verifyOptions ( projectFilter , [ '' , '1' , '2' ] ) ;
4646 const workflowFilter = filters [ 2 ] ;
@@ -80,7 +80,7 @@ describe('JobsList', () => {
8080 await clearFilters ( result ) ;
8181
8282 // Filter by job status
83- await fireEvent . change ( statusFilter , { target : { value : 'running ' } } ) ;
83+ await fireEvent . change ( statusFilter , { target : { value : 'submitted ' } } ) ;
8484 table = result . getByRole ( 'table' ) ;
8585 expect ( table . querySelectorAll ( 'tbody tr' ) . length ) . eq ( 1 ) ;
8686 expect ( table . querySelectorAll ( 'tbody tr td' ) [ 6 ] . textContent ) . eq ( 'input3' ) ;
@@ -89,27 +89,27 @@ describe('JobsList', () => {
8989 // Verify default sorting
9090 table = result . getByRole ( 'table' ) ;
9191 expect ( table . querySelectorAll ( 'tbody tr:nth-child(1) td' ) [ 2 ] . textContent ) . eq (
92- '10/30/2023, 9 :30:38 AM'
92+ '10/30/2023, 10 :30:38 AM'
9393 ) ;
9494 expect ( table . querySelectorAll ( 'tbody tr:nth-child(2) td' ) [ 2 ] . textContent ) . eq (
95- '10/30/2023, 9 :15:38 AM'
95+ '10/30/2023, 10 :15:38 AM'
9696 ) ;
9797 expect ( table . querySelectorAll ( 'tbody tr:nth-child(3) td' ) [ 2 ] . textContent ) . eq (
98- '10/30/2023, 9 :00:38 AM'
98+ '10/30/2023, 10 :00:38 AM'
9999 ) ;
100100
101101 // Sort by start date
102102 const startDateSorter = table . querySelector ( 'thead th:nth-child(3)' ) ;
103103 await fireEvent . click ( startDateSorter ) ;
104104 table = result . getByRole ( 'table' ) ;
105105 expect ( table . querySelectorAll ( 'tbody tr:nth-child(1) td' ) [ 2 ] . textContent ) . eq (
106- '10/30/2023, 9 :00:38 AM'
106+ '10/30/2023, 10 :00:38 AM'
107107 ) ;
108108 expect ( table . querySelectorAll ( 'tbody tr:nth-child(2) td' ) [ 2 ] . textContent ) . eq (
109- '10/30/2023, 9 :15:38 AM'
109+ '10/30/2023, 10 :15:38 AM'
110110 ) ;
111111 expect ( table . querySelectorAll ( 'tbody tr:nth-child(3) td' ) [ 2 ] . textContent ) . eq (
112- '10/30/2023, 9 :30:38 AM'
112+ '10/30/2023, 10 :30:38 AM'
113113 ) ;
114114 } ) ;
115115
@@ -162,14 +162,14 @@ describe('JobsList', () => {
162162 vi . useFakeTimers ( ) ;
163163 try {
164164 const jobUpdater = function ( ) {
165- return data . jobs . map ( ( j ) => ( j . status === 'running ' ? { ...j , status : 'done' } : j ) ) ;
165+ return data . jobs . map ( ( j ) => ( j . status === 'submitted ' ? { ...j , status : 'done' } : j ) ) ;
166166 } ;
167167 const result = render ( JobsList , {
168168 props : { jobUpdater }
169169 } ) ;
170170 let table = result . getByRole ( 'table' ) ;
171171 expect ( table . querySelectorAll ( 'tbody tr' ) . length ) . eq ( 3 ) ;
172- expect ( table . querySelectorAll ( 'tbody tr:nth-child(1) td' ) [ 0 ] . textContent ) . contain ( 'running ' ) ;
172+ expect ( table . querySelectorAll ( 'tbody tr:nth-child(1) td' ) [ 0 ] . textContent ) . contain ( 'submitted ' ) ;
173173 expect ( table . querySelectorAll ( 'tbody tr:nth-child(2) td' ) [ 0 ] . textContent ) . contain ( 'failed' ) ;
174174 expect ( table . querySelectorAll ( 'tbody tr:nth-child(3) td' ) [ 0 ] . textContent ) . contain ( 'done' ) ;
175175
0 commit comments