11/// <reference types="cypress" />
22
33import { loginIfNeeded } from "../support/auth" ;
4- import { ApplicationsListPage } from "../pages/ApplicationDetailsPage " ;
4+ import { ApplicationsListPage } from "../pages/ApplicationsListPage " ;
55
66describe ( "Unity Login and check data from CHEFS" , ( ) => {
77 const page = new ApplicationsListPage ( ) ;
@@ -171,13 +171,12 @@ describe("Unity Login and check data from CHEFS", () => {
171171 page . switchToGrantProgram ( "Default Grants Program" ) ;
172172 } ) ;
173173
174- it ( "Tests the existence and functionality of the Submitted Date From and Submitted Date To filters " , ( ) => {
175- // Set date filters using page object methods
174+ it ( "Tests the existence and functionality of the Quick Date Range filter " , ( ) => {
175+ // Select "All time" from quick date range dropdown and verify table refreshes
176176 page
177- . setSubmittedFromDate ( "2022-01-01 ")
177+ . selectQuickDateRange ( "alltime ")
178178 . waitForTableRefresh ( )
179- . setSubmittedToDate ( page . getTodayIsoLocal ( ) )
180- . waitForTableRefresh ( ) ;
179+ . verifyQuickDateRangeValue ( "alltime" ) ;
181180 } ) ;
182181
183182 // With no rows selected verify the visibility of Filter, Export, Save View, and Columns.
@@ -196,7 +195,7 @@ describe("Unity Login and check data from CHEFS", () => {
196195 . verifyTableHasData ( )
197196 . selectMultipleRows ( [ 0 , 1 ] )
198197 . verifyActionBarExists ( )
199- . clickPaymentButton ( )
198+ . clickPaymentButtonWithWait ( )
200199 . waitForPaymentModalVisible ( )
201200 . closePaymentModal ( )
202201 . verifyPaymentModalClosed ( ) ;
0 commit comments