Add responsive parity smoke matrix
This commit is contained in:
parent
51672e691e
commit
e61c2a58a7
14 changed files with 191 additions and 67 deletions
|
|
@ -1,5 +1,25 @@
|
|||
{
|
||||
"schema": "gamecult.eve.parity_manifest.v1",
|
||||
"responsiveCases": [
|
||||
{
|
||||
"id": "phone",
|
||||
"width": 390,
|
||||
"height": 844,
|
||||
"deviceScale": 1
|
||||
},
|
||||
{
|
||||
"id": "tablet",
|
||||
"width": 768,
|
||||
"height": 1024,
|
||||
"deviceScale": 1
|
||||
},
|
||||
{
|
||||
"id": "desktop",
|
||||
"width": 1280,
|
||||
"height": 720,
|
||||
"deviceScale": 1
|
||||
}
|
||||
],
|
||||
"fixtures": [
|
||||
{
|
||||
"id": "cultui-inspector",
|
||||
|
|
@ -75,8 +95,8 @@
|
|||
"kind": "active",
|
||||
"semanticHarness": true,
|
||||
"capture": {
|
||||
"status": "manual-or-plugin",
|
||||
"note": "Browser screenshots are currently verified through the in-app browser; a standalone Playwright/CDP runner should plug in here once the repo owns that dependency."
|
||||
"status": "chrome-headless",
|
||||
"note": "Chrome headless captures phone, tablet, and desktop PNGs through the provider query parameter."
|
||||
}
|
||||
},
|
||||
{
|
||||
|
|
|
|||
|
|
@ -26,6 +26,7 @@ const report = {
|
|||
schema: "gamecult.eve.parity_report.v1",
|
||||
generatedAt: new Date().toISOString(),
|
||||
manifest: path.relative(repoRoot, manifestPath).replaceAll("\\", "/"),
|
||||
responsiveCases: manifest.responsiveCases || [],
|
||||
summary: summarize(fixtureResults, runtimeResults),
|
||||
fixtures: fixtureResults,
|
||||
runtimes: runtimeResults,
|
||||
|
|
@ -200,12 +201,24 @@ function renderMarkdown(report) {
|
|||
"",
|
||||
`- Fixtures: ${report.summary.passedFixtures}/${report.summary.totalFixtures} passed`,
|
||||
`- Runtimes: ${report.summary.activeRuntimes}/${report.summary.totalRuntimes} active`,
|
||||
"",
|
||||
"## Responsive Cases",
|
||||
"",
|
||||
"| Case | Size |",
|
||||
"| --- | --- |",
|
||||
];
|
||||
|
||||
for (const viewport of report.responsiveCases || []) {
|
||||
lines.push(`| ${viewport.id} | ${viewport.width} x ${viewport.height} |`);
|
||||
}
|
||||
|
||||
lines.push(
|
||||
"",
|
||||
"## Fixtures",
|
||||
"",
|
||||
"| Fixture | Status | Provider | Components | Failed Checks |",
|
||||
"| --- | --- | --- | ---: | --- |",
|
||||
];
|
||||
);
|
||||
|
||||
for (const fixture of report.fixtures) {
|
||||
const failed = fixture.checks.filter(check => !check.pass).map(check => check.id).join(", ") || "";
|
||||
|
|
|
|||
Loading…
Reference in a new issue