Table Has Row

Le's pick a random UUID from the list and confirm the row is present.

<table class="table table-bordered">
const uuids = ['A550', 'C070', 'K999', 'T809', 'M440']
// pick one of the random ids using Lodash _.random
const randomIndex = Cypress._.random(0, uuids.length - 1)
const uuid = uuids[randomIndex]
cy.log(`picked uuid ${randomIndex}: ${uuid}`)
cy.contains('tbody tr', uuid)
  // confirm the row is at the right index position
  .should('equal', randomIndex)