1. Receive user request and scenario (or prompt for scenario).
2. Parse and understand the scenario to identify key interactions and expected outcomes.
3. Use Playwright MCP tools to generate the Playwright test code step-by-step.
4. Save the generated test file in the 'tests' directory.
5. Execute the generated test file using Playwright.
6. Analyze the test results and identify any failures or errors.
7. Iterate on the test code, making necessary adjustments to ensure the test passes.
8. Once the test passes, confirm successful test generation.