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

235
Vistas
Testing via Jasmine - new line after each step

I am new to the Jasmine library.

My aim is to print all the title of each step ("it") even if it passes. Moreover, I would like to write each step in a new line.

How do I do this?

 it('type manager id ', async() => {
    await useful.clickAndWait(page, confEditOrder.openSaleToEdit, confMWpos.swipeCardUsrContinue);
    await sleep.sleep(confUtility.levelWait.selectorAppears);
    isAppear = await useful.isExist(page, confMWpos.swipeCardUsrContinue);
    await ta.inputSwipeCard.setText(confSeting.password.shiftsManager[useful.environments().station]);
    expect("Swipe card is opening: true").toBe(`Swipe card is opening: ${isAppear}`);
});
it('open menu ', async() => {
    // {
    // debugger;
    await useful.clickAndWait(page, confMWpos.swipeCardUsrContinue, confEditOrder.saveCustomer);
    if (customer.subService == "delivery")
        await useful.click(page, confEditOrder.saveCustomer);
    isAppear = await useful.isExist(page, confEditOrder.dealsButton);
    expect("menu is opening: true").toBe(`menu is opening: ${isAppear}`);
    // }
});

My output is

.F

And I wish to change that to be:

type manager id - passed
open menu - failed

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

If you would like the tests to run in order, you need to change the random boolean.

Check out this exchange: https://sqa.stackexchange.com/q/36601

Although, to ensure the reliability of the unit tests, it is preferable to make the unit tests run in random order to ensure they don't rely on the order they run in.

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