File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed
services/dynamic-scheduler/tests/unit/api_frontend Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -37,10 +37,6 @@ async def take_screenshot_on_error(
3737 raise
3838
3939
40- async def _get_page_html (async_page : Page ) -> str :
41- return await async_page .content ()
42-
43-
4440async def _get_locator (
4541 async_page : Page ,
4642 text : str ,
@@ -55,13 +51,11 @@ async def _get_locator(
5551 locator = async_page .get_by_text (text )
5652 count = await locator .count ()
5753 if instances is None :
58- assert (
59- count > 0
60- ), f"cold not find text='{ text } ':\n { await _get_page_html (async_page )} "
54+ assert count > 0 , f"cold not find text='{ text } '"
6155 else :
6256 assert (
6357 count == instances
64- ), f"found { count } instances of text='{ text } '. Expected { instances } : \n { await _get_page_html ( async_page ) } "
58+ ), f"found { count } instances of text='{ text } '. Expected { instances } "
6559 return locator
6660
6761
You can’t perform that action at this time.
0 commit comments