Skip to content

Commit b430f09

Browse files
committed
fix(tests): remove redundant cast after typed wait_for_event overloads
1 parent 4dbb929 commit b430f09

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

tests/async/test_page_request_intercept.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
# limitations under the License.
1414

1515
import asyncio
16-
from typing import cast
1716

1817
import pytest
1918

@@ -98,4 +97,4 @@ async def route_handler(route: Route) -> None:
9897
[popup, _] = await asyncio.gather(
9998
page.wait_for_event("popup"), page.get_by_text("click me").click()
10099
)
101-
await expect(cast(Page, popup).locator("body")).to_have_text("hello")
100+
await expect(popup.locator("body")).to_have_text("hello")

0 commit comments

Comments
 (0)