Run troubleshooting browser proof with frontend styling

Resolve Tailwind's relative config from the frontend module before starting Vite, as the existing Docs fixture runner does. Keep the initial overflow failure in the lane receipts and expose the privacy-review step in the phone screenshot.

Contract-Neutral: Browser verification harness only; no product, API, schema or runtime change.
Change-source: pulse-maintainer
This commit is contained in:
pulse-triage[bot]
2026-09-30 00:33:11 +01:00
parent d707df9577
commit 5fe29c558d
+3 -1
View File
@@ -19,6 +19,8 @@ function check(condition, message) {
(async () => {
fs.mkdirSync(output, { recursive: true });
// Tailwind resolves its config/content globs from the frontend working dir.
process.chdir(frontend);
const { createServer } = await import(
path.join(frontend, 'node_modules', 'vite', 'dist', 'node', 'index.js')
);
@@ -65,7 +67,7 @@ function check(condition, message) {
await article.getByRole('link', { name: 'I forgot my password', exact: true }).click();
await page.waitForFunction(() => document.activeElement?.id === 'i-forgot-my-password');
check((await page.locator('#i-forgot-my-password').innerText()) === 'I forgot my password', `${size}: reset link reaches the deployment-specific steps`);
await article.getByText('Keep the original evidence', { exact: true }).scrollIntoViewIfNeeded();
await article.getByText(size === 'phone' ? 'Review before posting' : 'Keep the original evidence', { exact: true }).scrollIntoViewIfNeeded();
await page.screenshot({ path: path.join(output, `${size}-help.png`) });
}
check(errors.length === 0, 'no page errors or failed HTTP responses');