We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8bef6a1 commit 7304c8bCopy full SHA for 7304c8b
tests/LinkDotNet.Blog.UnitTests/Web/Features/Components/ShortBlogPostTests.cs
@@ -84,4 +84,16 @@ public void GivenBlogPostThatIsNotPublishedAndNotScheduled_ThenIndicating()
84
85
cut.Find(".draft").Should().NotBeNull();
86
}
87
+
88
+ [Fact]
89
+ public void GivenBlogPostThatIsPublished_ThenNoDraft()
90
+ {
91
+ var blogPost = new BlogPostBuilder().IsPublished(true).Build();
92
93
+ var cut = RenderComponent<ShortBlogPost>(
94
+ p => p.Add(c => c.BlogPost, blogPost));
95
96
+ cut.FindAll(".draft").Should().BeEmpty();
97
+ cut.FindAll(".scheduled").Should().BeEmpty();
98
+ }
99
0 commit comments