Skip to content

Commit 771ef66

Browse files
committed
PR feedback
1 parent 06966d4 commit 771ef66

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

dotnet/test/common/AlertsTest.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff 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]

dotnet/test/common/BiDi/Network/NetworkEventsTest.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)