Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

305
Visualizações
Interacting with the table (Cypress)

Hey guys having some issues here.

So i would like to locate first row in my table that have confirmed status then click on that row to perform another checks within that element

it('should be able to view transaction id', () => {
     Get first element in the table that have confirmed status
     Click on that row 
     Check if that expanded row have Transaction ID and value of that ID is not empty 

});

This is my table rows

static get tableRows(): Cypress.Chainable<JQuery<HTMLElement>> {
    return cy.get<HTMLElement>('tbody[role="rowgroup"] tr');
  }

Here is my status column

static get statusColumn(): Cypress.Chainable<JQuery<HTMLElement>> {
    return cy.get<HTMLElement>('tr td.cdk-cell.status.cdk-column-Status');
  }a

Another complexity is that expanded row have more td blocks

enter image description here

about 4 years ago · Santiago Gelvez
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda