File tree 1 file changed +7
-5
lines changed
frontend-react/e2e/spec/chromium-only/authenticated
1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -373,11 +373,13 @@ test.describe(
373
373
await dailyDataPage . page . locator ( ".usa-table tbody" ) . waitFor ( { state : "visible" } ) ;
374
374
} ) ;
375
375
376
- test . skip ( "downloads the file" , async ( { dailyDataPage } ) => {
377
- await setDate ( dailyDataPage . page , "#start-date" , 14 ) ;
378
- await setDate ( dailyDataPage . page , "#end-date" , 0 ) ;
379
-
380
- await applyButton ( dailyDataPage . page ) . click ( ) ;
376
+ test ( "downloads the file" , async ( { dailyDataPage, isMockDisabled } ) => {
377
+ test . skip ( ! isMockDisabled , "Mocks are ENABLED, skipping 'downloads the file' test" ) ;
378
+ // Sort by File available until, but they're in ASCENDING order
379
+ await dailyDataPage . page . getByRole ( "button" , { name : "File available until" } ) . click ( ) ;
380
+ await dailyDataPage . page . locator ( ".usa-table tbody" ) . waitFor ( { state : "visible" } ) ;
381
+ // Sort by File available until again, to get the absolute latest result
382
+ await dailyDataPage . page . getByRole ( "button" , { name : "File available until" } ) . click ( ) ;
381
383
await dailyDataPage . page . locator ( ".usa-table tbody" ) . waitFor ( { state : "visible" } ) ;
382
384
383
385
const downloadProm = dailyDataPage . page . waitForEvent ( "download" ) ;
You can’t perform that action at this time.
0 commit comments