Product Page Health (product-page-health)
Summary
PDP signals: price, media, add-to-cart, JSON-LD Product (B2B-aware).
Classification
- Category:
ECOMMERCE - Plugin id:
product-page-health - Version:
1.1.5 - Target types:
WEBSHOP - Weight class:
MEDIUM - Risk level: not set on plugin object
- Browser required: Yes (Playwright)
- Tier / group: Tier 3 — E-commerce / flows (Playwright)
Schedule
- scheduleHints:
{ defaultInterval: '0 */6 * * *', priority: 6 } - Prerequisites: None declared on this plugin.
Configurable inputs
Public keys are derived from inputSchema: z.object({ ... }) (underscore-prefixed keys are runtime-only and omitted here).
| Field | Notes |
|---|---|
productUrl |
Zod field in inputSchema — see source for defaults, min/max, and .describe(). |
priceSelector |
Zod field in inputSchema — see source for defaults, min/max, and .describe(). |
addToCartSelector |
Zod field in inputSchema — see source for defaults, min/max, and .describe(). |
timeout |
Zod field in inputSchema — see source for defaults, min/max, and .describe(). |
Runtime / injected config
_secrets,_fingerprint,_requiresLoginForPurchase,_hasEverPassed— same B2B family as checkout-flow.
What it does
- Runs as part of the worker test execution pipeline; results become
Runrows and may createFindingrecords. - PDP signals: price, media, add-to-cart, JSON-LD Product (B2B-aware). Navigation uses
gotoDocumentReady(domcontentloaded), notnetworkidle. - For finding titles, metrics, and artifacts specific to this plugin, refer to the implementation linked below.
B2B login step
On a login-gated shop (_requiresLoginForPurchase) the test signs in with LOGIN_EMAIL / LOGIN_PASSWORD before it opens a product page.
| Outcome | Run | Finding |
|---|---|---|
| No credentials stored | SKIPPED ("add LOGIN_EMAIL and LOGIN_PASSWORD") | none |
| Login sent, refused (wrong password, no login page, no form) | measured | product:b2b-login-failed:<target> WARNING |
| Looking for the login page ran out of time, the login page did not load, or a login field would not take text | SKIPPED, SITE_UNRESPONSIVE, metric loginStepSkipped: 1; the run shows the reason |
none on its own |
| 3 or more such login skips in a row (TESTE-NO-570) | SKIPPED | one product:login-cannot-run:<target> WARNING «Login test can't run», never escalated |
The worker counts login skips per target in TestProfileEntry.consecutiveLoginSkips. The finding says how many runs in a row the login could not run, gives the last reason, and lists what to check: the login form's selectors may have changed, a bot block may stop the browser, or the site's login page may itself be down or slow. Later login skips update that one finding. The first run that gets past the login (any measured run, a wrong-password run included) sets the count to 0 and resolves it. A skip for missing credentials, a not-applicable skip, or a timeout after the login neither counts nor resets. The skipped run closes none of the test's other findings.
Source
packages/test-plugins/src/plugins/product-page-health.ts