File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
src/LinkDotNet.Blog.Web/Shared/Admin
tests/LinkDotNet.Blog.UnitTests/Web/Shared/Admin Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change 12
12
<div class =" mb-3" >
13
13
<label for =" title" >Title</label >
14
14
<input class =" form-control" id =" title"
15
- @oninput =" args => model.Title = args.Value.ToString()" />
15
+ @oninput =" args => model.Title = args.Value.ToString()" value = " @model.Title " />
16
16
</div >
17
17
<div class =" mb-3" >
18
18
<label for =" short" >Short Description</label >
Original file line number Diff line number Diff line change @@ -57,13 +57,12 @@ public void ShouldFillGivenBlogPost()
57
57
p =>
58
58
p . Add ( c => c . OnBlogPostCreated , bp => blogPostFromComponent = bp )
59
59
. Add ( c => c . BlogPost , blogPost ) ) ;
60
- cut . Find ( "#title" ) . Input ( "My new Title" ) ;
61
60
62
61
cut . Find ( "form" ) . Submit ( ) ;
63
62
64
63
cut . WaitForState ( ( ) => cut . Find ( "#title" ) . TextContent == string . Empty ) ;
65
64
blogPostFromComponent . Should ( ) . NotBeNull ( ) ;
66
- blogPostFromComponent . Title . Should ( ) . Be ( "My new Title" ) ;
65
+ blogPostFromComponent . Title . Should ( ) . Be ( "Title" ) ;
67
66
blogPostFromComponent . ShortDescription . Should ( ) . Be ( "Desc" ) ;
68
67
blogPostFromComponent . Content . Should ( ) . Be ( "Content" ) ;
69
68
blogPostFromComponent . Tags . Select ( t => t . Content ) . Should ( ) . Contain ( "tag1" ) ;
You can’t perform that action at this time.
0 commit comments