allure-framework / allure-framework/allure-js
Playwright test shown twice when subSuite is used
- Dominant language
- TypeScript
- Stars
- 281
- Forks
- 137
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 13
Description
**Describe the bug**
Allure report for Playwright tests shows same test twice when subSuite annotation is used
**To Reproduce**
Steps to reproduce the behavior:
1- my test has the following test suite name:
`test.describe('test describe title - Playwright @test', () => {`
2- I have the following annotations:
```
allure.suite("suite title - Allure")
allure.subSuite("subsuite title - Allure")
```
3- I have the following setting in `playwright.config.ts`:
```
[
'allure-playwright',
{
detail: true,
outputFolder: 'allure-results',
suiteTitle: false,
},
]
```
4- in test report under the suites, I can see both the subsuite title from Allure annotation and test describe title from Playwright itself.
**Expected behavior**
Not to show test describe from Playwright when using subsuites.
Not to show same test twice.
**Additional Info**
"allure-playwright": "^2.0.0-beta.19",
**Screenshots**

As you can see, report showing two tests here. One with subsuite and one with test describe title, while I only have one test.
Contributor guide
Research direction
Reproduce the report with the shown test.describe title, allure.suite and allure.subSuite annotations, and the options in playwright.config.ts, using allure-playwright 2.0.0-beta.19 or the current version. Inspect how the Playwright suite title and Allure subSuite are represented; done means one test appears under the intended suite without the duplicate Playwright describe entry.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- playwright, typescript
- Domain
- testing
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100