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

103
Views
CucumberJS no lee objetos pasados como parámetros a una función

import { createAccount } desde "../specs/AccountUtils";

A continuación se muestra el Objeto:

 const fields = ["field1", "field2"]; const accountDetails = { type: "School", name: Utils.create_UUID("abc_"), fieldValues: fields };

Y la definición de paso que pasa ese objeto como param.

 Given(/^should create an account$/,{timeout: 80 * 1000}, function () { createAccount(accountDetails); });

Esta función createAccount no está definida en una clase sino en un archivo js como el siguiente:

 export function createAccount(accountDetails) { return () => { browser.retryIfFails(() => { HomePage.goToPage("AccountsPage"); AccountsPage.newTracker(accountDetails); }); }; }

esta función createAccount(accountDetails); no se ejecuta porque el parámetro está fuera de contexto createAccount(accountDetails);

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!