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

174
Views
Undefined no es iterable (no se puede leer la propiedad Symbol(Symbol.iterator)) en cypress

` it.only("sugerir un precio", () => {

 const suggestedBidAmount = Math.floor(Math.random() * maxval) + minval; const vehicleIdSuggestedPrice = "d42f516a867590633dd8a82cb2563437"; const platformIdSuggestPrice = "xxxxx"; cy.request({ method: "POST", url: Cypress.env("apiHostForEndpoints") + "/suggest-price", headers: { Authorization: Cypress.env("token"), "content-type": Cypress.env("contentType"), }, body: { id: vehicleIdSuggestedPrice, bid: suggestedBidAmount, auctionPlatformId: platformIdSuggestPrice, auctionPlatformUserId: platformUserId, }, failOnStatusCode: false, }).then((res) => { //Assertion for one by one expect(res.status).to.eq(200); expect(res.body.suggestedPrices[0].auctionPlatformVehicleId).to.be.equal( vehicleIdSuggestedPrice ); expect(res.body.suggestedPrices[0].status).contains("pending"); expect(res.body.suggestedPrices[0].amount).to.be.within(minval, maxval); expect(res.body.suggestedPrices[0].auctionPlatformId).contains( platformIdSuggestPrice ); // Assertion in one time for (const index of res.body.suggestedPrices) { expect(res.body.suggestedPrices[index].amount).to.be.within( minval, maxval ); } assert .isNotNull(res.amount, "is not null") .and.isNotNull(res.body.id, "is not null") .and.isNotNull(res.body.createdAt, "is not null"); });

}); `

¿Puede indicar el motivo de este fallo? Agregué mi código. Entonces, como se ve desde sc, todas las afirmaciones están pasando pero dan un error de: Indefinido no es iterable (no se puede leer la propiedad Símbolo (Símbolo. iterador))

gracias ingrese la descripción de la imagen aquí ¡tú!

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