allure-framework / allure-js

Allure integrations for JavaScript test frameworks
https://allurereport.org/
Apache License 2.0
227 stars 123 forks source link

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

Open harmin-parra opened 2 months ago

harmin-parra commented 2 months ago

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:

delatrie commented 2 months ago

Hi, @harmin-parra That will be fixed as part of #1068