@@ -51,24 +51,24 @@ context('Core', () => {
5151 cy . swiperPage ( ) ;
5252 cy . initSwiper ( ) . as ( 'swiper' ) ;
5353 } ) ;
54- it ( 'should slide next' , function ( ) {
54+ it ( 'should slide next' , function slideNext ( ) {
5555 this . swiper . slideNext ( ) ;
5656 cy . getSlideContains ( 'Slide 2' ) . should ( 'have.class' , 'swiper-slide-active' ) ;
5757 } ) ;
58- it ( 'should slide prev' , function ( ) {
58+ it ( 'should slide prev' , function slidePrev ( ) {
5959 this . swiper . slideNext ( ) ;
6060 this . swiper . slidePrev ( ) ;
6161 cy . getSlideContains ( 'Slide 1' ) . should ( 'have.class' , 'swiper-slide-active' ) ;
6262 } ) ;
63- it ( 'should slide to slide 3' , function ( ) {
63+ it ( 'should slide to slide 3' , function slideTo3 ( ) {
6464 this . swiper . slideTo ( 2 ) ;
6565 cy . getSlideContains ( 'Slide 3' ) . should ( 'have.class' , 'swiper-slide-active' ) ;
6666 } ) ;
6767 // it('should slide to first slide when slideTo called with number bigger then slides amount', function () {
6868 // this.swiper.slideTo(14);
6969 // cy.getSlideContains('Slide 1').should('have.class', 'swiper-slide-active');
7070 // });
71- it ( 'Add slide at index' , function ( ) {
71+ it ( 'Add slide at index' , function slideTo ( ) {
7272 this . swiper . addSlide ( 1 , '<div class="swiper-slide">Add slide</div>' ) ;
7373 cy . getSlide ( 1 ) . should ( 'contain' , 'Add slide' ) ;
7474 this . swiper . addSlide ( 4 , '<div class="swiper-slide">Add slide 4</div>' ) ;
@@ -86,7 +86,7 @@ context('Core', () => {
8686 // cy.getSlide(0).should('contain', 'Add slide 2');
8787 // });
8888
89- it ( 'Add slide to the end' , function ( ) {
89+ it ( 'Add slide to the end' , function slideToEnd ( ) {
9090 this . swiper . appendSlide ( '<div class="swiper-slide">Add slide at the end</div>' ) ;
9191 cy . getSlide ( 10 ) . should ( 'contain' , 'Add slide at the end' ) ;
9292 this . swiper . appendSlide ( [
0 commit comments