docs
evals
scenario-1
scenario-10
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
{
"context": "This criteria evaluates how well the engineer uses Puppeteer's script and style injection capabilities to implement the page enhancement functionality. The focus is on proper usage of page.evaluateOnNewDocument(), page.addScriptTag(), and page.addStyleTag() methods.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Pre-page script method",
"description": "Uses page.evaluateOnNewDocument() to inject JavaScript that runs before page scripts load and persists across navigations",
"max_score": 30
},
{
"name": "External script loading",
"description": "Uses page.addScriptTag() with the 'url' option to inject external JavaScript files from URLs",
"max_score": 20
},
{
"name": "Inline script injection",
"description": "Uses page.addScriptTag() with the 'content' option to inject inline JavaScript code into the page",
"max_score": 20
},
{
"name": "Style injection",
"description": "Uses page.addStyleTag() with the 'content' option to inject CSS styles into the page",
"max_score": 20
},
{
"name": "Async handling",
"description": "Properly awaits all injection methods since they return promises",
"max_score": 10
}
]
}