@@ -1294,21 +1294,6 @@ async def test_drop_should_drop_files_and_data_together(page: Page) -> None:
12941294 assert info ["data" ]["text/plain" ] == "label"
12951295
12961296
1297- async def test_highlight_should_attach_a_glass_pane (page : Page ) -> None :
1298- # Ported from upstream tests/page/locator-highlight.spec.ts. The Python
1299- # SDK uses a closed shadow root for the highlight overlay, so we can only
1300- # observe the host element x-pw-glass from outside the shadow. We verify
1301- # that highlight() and hide_highlight() invoke without error and that
1302- # multiple highlights stack on the page.
1303- await page .set_content ("<button>One</button><button>Two</button>" )
1304- await page .get_by_role ("button" , name = "One" ).highlight ()
1305- await page .get_by_role ("button" , name = "Two" ).highlight ()
1306- await expect (page .locator ("x-pw-glass" )).to_have_count (1 )
1307- # hide_highlight per-locator and page-level should not raise.
1308- await page .get_by_role ("button" , name = "One" ).hide_highlight ()
1309- await page .hide_highlight ()
1310-
1311-
13121297async def test_get_by_role_with_description (page : Page ) -> None :
13131298 # Ported from upstream tests/page/selectors-get-by.spec.ts.
13141299 await page .set_content (
@@ -1363,40 +1348,6 @@ async def texts(locator: Locator) -> list:
13631348 ) == ["Alert 1" , "Alert 2" ]
13641349
13651350
1366- async def test_get_by_role_with_description_via_aria_describedby (page : Page ) -> None :
1367- # Ported from upstream tests/page/selectors-get-by.spec.ts.
1368- await page .set_content (
1369- """
1370- <button aria-describedby="desc1">Submit</button>
1371- <span id="desc1">Submits the form data</span>
1372- <button aria-describedby="desc2">Submit</button>
1373- <span id="desc2">Saves as draft</span>
1374- """
1375- )
1376- assert await page .get_by_role (
1377- "button" , name = "Submit" , description = "form data"
1378- ).evaluate_all ("els => els.map(e => e.textContent)" ) == ["Submit" ]
1379- assert await page .get_by_role (
1380- "button" , name = "Submit" , description = "draft"
1381- ).evaluate_all ("els => els.map(e => e.textContent)" ) == ["Submit" ]
1382-
1383-
1384- async def test_get_by_role_with_description_via_title_fallback (page : Page ) -> None :
1385- # Ported from upstream tests/page/selectors-get-by.spec.ts.
1386- await page .set_content (
1387- """
1388- <button title="Submits the form">Submit</button>
1389- <button title="Resets the form">Reset</button>
1390- """
1391- )
1392- assert await page .get_by_role ("button" , description = "Submits" ).evaluate_all (
1393- "els => els.map(e => e.textContent)"
1394- ) == ["Submit" ]
1395- assert await page .get_by_role ("button" , description = "Resets" ).evaluate_all (
1396- "els => els.map(e => e.textContent)"
1397- ) == ["Reset" ]
1398-
1399-
14001351async def test_get_by_role_with_description_whitespace_normalization (
14011352 page : Page ,
14021353) -> None :
0 commit comments