Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

231
Vistas
How to wrap e2e steps in function and run it from one tests?

I have more than 1000 lines of test steps in smoke test like this :

test("Smoke Test", async (t) => {
  console.log("Starting test");
// want to take out this in another class AuthStep.
  await AuthPage.setUserName("testtest@hotmail.com"); // AuthPage - page object model
  await AuthPage.setUserPassword("123456");
//end of AuthClass
  await t.expect(getUrl()).eql(authUrl);
  await t.expect(getUrl()).eql(loginUrl + "auth", { timeout: 100000 });
  await MainPage.setUserType(userName);
 ....
}

I just want to optimize this Smoke test and for example, move these steps into separate classes that will runs in the in Smoketest. How can I do it in TestCafe framework?

about 4 years 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 vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda