You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constlistTypes=['Static','Statistical','State Tracker','LDAP/AL']//Type selection and check if default list types existscy.get('#type_selection').click()cy.get('.select2-results div').should(function($divs){vararrayOfDivs=$divs.map(function(i,el){returnCypress.$(el).get(0).innerText//instead can be used Cypress.$(el).text()})vararrayOfDivs=arrayOfDivs.get()//convert jquery object to an array (by overwriting / redefining)expect(arrayOfDivs).to.have.ordered.members(listTypes,'Check the List Types')})
When I run the test...
Console Output:
Error: CypressError: Timed out retrying: Cannot read property 'members' of undefined
I also check if the Divs innerText order are the same as listTypes variable and saw no problem
The text was updated successfully, but these errors were encountered:
Test code:
When I run the test...
I also check if the Divs innerText order are the same as listTypes variable and saw no problem
The text was updated successfully, but these errors were encountered: