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

[Feature] Add option to hide tags from test report #17375

Open
azad-derakhshani-GS opened this issue Sep 15, 2022 · 2 comments
Open

[Feature] Add option to hide tags from test report #17375

azad-derakhshani-GS opened this issue Sep 15, 2022 · 2 comments
Labels
feature-test-runner Playwright test specific issues P3-collecting-feedback

Comments

@azad-derakhshani-GS
Copy link
Contributor

When having test cases inside a test.describe() block, the test titles can become quite long in the test report, which leads to truncation.

image

An easy way to alleviate this would be to be able to hide the tags from the test report.
The only purpose of the tags is to be able to run certain test cases via --grep from the command line, so there's no need to have them clutter up the test report.

Therefore I would suggest a feature that allows you to hide tags from test reports via the playwright.config.


Of course another way to approach this would be to just widen the design of the test case view of the test report as they currently don't fully utilize the free space on the page.

@mxschmitt mxschmitt added the feature-test-runner Playwright test specific issues label Sep 15, 2022
@vitalets
Copy link
Contributor

vitalets commented Apr 12, 2023

Maybe add tags via decorators? For example:

import { createTag } from '@playwright/test';

const fast = createTag('fast');

@fast
test('Test login page', async ({ page }) => {
  // ...
});

Created a separate issue for that proposal #22357

@gskierk
Copy link

gskierk commented May 20, 2023

There are colorful labels rendered near the test title in the HTML report right now, so I believe the tags from the title could be automatically removed. The same could also apply to test.describe block as the issue #22830 seems to be solved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-test-runner Playwright test specific issues P3-collecting-feedback
Projects
None yet
Development

No branches or pull requests

5 participants