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

227
Views
tipo de retorno de elementos de colección ciprés

Hola chicos, a veces aparecen algunos mensajes de error y estoy tratando de devolver una colección de elementos que especifico, sin embargo, se queja con lo siguiente, por lo que mi pregunta es cómo obtener una lista de elementos en cypress y asignarle el tipo suficiente.

 Type 'Chainable<HTMLAllCollection>' is not assignable to type 'Chainable<JQuery<HTMLAllCollection>>'. Types of property 'and' are incompatible. Type 'Chainer<HTMLAllCollection>' is not assignable to type 'Chainer<JQuery<HTMLAllCollection>>'. Types of parameters 'value' and 'value' are incompatible. Type 'JQuery<HTMLAllCollection>' is missing the following properties from type 'HTMLAllCollection': item, namedIte static get errorMessages(): Cypress.Chainable<JQuery<HTMLAllCollection>> { const arrayOfElements = cy.get<HTMLAllCollection>('app-error'); return arrayOfElements; }

ingrese la descripción de la imagen aquí

about 4 years ago · Santiago Gelvez
1 answers
Answer question

0

Estás escribiendo es inconsistente: la función se declara para devolver un Chainable<JQuery<HTMLAllCollection>> pero el tipo real del objeto devuelto es Chainable<HTMLAllCollection> . Si soluciona esta incoherencia, es posible que se resuelva su problema.

 static get errorMessages(): Cypress.Chainable<JQuery<HTMLAllCollection>> { return cy.get<JQuery<HTMLAllCollection>>('app-error'); }
about 4 years ago · Santiago Gelvez 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!