-
Notifications
You must be signed in to change notification settings - Fork 69
Add tags #737
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
base: master
Are you sure you want to change the base?
Add tags #737
Conversation
16528b9 to
08b77da
Compare
✅ Component tests succeed
|
✅ E2E tests succeed
|
commit: |
|
I have a suggestion regarding tags visuals. Here's why I think the second variant is better:
Since I'm providing this feedback this late — which I am sorry for — I've implemented this redesign myself in this commit: 27ba464. Feel free to cherry pick. Should be mostly ready, you may check some edge cases like overflows by width, but other than that, should be all good. If you have some suggestion regarding this redesign, I'd be glad to discuss them! |
shadowusr
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A great additions, looking forward for this to be merged! 🔥
Really liked this contribution, and it's nice that you've implemented e2e tests for this feature! But I think it would be nice to fix aforementioned issues before proceeding.
| return this._duration; | ||
| } | ||
|
|
||
| get tags(): TestTag[] { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't see no reason for this to be a getter in this class, let alone public. All these adapters ideally should not implement anything beyond the ReporterTestResult interface.
I'd just move this logic to some extractTags helper and call it from attachments getter.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
| return list; | ||
| } | ||
|
|
||
| get attachments(): Attachment[] { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How hard would it be to do the same in the playwright adapter? It would be really nice to have both tools working with tags and probably it's not too time consuming to implement
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It won't be very fast
| tags.list.map((tag: TestTag) => ( | ||
| <Tooltip | ||
| key={tag.title} | ||
| content={tag.dynamic && 'Dynamic tag'} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMO "Dynamic tag" doesn't explain what exactly is different with this tag. I'd leave a more detailed note, something along the lines of:
Tag was added via
browser.addTag()command. Such tags can't be used with--tagfiltering in CLI.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
fad7b13 to
fc88019
Compare
fc88019 to
a3c8db9
Compare


No description provided.