cancel
Showing results for 
Search instead for 
Did you mean: 

Public Archive

Ankita
New Contributor

Hi,

I want to check the functionality of Pagination in a loop, so I have used recurse function. Please find the script below and help me to troubleshoot the error "The function passed to cypress-recurse did not return a chainable instance. Did you forget the "return" command?"

 describe('pagination', () => {

                        it('To check, the pagination', () => {
                                recurse(() => {
                                        cy.get('.single-next').click(),
                                                ($next) => $next.hasclass('disabled'), {
                                                        post() {
                                                               cy.get('.single-next').click()
                                                               return;
                                                        }
                                                   
                                                }
                                    return;
                                })

                        })



                })

 

0 Likes
1 Solution
Raj_JC
Moderator
Moderator

Hi @Ankita,

I think you are in the wrong community forum. There's a thin line between Cypress, an Infineon Technologies company which provides embedded solutions and the Cypress.io which is a software company which provides testing solutions. The query you have seems to be directed at Cypress.io and here's the link to their forum: https://www.cypress.io/support

Thanks and Regards,

Raj Chaudhari

View solution in original post

0 Likes
1 Reply
Raj_JC
Moderator
Moderator

Hi @Ankita,

I think you are in the wrong community forum. There's a thin line between Cypress, an Infineon Technologies company which provides embedded solutions and the Cypress.io which is a software company which provides testing solutions. The query you have seems to be directed at Cypress.io and here's the link to their forum: https://www.cypress.io/support

Thanks and Regards,

Raj Chaudhari

View solution in original post

0 Likes