Skip to content

Commit 06a7208

Browse files
committed
Fixed integrations test how Like button is invoked
1 parent 16c830f commit 06a7208

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/LinkDotNet.Blog.IntegrationTests/Web/Features/ShowBlogPost/ShowBlogPostPageTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public async Task ShouldAddLikeOnEvent()
3131
var likeComponent = cut.FindComponent<Like>();
3232
likeComponent.SetParametersAndRender(c => c.Add(p => p.BlogPost, publishedPost));
3333

34-
likeComponent.Find("button").Click();
34+
likeComponent.Find("span").Click();
3535

3636
var fromDb = await DbContext.BlogPosts.AsNoTracking().SingleAsync(d => d.Id == publishedPost.Id);
3737
fromDb.Likes.Should().Be(3);
@@ -55,7 +55,7 @@ public async Task ShouldSubtractLikeOnEvent()
5555
var likeComponent = cut.FindComponent<Like>();
5656
likeComponent.SetParametersAndRender(c => c.Add(p => p.BlogPost, publishedPost));
5757

58-
likeComponent.Find("button").Click();
58+
likeComponent.Find("span").Click();
5959

6060
var fromDb = await DbContext.BlogPosts.AsNoTracking().SingleAsync(d => d.Id == publishedPost.Id);
6161
fromDb.Likes.Should().Be(1);

0 commit comments

Comments
 (0)