test(e2e): unify toast assertion + extract shared PlaywrightDbConnection (review cleanups)
This commit is contained in:
+2
-4
@@ -320,10 +320,8 @@ public class SiteCallsPageTests
|
||||
// path can sit on the 10s inner relay timeout before the response —
|
||||
// and the toast itself auto-dismisses 5s after it appears, so the
|
||||
// assertion must catch it inside that window.
|
||||
var toast = page.Locator(".toast");
|
||||
await Assertions.Expect(toast).ToBeVisibleAsync(
|
||||
new() { Timeout = 15_000 });
|
||||
Assert.Equal(1, await toast.CountAsync());
|
||||
await Assertions.Expect(page.Locator(".toast")).ToHaveCountAsync(
|
||||
1, new() { Timeout = 15_000 });
|
||||
}
|
||||
finally
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user