mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-04-30 00:34:56 +00:00
- Updated AGENTS.md with CRITICAL GUARDRAILS section
- Added explicit rules: NEVER write new .spec.ts or .stories.tsx files
- Tests must be JSON in packages/{name}/playwright/tests.json
- Stories must be JSON in packages/{name}/storybook/stories.json
- Updated CLAUDE.md with same guardrails at top (highly visible)
- Created TEST_STORY_CONVERSION.md with conversion guide and examples
- Converted smoke.spec.ts → packages/smoke_tests/playwright/tests.json
- Converted login.spec.ts → packages/auth/playwright/tests.json
- Documented all existing test files that can be converted
- Confirmed no leftover junk (generators removed, codebase clean)
- JSON tests auto-discovered and executed by e2e/json-runner/
- JSON stories auto-discovered and rendered by storybook/json-loader/
Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
94 lines
2.2 KiB
JSON
94 lines
2.2 KiB
JSON
{
|
|
"$schema": "https://metabuilder.dev/schemas/package-playwright.schema.json",
|
|
"package": "smoke_tests",
|
|
"version": "1.0.0",
|
|
"description": "Basic smoke tests converted from e2e/smoke.spec.ts - core application functionality tests",
|
|
"tests": [
|
|
{
|
|
"name": "should load the application",
|
|
"tags": ["@smoke", "@critical"],
|
|
"timeout": 10000,
|
|
"steps": [
|
|
{
|
|
"description": "Navigate to the app",
|
|
"action": "navigate",
|
|
"url": "/"
|
|
},
|
|
{
|
|
"description": "Wait for page load",
|
|
"action": "waitForLoadState",
|
|
"state": "domcontentloaded"
|
|
},
|
|
{
|
|
"description": "Verify page has content",
|
|
"action": "expect",
|
|
"selector": "body",
|
|
"assertion": {
|
|
"matcher": "toContainText",
|
|
"expected": "MetaBuilder"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "should have proper page title",
|
|
"tags": ["@smoke"],
|
|
"steps": [
|
|
{
|
|
"action": "navigate",
|
|
"url": "/"
|
|
},
|
|
{
|
|
"description": "Verify title is set",
|
|
"action": "expect",
|
|
"selector": "head title",
|
|
"assertion": {
|
|
"matcher": "toBeVisible"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "should display MetaBuilder landing page",
|
|
"tags": ["@smoke", "@ui"],
|
|
"steps": [
|
|
{
|
|
"action": "navigate",
|
|
"url": "/"
|
|
},
|
|
{
|
|
"action": "waitForLoadState",
|
|
"state": "domcontentloaded"
|
|
},
|
|
{
|
|
"description": "Check Sign In button",
|
|
"action": "expect",
|
|
"role": "button",
|
|
"text": "Sign In",
|
|
"assertion": {
|
|
"matcher": "toBeVisible"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "should have viewport properly configured",
|
|
"tags": ["@smoke"],
|
|
"steps": [
|
|
{
|
|
"action": "navigate",
|
|
"url": "/"
|
|
},
|
|
{
|
|
"description": "Page should be visible",
|
|
"action": "expect",
|
|
"selector": "body",
|
|
"assertion": {
|
|
"matcher": "toBeVisible"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|