File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed
test/E2ETest/ServerRenderingTests/FormHandlingTests Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -16,8 +16,8 @@ public async Task InputElementIsAssignedSuccessfully()
1616 ValueExpression = ( ) => model . StringProperty ,
1717 } ;
1818
19- // Act
20- var inputHiddenComponent = await InputRenderer . RenderAndGetComponent ( rootComponent ) ;
19+ // Act
20+ var inputHiddenComponent = await InputRenderer . RenderAndGetComponent ( rootComponent ) ;
2121
2222 // Assert
2323 Assert . NotNull ( inputHiddenComponent . Element ) ;
Original file line number Diff line number Diff line change @@ -116,10 +116,9 @@ public void InputHiddenCanStoreData(bool suppressEnhancedNavigation)
116116 SuppressEnhancedNavigation = suppressEnhancedNavigation ,
117117 } ;
118118 DispatchToFormCore ( dispatchToForm ) ;
119- var textHidden = Browser . Exists ( By . Id ( "hidden" ) ) . GetDomProperty ( "value" ) ;
120- Assert . Equal ( "stranger" , textHidden ) ;
121- var textPass = Browser . Exists ( By . Id ( "pass" ) ) . Text ;
122- Assert . Equal ( "Hello stranger!" , textPass ) ;
119+
120+ Browser . Equal ( "stranger" , ( ) => Browser . Exists ( By . Id ( "hidden" ) ) . GetDomProperty ( "value" ) ) ;
121+ Browser . Equal ( "Hello stranger!" , ( ) => Browser . Exists ( By . Id ( "pass" ) ) . Text ) ;
123122 }
124123
125124 [ Theory ]
You can’t perform that action at this time.
0 commit comments