{"repo":"vitalets/playwright-magic-steps","free":true,"listed":false,"github":"https://github.com/vitalets/playwright-magic-steps","clone":"git clone https://github.com/vitalets/playwright-magic-steps.git","description":"Auto-transform JavaScript comments into Playwright steps","language":"TypeScript","stars":60,"topics":["playwright","step","test-automation","testing"],"license":"MIT","category":"scrapers-browser-automation","readme_excerpt":"playwright-magic-steps Auto-transform JavaScript comments into Playwright steps. - Example - With AI - Installation - Activation - Activation for v0.x (deprecated) - Usage - Step start - Step end - Nested steps - Variables - Motivation - Caveats - Changelog - 1.0.0 - 0.4.0 - License Example Test code: Playwright report: Test code actually executed: With AI You can utilize AI to generate tests with appropriate comments and get nice reports. Example prompt for ChatGPT: Generated test: Playwright report: Installation Install from npm: Activation To activate magic steps in your project, you should run Playwright with pre-required module, provided via -r flag in NODE OPTIONS : To enable magic steps in Playwright VS Code extension, add the following lines to .vscode/settings.json : Activation for v0.x (deprecated) Click to expand To enable magic steps transformation, you'll need to run Playwright with a pre-required module. You can include this module using the NODE OPTIONS environment variable. The exact value will depend on whether your project uses CommonJS or ESM: CommonJS Run Playwright with the following -r flag in NODE OPTIONS : To enable magic steps in Playwright VS Code extension, add the following lines to .vscode/settings.json : ESM Run Playwright with the following --import flag in NODE OPTIONS : To enable magic steps in Playwright VS Code extension, add the following lines to .vscode/settings.json : Usage You can define steps with special comments. Step start Step star","default_branch":null,"files":null,"tree":[],"storefront":"/r/vitalets","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/vitalets/playwright-magic-steps/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}