Structure of structured prompts · Question 52 of 60
"You are a test automation engineer. Write Playwright tests. Here is the page's HTML. Use only data-testid selectors. Output a TypeScript file." Which component is missing?
1 answer is correct. Hard Created with AI
Show answer
Answer
- D The context, such as which function is being tested
Explanation
Role, instruction, input data (HTML), constraint (selectors) and output format (TypeScript file) are present. What is missing is the business purpose and what is to be tested.