• Empleos
  • Sobre nosotros
  • profesionales
    • Inicio
    • Empleos
    • Cursos y retos
  • empresas
    • Inicio
    • Publicar vacante
    • Nuestro proceso
    • Precios
    • Evaluaciones
    • Nómina
    • Blog
    • Comercial
    • Calculadora de salario

0

256
Vistas
Check space after writing text js

my selector is name="One"

value="textwritinginfield"

what I am doing :

  1. adding " " space after my text
  2. reloading page
  3. checking if space at the end was removed

i used expect("[name=One]").to.have.value('_$')

result:

you attempted to make a chai jquery assertion on object that is neither a DOM object or a jQuery object.

the chai j-query assertion you used was value..

cy.get(#selector).type(" ", {force: true}) 
cy.get(#otherButton).click()
cy.reload() 
expect(#selector).to.have.value('_$') 
about 3 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Nuestro proceso Comercial
Legal
Términos y condiciones Política de privacidad
© 2025 PeakU Inc. All Rights Reserved.

Andres GPT

Recomiéndame algunas ofertas
Necesito ayuda