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

379
Views
Este error ocurrió durante un antes de cada gancho, nos saltamos las pruebas restantes en la suite actual: método POST

¿Pueden ayudarme a encontrar la solución adecuada para esto? Este caso de prueba es sobre beforeEach, que es para configurar los datos y después de configurar los datos, pruebo el otro punto final.

Me he enfrentado a problemas como los siguientes:

Mis códigos en spec.js

ingrese la descripción de la imagen aquí

 beforeEach(() => { cy.fixture("token.json").then((data) => { cy.request({ method: "POST", url: data.url + "/setup", headers: { Authorization: data.token, "content-type": "application/json", }, body: { "test-case": "base", }, failOnStatusCode: false, }).then((res) => { expect(res.status).to.eq(200); }); }); it("get a list of auctions filtered by the options passed in the body", () => { cy.fixture("token.json").then((data) => {}); cy.request({ method: "POST", url: data.url, headers: { Authorization: data.token, "content-type": "application/json", }, body: { auctionType: ["basic_auction"], statuses: ["ongoing"], }, failOnStatusCode: false, }).then((res) => { expect(res.status).to.eq(200); // assert assert.isNotNull(res.body, "is not null"); assert.isNotNull(res.body.createdAt, "is not null"); //}) }); }); });

Y tengo fixtures->token.json donde almacené Token y URL

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!