I want to get different elements with names listed in an array
const List = ['Age', 'Name', 'Creation']
cy.get('*[value^=${List[0]}]').should('not.have.class','errand-cui')
cy.get('*[value^=${List[1]}]').should('not.have.class','errand-cui')
This doesn't work. Is that even possible the way I try this?