30 lines
991 B
JSON
30 lines
991 B
JSON
{
|
|
"_comment": "Action Catalog for generating Playwright + MCP tests from editor data.",
|
|
"_version": "0.1.0",
|
|
"_targetGroup": "core-documentation",
|
|
|
|
"actions": {
|
|
"open_admin_portal": {
|
|
"template": "await page.goto(process.env.BASE_URL ?? 'https://pbx.local:4443');"
|
|
},
|
|
|
|
"navigate_to_downloads_portal": {
|
|
"template": "await page.goto(REPO_URL);"
|
|
},
|
|
|
|
"search_for_document": {
|
|
"template": "const link = page.locator('a, li, td').filter({ hasText: /{{pattern}}/i });\nawait expect(link.first()).toBeVisible();",
|
|
"params": ["pattern"]
|
|
},
|
|
|
|
"assert_document_visible": {
|
|
"template": "const el = page.locator('a, li, td').filter({ hasText: /{{pattern}}/i });\nawait expect(el.first()).toBeVisible();",
|
|
"params": ["pattern"]
|
|
},
|
|
|
|
"extract_text_content": {
|
|
"template": "const content = await page.locator('body').innerText();\n// TODO: Parse and save the relevant section (Release Notes, Changelog, etc.)"
|
|
}
|
|
}
|
|
}
|