Skip to content

How to do substeps in allure-jest? #2153

Closed Answered by baev
Discussion options

You must be logged in to vote

You can use step context (first argument of step function) for that:

await allure.step("Step 1", async (s1) => {
  await s1.step("Step 1.1", async (s11) => {
    await s2.step("Step 1.1.1", () => {
    });
    await s2.step("Step 1.1.2", ()=> {
    });
  });
});

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by yaroslavchaadaev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants