@@ -36,19 +36,6 @@ describe('Example 12: Localization (i18n)', () => {
3636 . each ( ( $child , index ) => expect ( $child . text ( ) ) . to . eq ( fullEnglishTitles [ index ] ) ) ;
3737 } ) ;
3838
39- it ( 'should have some metrics shown in the grid footer' , ( ) => {
40- const now = new Date ( ) ;
41- const dateFormatted = moment ( now ) . format ( 'YYYY-MM-DD, hh:mm a' ) ;
42-
43- cy . get ( '#slickGridContainer-grid12' )
44- . find ( '.slick-custom-footer' )
45- . find ( '.right-footer' )
46- . should ( $span => {
47- const text = removeExtraSpaces ( $span . text ( ) ) ; // remove all white spaces
48- expect ( text ) . to . eq ( `Last Update ${ dateFormatted } | 1500 of 1500 items` ) ;
49- } ) ;
50- } ) ;
51-
5239 it ( 'should filter certain tasks with the word "ask 1" and expect filter to use contain/include text' , ( ) => {
5340 const tasks = [ 'Task 1' , 'Task 10' , 'Task 11' , 'Task 12' ] ;
5441
@@ -281,6 +268,19 @@ describe('Example 12: Localization (i18n)', () => {
281268 . contains ( 'Task 4' ) ;
282269 } ) ;
283270
271+ it ( 'should have some metrics shown in the grid footer' , ( ) => {
272+ const now = new Date ( ) ;
273+ const dateFormatted = moment ( now ) . format ( 'YYYY-MM-DD, hh:mm a' ) ;
274+
275+ cy . get ( '#slickGridContainer-grid12' )
276+ . find ( '.slick-custom-footer' )
277+ . find ( '.right-footer' )
278+ . should ( $span => {
279+ const text = removeExtraSpaces ( $span . text ( ) ) ; // remove all white spaces
280+ expect ( text ) . to . eq ( `Last Update ${ dateFormatted } | 447 of 1500 items` ) ;
281+ } ) ;
282+ } ) ;
283+
284284 it ( 'should scroll back to the top and expect to see "Task 1497" still selected' , ( ) => {
285285 cy . get ( '#slickGridContainer-grid12' ) . as ( 'grid12' ) ;
286286
0 commit comments