fix pyppeteer/playwright mermaid engine run error

This commit is contained in:
shenchucheng 2024-05-24 15:59:04 +08:00
parent e03db313a2
commit e4129025b0
3 changed files with 42 additions and 42 deletions

View file

@ -13,7 +13,7 @@ from metagpt.utils.mermaid import MMC1, mermaid_to_file
@pytest.mark.asyncio
@pytest.mark.parametrize("engine", ["nodejs", "ink"]) # TODO: playwright and pyppeteer
@pytest.mark.parametrize("engine", ["nodejs", "ink", "playwright", "pyppeteer"])
async def test_mermaid(engine, context, mermaid_mocker):
# nodejs prerequisites: npm install -g @mermaid-js/mermaid-cli
# ink prerequisites: connected to internet