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

Playwright: Publish assert steps on the reporter #1189

Open
apis3445 opened this issue Nov 15, 2024 · 0 comments
Open

Playwright: Publish assert steps on the reporter #1189

apis3445 opened this issue Nov 15, 2024 · 0 comments

Comments

@apis3445
Copy link

Is your feature request related to a problem? Please describe.

I need that the Allure HTML report doesn't include the playwright code. For this reason, I set up the details to be false.

['allure-playwright',
            {
                detail: false, 
                suiteTitle: false,

On my playwright tests all of my expect includes the description of the assertion.

await expect(bingMapsPage.geoName.locator, 'Geo name is equal to: GermanyBavariaMunich (District)').toHaveText('GermanyBavariaMunich (District)');

But this assertion description is only added when the detail is equal to true. Please add the assert descriptions with the detail = false. The only way is to add an extra step to all assertions, but it is easier that the description of the expect functions is added automatically.

Describe the solution you'd like
Add the expect description to the HTML report when the detail is set to false. This way, I don't need to wrap all expect with a test.step with the same text of the expect function.

Describe alternatives you've considered
Manually wrap the expects functions with a test.step
Add the allure code to add the step
Create a generic assert function and on this function add the test.step

Additional context

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