fix(h5): sync latest report copy and deployment verification

This commit is contained in:
xsl
2026-10-11 22:59:21 +08:00
parent 3dda4ec7ff
commit 7518dc2307
14 changed files with 1981 additions and 863 deletions
+3 -1
View File
@@ -3,7 +3,9 @@ import { pathToFileURL } from 'node:url';
const { chromium } = await import(pathToFileURL(execSync('npm root -g', { encoding: 'utf8' }).trim() + '/playwright/index.mjs').href);
import fs from 'node:fs';
import assert from 'node:assert/strict';
const root = new URL('../../design/ui-20261009/verification/', import.meta.url);
const root = process.env.H5_ARTIFACT_DIR
? pathToFileURL(process.env.H5_ARTIFACT_DIR.replace(/\/$/, '') + '/')
: new URL('../../design/ui-20261009/verification/', import.meta.url);
fs.mkdirSync(root, { recursive: true });
const browser = await chromium.launch({ headless: true, args: ['--no-sandbox'] });
const page = await browser.newPage({ viewport: { width: 375, height: 726 } });