I wrote the code like this but I could get until 13 items only, after that it's not going for next elements. I could see the next elements when I scroll down in dropdown and it goes on... I am not sure how this works, but I think its due to the behavior of bindings in HTML.
Please can someone help to get all the elements or any other way to test this in Cypress?
cy.visit('https://dev.wholesoftmarket.com/account/signup')
cy.get('span.ng-tns-c381-0').contains('Account Name').click()
cy.wait(15000)
cy.get('p-dropdownitem > li > div').each(($ele, i)=>{
cy.wrap($ele).invoke('text').then((text)=>{
cy.log(text)
expect(text).to.equal(accoun_Data.dropdowntext1[i])
})
})
