File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
tests/LinkDotNet.Blog.IntegrationTests/Web/Features/ShowBlogPost Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ public async Task ShouldAddLikeOnEvent()
31
31
var likeComponent = cut . FindComponent < Like > ( ) ;
32
32
likeComponent . SetParametersAndRender ( c => c . Add ( p => p . BlogPost , publishedPost ) ) ;
33
33
34
- likeComponent . Find ( "button " ) . Click ( ) ;
34
+ likeComponent . Find ( "span " ) . Click ( ) ;
35
35
36
36
var fromDb = await DbContext . BlogPosts . AsNoTracking ( ) . SingleAsync ( d => d . Id == publishedPost . Id ) ;
37
37
fromDb . Likes . Should ( ) . Be ( 3 ) ;
@@ -55,7 +55,7 @@ public async Task ShouldSubtractLikeOnEvent()
55
55
var likeComponent = cut . FindComponent < Like > ( ) ;
56
56
likeComponent . SetParametersAndRender ( c => c . Add ( p => p . BlogPost , publishedPost ) ) ;
57
57
58
- likeComponent . Find ( "button " ) . Click ( ) ;
58
+ likeComponent . Find ( "span " ) . Click ( ) ;
59
59
60
60
var fromDb = await DbContext . BlogPosts . AsNoTracking ( ) . SingleAsync ( d => d . Id == publishedPost . Id ) ;
61
61
fromDb . Likes . Should ( ) . Be ( 1 ) ;
You can’t perform that action at this time.
0 commit comments