Skip to content

Commit 88bbd37

Browse files
committed
amending selector by adding test-id to the element in a different pr
1 parent 60e3e7d commit 88bbd37

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

playwright/e2e/ui/pages/home.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,7 @@ def search_result_is_visible(self):
533533

534534
@pytest.mark.asyncio
535535
async def close_unsuccessful_search_result_sidebar(self):
536-
await self.page.locator("div.styled__SearchResultsBar-as3fh1-4.gldLiQ").get_by_role("button").click()
536+
await self.page.get_by_test_id("close-search-noresults").click()
537537

538538
@pytest.mark.asyncio
539539
async def close_successful_search_result_sidebar(self):

0 commit comments

Comments
 (0)