bahmutov / cypress-map

Cypress query commands for v12+

Home Page:https://glebbahmutov.com/blog/cypress-v12/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

add an object with names to cy.getInOrder

bahmutov opened this issue · comments

cy.getInOrder({
  h1: '[data-cy=h1]',
  h2: '[data-cy=h2]',
})
// yields an object with array elements
{
  h1: <el1>,
  h2: <el2>
}