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

223
Views
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 answers
Answer question

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 Report
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!