{"id":20816484,"url":"https://github.com/qaa-demo/playwright-demo","last_synced_at":"2025-11-03T23:30:27.910Z","repository":{"id":163712598,"uuid":"550995407","full_name":"qaa-demo/playwright-demo","owner":"qaa-demo","description":"Playwright Demo - Building QA Automation Framework","archived":false,"fork":false,"pushed_at":"2024-04-14T23:02:36.000Z","size":48,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-04-18T01:32:11.494Z","etag":null,"topics":["data-driven-tests","javascript","page-object-model","pageobjectmodel","plawyright","pom","test-automation-framework"],"latest_commit_sha":null,"homepage":"https://testautomationpro.com/aut","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/qaa-demo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-10-13T17:03:20.000Z","updated_at":"2024-04-16T04:15:44.000Z","dependencies_parsed_at":null,"dependency_job_id":"3a0def6b-8038-4f79-93c4-26f359a5c10f","html_url":"https://github.com/qaa-demo/playwright-demo","commit_stats":null,"previous_names":["tatyana-teck/playwright-demo","qaa-demo/playwright-demo"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qaa-demo%2Fplaywright-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qaa-demo%2Fplaywright-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qaa-demo%2Fplaywright-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qaa-demo%2Fplaywright-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/qaa-demo","download_url":"https://codeload.github.com/qaa-demo/playwright-demo/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239421094,"owners_count":19635671,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["data-driven-tests","javascript","page-object-model","pageobjectmodel","plawyright","pom","test-automation-framework"],"created_at":"2024-11-17T21:34:28.392Z","updated_at":"2025-11-03T23:30:27.837Z","avatar_url":"https://github.com/qaa-demo.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Playwright Demo Project\n\nPlaywright Automated Testing Tool Demo Project\n* Testing Login functionality on [Guestbook Demo App](https://testautomationpro.com/aut/) =\u003e tests/tests.spec.js\n\n## Purpose: Playwright Functionality Demo\n* Page Object Model (POM)\n* Reusability with common steps\n* Data Parameterization with external .csv file and mock data\n\n## Prerequisites\n\n* [Git](https://git-scm.com/)\n* [Node.js](https://nodejs.org/) (with npm)\n* [Visual Studio Code](https://code.visualstudio.com/)\n\n### Verify installation\n```\nnode -v\n```\n```\nnpm -v\n```\n```\ncode -v\n```\n#### Verification Examples (Command Prompt):\n```\nMicrosoft Windows [Version 10.0.22000.856]\n(c) Microsoft Corporation. All rights reserved.\n\nC:\\Users\\[user]\u003enode -v\nv16.16.0\n\nC:\\Users\\[user]\u003enpm -v\n8.11.0\n\nC:\\Users\\[user]\u003ecode -v\n1.70.2\ne4503b30fc78200f846c62cf8091b76ff5547662\nx64\n\n```\n\n\n## Project and dependancies Installation\n```\ngit clone https://github.com/qaa-demo/playwright-demo.git\n```\n```\ncd playwright-demo\n```\n```\nnpm install\n```\n\n# Run the tests\n### Run all tests:\n  ```\n  npm test \n  ```\n### Run individual test files:\n  ```\n  npm test tests.spec.js\n  ```\n\nBy default test runs in **headless mode** . To see the browser during execution change to headed mode - update **playwight.config.js** file:\n```\nheadless: false\n```\nBy default execution trace is set to **retain on failure only** (trace is captured but deleted if the test passes):\n```\ntrace: 'retain-on-failure'\n```\nTo always capture and keep the last trace, update **playwight.config.js** file:\n```\ntrace: 'on'\n``` \nTo always capture and keep execution video, update **playwight.config.js** file:\n```\nvideo: 'on'\n``` \n\n### \n\n# Create new tests\n## resources/locators.js\nAdd locators \u0026 Data\n```\nconst locators = {\n  HomePageHeading: \"id=main-header\",\n  LoginPageHeading: \"id=login-page-main-header\",\n  FormPageHeading: \"id=sign-form-main-header\",\n}\n```\n```\nconst data = {\n  HomePageHeading: \"Home Page\",\n  LoginPageHeading: \"Login\",\n  FormPageHeading: \"Sign The Guestbook\",\n}\n```\n\n\n## pages/pages.js\nAdd New Page Class (if required or use existing)\n\n```\nclass HomePage {\n\n    constructor(page) {\n      this.page = page;\n    }\n\n    async navigateToHomePage() {\n      await this.page.goto(data.BaseUrl);\n    }\n  }\n```\nAdd Methods\n```\n\n```\n\n## tests/common.js\nAdd Common Steps\nAdd Reusable Step Components\n\n## tests/tests.spec.js\nAdd New Tests ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqaa-demo%2Fplaywright-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fqaa-demo%2Fplaywright-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqaa-demo%2Fplaywright-demo/lists"}