Skip to content

Commit 5398166

Browse files
author
Andrei Neagu
committed
revert change
1 parent 488661f commit 5398166

File tree

1 file changed

+2
-8
lines changed
  • services/dynamic-scheduler/tests/unit/api_frontend

1 file changed

+2
-8
lines changed

services/dynamic-scheduler/tests/unit/api_frontend/helpers.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff 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-
4440
async 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

0 commit comments

Comments
 (0)