We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4dbb929 commit b430f09Copy full SHA for b430f09
1 file changed
tests/async/test_page_request_intercept.py
@@ -13,7 +13,6 @@
13
# limitations under the License.
14
15
import asyncio
16
-from typing import cast
17
18
import pytest
19
@@ -98,4 +97,4 @@ async def route_handler(route: Route) -> None:
98
97
[popup, _] = await asyncio.gather(
99
page.wait_for_event("popup"), page.get_by_text("click me").click()
100
)
101
- await expect(cast(Page, popup).locator("body")).to_have_text("hello")
+ await expect(popup.locator("body")).to_have_text("hello")
0 commit comments