File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
src/Components/test/E2ETest/Tests Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -169,12 +169,12 @@ public void RerendersWhenItemSizeShrinks_Async()
169
169
}
170
170
171
171
[ Fact ]
172
- [ QuarantinedTest ( "https://github.com/dotnet/aspnetcore/issues/25929" ) ]
173
172
public void CancelsOutdatedRefreshes_Async ( )
174
173
{
175
174
Browser . MountTestComponent < VirtualizationComponent > ( ) ;
176
175
var cancellationCount = Browser . Exists ( By . Id ( "cancellation-count" ) ) ;
177
176
var finishLoadingButton = Browser . Exists ( By . Id ( "finish-loading-button" ) ) ;
177
+ var js = ( IJavaScriptExecutor ) Browser ;
178
178
179
179
// Load the initial set of items.
180
180
finishLoadingButton . Click ( ) ;
@@ -183,7 +183,12 @@ public void CancelsOutdatedRefreshes_Async()
183
183
Browser . Equal ( "0" , ( ) => cancellationCount . Text ) ;
184
184
185
185
// Validate that scrolling causes cancellations
186
- Browser . ExecuteJavaScript ( "document.getElementById('async-container').scrollTo({ top:5000, behavior:'smooth' })" ) ;
186
+ for ( var y = 1000 ; y <= 5000 ; y += 1000 )
187
+ {
188
+ js . ExecuteScript ( $ "document.getElementById('async-container').scrollTo({{ top: { y } }})") ;
189
+ Browser . Equal ( y , ( ) => ( long ) js . ExecuteScript ( "return document.getElementById('async-container').scrollTop" ) ) ;
190
+ }
191
+
187
192
Browser . True ( ( ) => int . Parse ( cancellationCount . Text , CultureInfo . InvariantCulture ) > 0 ) ;
188
193
}
189
194
You can’t perform that action at this time.
0 commit comments