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

247
Visualizações
While testing a react app with webdriverio, the text "Don't Cancel" in the button of the component is captured as "Dont'T Cancel"

For automated testing a react app, we are using webdriverio. In one such test, there is a text in the button which says "Don't Cancel" wherein we test whether the text in the button is same as what is expected. During this test, webdriverio captures the text as "Don'T Cancel" whereas in the UI it is "Dont't Cancel" which leads to failure of that test case. Tried replacing the single quote with HTML entities like &39; and ' but it doesn't solve the issue. Chrome webdriver is used while testing. Why does this happen and what maybe the solution for this case?

about 4 years ago · Juan Pablo Isaza
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