allure-js icon indicating copy to clipboard operation
allure-js copied to clipboard

[Cypress] Suite view - Tests are duplicated when using Allure metadata

Open harmin-parra opened this issue 5 months ago • 1 comments

Describe the bug When using Allure metadata, tests are duplicated in the Suite view.

To Reproduce Execute this cypress test

import * as allure from "allure-cypress";

describe("Ajax page", () => {

  it("Ajax verification with intercept", () =>{
    allure.epic("Web interface");
    allure.story("Ajax");
    allure.parentSuite("Web interface");
    allure.suite("Ajax");
    // rest of test
  });

  it("Ajax verification with get+should", () =>{
    allure.epic("Web interface");
    allure.story("Ajax");
    allure.parentSuite("Web interface");
    allure.suite("Ajax");
    // rest of test
  });
});

Generate Allure report Open Allure report Display the Suite view

Actual behavior Ajax page is present in the tree

Expected behavior Ajax page is not present in the tree

Screenshots 2024-09-16_20-26

Additional context NPM modules:

  • allure-cypress 3.0.0-beta.12
  • cypress 13.14.2

harmin-parra avatar Sep 16 '24 18:09 harmin-parra