Cypress log高亮显示多个元素

Cypress log高亮显示多个元素,cypress,Cypress,我试图让Cypress.log突出显示多个元素(它们不共享任何属性)。基本上,我使用cy.contains(${desiredtext})查找文本。然后((t)=>{arr.push(t)})然后在这个命令的末尾,我希望Cypress日志对象突出显示我在arr数组中累积的所有元素 const log = Cypress.log({ $el: ???, // how do i pass in a number of elements for use here to highlight all in

我试图让Cypress.log突出显示多个元素(它们不共享任何属性)。基本上,我使用
cy.contains(${desiredtext})查找文本。然后((t)=>{arr.push(t)})
然后在这个命令的末尾,我希望Cypress日志对象突出显示我在
arr
数组中累积的所有元素

const log = Cypress.log({
$el: ???, // how do i pass in a number of elements for use here to highlight all in the arr array?
name: 'example',
message: 'example message',
})

log.snapshot()
提前感谢