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
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.