You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Microsoft.Playwright 1.62 marks IPage.RunAndWaitForNavigationAsync as
obsolete, which produced 33 CS0612 warnings across the integration tests.
Playwright suggests WaitForURLAsync as the replacement, but that isn't
suitable here: every form under test POSTs back to the URL it was loaded
from, so the wait would match the URL of the page being navigated away
from and return immediately. Add a SubmitFormAsync extension that waits
for the navigation POST's response and then for the load state, and use
it at the 11 call sites.
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
// Verify POSTed values have been round-tripped, including the invalid values
33
34
awaitAssertFieldsForCompleteDate(page,day,month,year,expectDayToHaveError:true,expectMonthToHaveError:true,expectYearToHaveError:false,expectedErrorMessage:"Date of birth must be a real date");
@@ -51,7 +52,8 @@ public async Task ForCustomDateProperty()
// Verify POSTed values have been round-tripped, including the invalid values
57
59
awaitAssertFieldsForCompleteDate(page,day,month,year,expectDayToHaveError:true,expectMonthToHaveError:true,expectYearToHaveError:false,expectedErrorMessage:"Date of birth must be a real date");
@@ -75,7 +77,8 @@ public async Task ValueDateProperty()
// Verify POSTed values have been round-tripped, including the invalid values
151
157
awaitAssertFieldsForMonthAndYearOnly(page,month,year,expectMonthToHaveError:true,expectYearToHaveError:false,expectedErrorMessage:"Month of birth must be a real date");
@@ -167,7 +173,8 @@ public async Task ForCustomDatePartsProperty()
// Verify POSTed values have been round-tripped, including the invalid values
173
180
awaitAssertFieldsForMonthAndYearOnly(page,month,year,expectMonthToHaveError:true,expectYearToHaveError:false,expectedErrorMessage:"Month of birth must be a real date");
@@ -189,7 +196,8 @@ public async Task ValueDatePartsProperty()
0 commit comments