File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -443,10 +443,9 @@ public void IncludesAlertTextInUnhandledAlertException()
443443 driver . FindElement ( By . Id ( "alert" ) ) . Click ( ) ;
444444 WaitFor < IAlert > ( AlertToBePresent , "No alert found" ) ;
445445
446- Assert . That ( ( ) =>
447- {
448- _ = driver . Title ;
449- } , Throws . InstanceOf < UnhandledAlertException > ( ) . With . Property ( nameof ( UnhandledAlertException . AlertText ) ) . EqualTo ( "cheese" ) ) ;
446+ Assert . That (
447+ ( ) => driver . Title ,
448+ Throws . InstanceOf < UnhandledAlertException > ( ) . With . Property ( nameof ( UnhandledAlertException . AlertText ) ) . EqualTo ( "cheese" ) ) ;
450449 }
451450
452451 [ Test ]
Original file line number Diff line number Diff line change @@ -132,8 +132,8 @@ public async Task CanListenToFetchError()
132132
133133 await using var subscription = await context . Network . OnFetchErrorAsync ( tcs . SetResult ) ;
134134
135- var navigateTask = context . NavigateAsync ( "https://not_a_valid_url.test" , new ( ) { Wait = ReadinessState . Complete } ) ;
136- await ( ( Task ) navigateTask ) . ConfigureAwait ( ConfigureAwaitOptions . SuppressThrowing ) ;
135+ await ( ( Task ) context . NavigateAsync ( "https://not_a_valid_url.test" , new ( ) { Wait = ReadinessState . Complete } ) )
136+ . ConfigureAwait ( ConfigureAwaitOptions . SuppressThrowing ) ;
137137
138138 var res = await tcs . Task . WaitAsync ( TimeSpan . FromSeconds ( 5 ) ) ;
139139
You can’t perform that action at this time.
0 commit comments