Company logo
  • Empleos
  • Bootcamp
  • Acerca de nosotros
  • Para profesionales
    • Inicio
    • Empleos
    • Cursos y retos
    • Preguntas
    • Profesores
    • Bootcamp
  • Para empresas
    • Inicio
    • Nuestro proceso
    • Planes
    • Pruebas
    • Nómina
    • Blog
    • Calculadora

0

149
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('_$') 
7 months 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 empleo Planes Nuestro proceso Comercial
Legal
Términos y condiciones Política de privacidad
© 2023 PeakU Inc. All Rights Reserved.