Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

111
Views
¿Cómo pruebo que el título se muestra completo y no se muestra con una línea de puntos con ciprés?

Soy nuevo en trabajar con ciprés. Quiero probar que el texto del título con cualquier longitud se muestra completamente con toda la longitud y sin puntos. ¡Probé el título como se muestra a continuación, pero aún así, no sé cómo verificar si el título con una longitud larga se muestra con puntos o no! Gracias por cualquier ayuda.

 cy.get(selectors.Content) .find(selectors.dataComponent('title')) .should('be.visible') .and('not.be.empty')
about 4 years ago · Juan Pablo Isaza
2 answers
Answer question

0

Si quieres probar que no hay puntos suspensivos, prueba

 cy.get(selectors.Content) .find(selectors.dataComponent('title')) .should('be.visible') .and('not.be.empty') cy.get(selectors.Content) .find(selectors.dataComponent('title')) .invoke('text') .should('not.contain', '...')

O más estricto,

 cy.get(selectors.Content) .find(selectors.dataComponent('title')) .invoke('text') .should(title => expect(title.endsWith('...')).to.eq(false))
about 4 years ago · Juan Pablo Isaza Report

0

Si sabes la longitud completa,

 cy.get(selectors.Content) .find(selectors.dataComponent('title')) .invoke('text') .should('have.length', 20)
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!