fix(h5): sync latest report copy and deployment verification
This commit is contained in:
@@ -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 } });
|
||||
|
||||
Reference in New Issue
Block a user