Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[allure-cypress] There is no nesting of test steps in the report #1247

Open
kalcefer opened this issue Feb 7, 2025 · 0 comments
Open

[allure-cypress] There is no nesting of test steps in the report #1247

kalcefer opened this issue Feb 7, 2025 · 0 comments

Comments

@kalcefer
Copy link

kalcefer commented Feb 7, 2025

Describe the bug
I am creating a step structure consisting of a main step and 4 nested sub-steps. But in the report, the second and subsequent steps are outside the main step.

To Reproduce

it("sample test", () => {
  cy.visit("/");
  allure.step("MAIN STEP", () => {
    allure.step("SUB STEP 1", () => {
      cy.log("before");
      cy.wait(200);
    });
    allure.step("SUB STEP 2", () => {
      cy.clearLocalStorage();
    });
    cy.wait(200);
    allure.step("SUB STEP 3", () => {
      cy.reload();
    });
    allure.step("SUB STEP 4", () => {
      cy.log("after");
    });
  });
});

Expected behavior
I expect all the sub-steps to be nested in the main step.

Screenshots

Image

Desktop (please complete the following information):

  • windows 10 or Ubuntu 20.04
  • "allure-commandline": "^2.32.2",
  • "allure-cypress": "^3.1.0",
  • "allure-js-commons": "^3.1.0",
  • "cypress": "^13.17.0"

Additional context

I have created a test repository to reproduce this error. https://github.com/kalcefer/allure-js-step/tree/master
cypress run
allure generate --clean
allure open

@kalcefer kalcefer changed the title There is no nesting of test steps in the report [allure-cypress] There is no nesting of test steps in the report Feb 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant