{"repo":"codewithmmak/playwright-javascript","free":true,"listed":false,"github":"https://github.com/codewithmmak/playwright-javascript","clone":"git clone https://github.com/codewithmmak/playwright-javascript.git","description":"This is a test automation framework designed using Playwright and JavaScript.","language":"JavaScript","stars":21,"topics":["e2e-boilerplate","e2e-framework","e2e-tests","javascript","nextjs","nextjs-testing","playwright","playwright-javascript","playwright-test-runner","playwright-tests"],"license":null,"category":"scrapers-browser-automation","readme_excerpt":"Playwright and JavaScript Test Automation Framework Status: ✅ Hardened & Production-Ready Features of this framework - Design Pattern: Page Object Model — Clean separation of test logic and UI interactions - Resilient Selectors — Prefer role-based and attribute-based locators over brittle XPath - Reporting: Allure — Rich HTML/Allure reports with traces and screenshots - Cloud Integration: SauceLabs — Multi-browser cloud execution support - CI/CD-Optimized — Headless by default, artifact capture only on failure - State-Based Waits — No hard waitForTimeout calls; all delays are deterministic --- Getting started Pre-requisites - Node.js 18+ and npm 8+ - Git (recommended) - Visual Studio Code with GitLens and Playwright Test for VSCode Setup --- How to write Tests - Add new spec under e2e-tests/ folder as .spec.js - Create or reuse a page object module in e2e-tests/page-objects/ Page.js - Use robust selectors: getByRole() , getByLabel() , getByPlaceholder() , or stable CSS/attribute selectors - Avoid brittle selectors: XPath with text content, CSS module class names, DOM structure dependencies - Use state-based waits: expect(locator).toBeVisible/Enabled/Disabled() , page.waitForFunction() , never raw waitForTimeout() Example Test --- Running Tests Local Development CI/CD Pipelines Specific Test Files Reporter Options --- Reports and Artifacts HTML Report Allure Report Screenshots & Traces - Captured in ./test-results/ on test failure - Traces can be viewed with: npx playwright sh","default_branch":null,"files":null,"tree":[],"storefront":"/r/codewithmmak","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/codewithmmak/playwright-javascript/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."}