monocart-reporter icon indicating copy to clipboard operation
monocart-reporter copied to clipboard

[Bug] Selecting a tag in the dropdown of the search box does not add the tag to the search box, it adds the text of the tag

Open edumserrano opened this issue 6 months ago • 1 comments

Describe the bug Selecting a tag in the dropdown of the search box does not add the tag to the search box, it adds the text of the tag. Meaning what is added does not start with "@" char.

To Reproduce

  • Version: 2.6.3
  • Node Version: 20.16.0
  • Have you tried the latest version (including node), and does the issue still exist? yes
  • Steps to reproduce the actual behavior:
  1. Create a Playwright test with a tag. I used the "latest" way to create tags which is to use the testDetails.Tag array instead of adding the tag to the test name.
  2. Run the test to generate the reporter with monocart-reporter.
  3. Open the report.
  4. Go to the search box, click on it and select one of the tags from the dropdown.
  5. The selected tag gets added to the input but without the "@" char at start which means it doesn't filter by the tag it just searches for the tag's text.

Expected behavior After selecting a tag from the dropdown of the search box it should add it to the search box starting with the "@" char so that the filter is performed on the tag and not the text of the tag.

Errors or Screenshots Here I have two tags: image

Selecting the "Console" tag results in searching for the tag's text: image

But what it should do is search for the tag itself: image

edumserrano avatar Aug 09 '24 11:08 edumserrano