@@ -260,6 +260,7 @@ describe('AA setup flow', () => {
260
260
} ) ,
261
261
aaApiCalls . getRounds ( roundMocks . singleIncomplete ) ,
262
262
aaApiCalls . getJurisdictions ,
263
+ aaApiCalls . getLastLoginByJurisdiction ( ) ,
263
264
aaApiCalls . getMapData ,
264
265
]
265
266
await withMockFetch ( expectedCalls , async ( ) => {
@@ -299,6 +300,7 @@ describe('AA setup flow', () => {
299
300
} ,
300
301
aaApiCalls . getJurisdictions ,
301
302
aaApiCalls . getRounds ( roundMocks . empty ) ,
303
+ aaApiCalls . getLastLoginByJurisdiction ( ) ,
302
304
aaApiCalls . getMapData ,
303
305
]
304
306
await withMockFetch ( expectedCalls , async ( ) => {
@@ -324,6 +326,7 @@ describe('AA setup flow', () => {
324
326
aaApiCalls . getJurisdictions ,
325
327
aaApiCalls . getContests ( contestMocks . filledTargeted ) ,
326
328
aaApiCalls . getSettings ( auditSettingsMocks . all ) ,
329
+ aaApiCalls . getLastLoginByJurisdiction ( ) ,
327
330
aaApiCalls . getMapData ,
328
331
jaApiCalls . getBallotManifestFile ( manifestMocks . empty ) ,
329
332
...jaApiCalls . uploadManifestCalls ,
@@ -332,6 +335,7 @@ describe('AA setup flow', () => {
332
335
...aaApiCalls . getJurisdictions ,
333
336
response : { jurisdictions : jurisdictionMocks . allManifests } ,
334
337
} ,
338
+ aaApiCalls . getLastLoginByJurisdiction ( ) ,
335
339
]
336
340
await withMockFetch ( expectedCalls , async ( ) => {
337
341
const { container } = render ( 'progress' )
@@ -344,7 +348,7 @@ describe('AA setup flow', () => {
344
348
let rows = screen . getAllByRole ( 'row' )
345
349
let row1 = within ( rows [ 1 ] ) . getAllByRole ( 'cell' )
346
350
expect ( row1 [ 0 ] ) . toHaveTextContent ( 'Jurisdiction One' )
347
- within ( row1 [ 1 ] ) . getByText ( 'No manifest uploaded ' )
351
+ within ( row1 [ 1 ] ) . getByText ( 'Logged in ' )
348
352
349
353
// Click on a jurisdiction name to open the detail modal
350
354
userEvent . click ( screen . getByRole ( 'button' , { name : 'Jurisdiction One' } ) )
@@ -383,6 +387,7 @@ it('finishes a round', async () => {
383
387
} ,
384
388
aaApiCalls . getContests ( contestMocks . filledTargeted ) ,
385
389
aaApiCalls . getSettings ( auditSettingsMocks . all ) ,
390
+ aaApiCalls . getLastLoginByJurisdiction ( ) ,
386
391
aaApiCalls . getMapData ,
387
392
aaApiCalls . postFinishRound ,
388
393
aaApiCalls . getRounds ( roundMocks . singleComplete ) ,
0 commit comments