@@ -41,7 +41,7 @@ describe('Example 1 - Basic Grids', { retries: 1 }, () => {
4141
4242 cy . get ( '.slick-header-menu' )
4343 . should ( 'be.visible' )
44- . children ( '.slick-header-menu-item:nth-child (4)' )
44+ . children ( '.slick-header-menu-item:nth-of-type (4)' )
4545 . children ( '.slick-header-menu-content' )
4646 . should ( 'contain' , 'Sort Descending' )
4747 . click ( ) ;
@@ -66,7 +66,7 @@ describe('Example 1 - Basic Grids', { retries: 1 }, () => {
6666
6767 cy . get ( '.slick-header-menu' )
6868 . should ( 'be.visible' )
69- . children ( '.slick-header-menu-item:nth-child (3)' )
69+ . children ( '.slick-header-menu-item:nth-of-type (3)' )
7070 . children ( '.slick-header-menu-content' )
7171 . should ( 'contain' , 'Sort Ascending' )
7272 . click ( ) ;
@@ -85,7 +85,7 @@ describe('Example 1 - Basic Grids', { retries: 1 }, () => {
8585
8686 it ( 'should hover over the "Duration" column of 2nd grid, Sort Ascending and have 2 sorts' , ( ) => {
8787 cy . get ( '#grid2' )
88- . find ( '.slick-header-column:nth-child (2)' )
88+ . find ( '.slick-header-column:nth-of-type (2)' )
8989 . trigger ( 'mouseover' )
9090 . children ( '.slick-header-menu-button' )
9191 . invoke ( 'show' )
@@ -94,7 +94,7 @@ describe('Example 1 - Basic Grids', { retries: 1 }, () => {
9494 cy . get ( '#grid2' )
9595 . find ( '.slick-header-menu' )
9696 . should ( 'be.visible' )
97- . children ( '.slick-header-menu-item:nth-child (4)' )
97+ . children ( '.slick-header-menu-item:nth-of-type (4)' )
9898 . click ( ) ;
9999
100100 cy . get ( '#grid2' )
@@ -238,7 +238,7 @@ describe('Example 1 - Basic Grids', { retries: 1 }, () => {
238238
239239 cy . get ( '#grid1' )
240240 . get ( '.slick-grid-menu:visible' )
241- . find ( 'span .close' )
241+ . find ( '.close' )
242242 . click ( { force : true } ) ;
243243
244244 cy . get ( '#grid1' )
@@ -286,7 +286,7 @@ describe('Example 1 - Basic Grids', { retries: 1 }, () => {
286286
287287 cy . get ( '#grid2' )
288288 . get ( '.slick-grid-menu:visible' )
289- . find ( 'span .close' )
289+ . find ( '.close' )
290290 . click ( { force : true } ) ;
291291
292292 cy . get ( '#grid2' )
@@ -328,7 +328,7 @@ describe('Example 1 - Basic Grids', { retries: 1 }, () => {
328328
329329 cy . get ( '#grid1' )
330330 . get ( '.slick-grid-menu:visible' )
331- . find ( 'span .close' )
331+ . find ( '.close' )
332332 . click ( { force : true } ) ;
333333
334334 cy . get ( '#grid1' )
@@ -356,7 +356,7 @@ describe('Example 1 - Basic Grids', { retries: 1 }, () => {
356356
357357 cy . get ( '.slick-columnpicker' )
358358 . find ( '.slick-columnpicker-list' )
359- . children ( 'li:nth-child (3)' )
359+ . children ( 'li:nth-of-type (3)' )
360360 . children ( 'label' )
361361 . should ( 'contain' , '% Complete' )
362362 . click ( ) ;
@@ -372,7 +372,7 @@ describe('Example 1 - Basic Grids', { retries: 1 }, () => {
372372
373373 cy . get ( '#grid2' )
374374 . get ( '.slick-columnpicker:visible' )
375- . find ( 'span .close' )
375+ . find ( '.close' )
376376 . trigger ( 'click' )
377377 . click ( ) ;
378378 } ) ;
@@ -445,7 +445,7 @@ describe('Example 1 - Basic Grids', { retries: 1 }, () => {
445445
446446 cy . get ( '#grid1' )
447447 . get ( '.slick-grid-menu:visible' )
448- . find ( 'span .close' )
448+ . find ( '.close' )
449449 . click ( { force : true } ) ;
450450 } ) ;
451451} ) ;
0 commit comments