Thanks, bahmutov. I tried using map referring your example.It gives this error. cy.get(...).should(...).map is not a function. code: cy.get("tbody tr td")
.should("have.length", 8)
.map("innerText")
.map(String)
.should("deep.equal", [
word1,
word2,
word3,
word4,
word5,
word6,
"APPROVED",
])