fix(tags): show no tooltip on a tag badge without a description
The badge bound its tooltip to the description directly, so a tag with an empty description popped up an empty tooltip.
This commit is contained in:
1 parent
7fd54fe84a
commit
a7b07db034
3 files changed
+14
-1
No files matched your search
@@ -456,6 +456,13 @@ public class BoardViewModelTests
|
||||
Assert.AreEqual(1, fixture.Repository.GetTags().Count);
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
public void TagBadgeShowsNoTooltipForAnEmptyDescription()
|
||||
{
|
||||
Assert.IsNull(new TagBadgeViewModel(new TagModel(1, "bug", new RgbColor(1, 2, 3), "")).ToolTip);
|
||||
Assert.AreEqual("why", new TagBadgeViewModel(new TagModel(1, "bug", new RgbColor(1, 2, 3), "why")).ToolTip);
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
public void TagPickerHidesAssignedTagsAndFiltersCaseInsensitively()
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user