{"id":22349411,"url":"https://github.com/jaktestowac/playwright-mocking-api","last_synced_at":"2025-10-14T20:30:52.479Z","repository":{"id":202588112,"uuid":"706797838","full_name":"jaktestowac/playwright-mocking-api","owner":"jaktestowac","description":"Code for webinar about mocking test data using Playwright and Typescript","archived":false,"fork":false,"pushed_at":"2025-07-27T17:14:04.000Z","size":18,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-27T19:25:23.494Z","etag":null,"topics":["mocking","playwright","rest-api","test-automation","typescript"],"latest_commit_sha":null,"homepage":"https://jaktestowac.pl/mockowanie/","language":"TypeScript","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/jaktestowac.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":"2023-10-18T16:27:07.000Z","updated_at":"2025-07-27T17:14:07.000Z","dependencies_parsed_at":null,"dependency_job_id":"5c49efd0-7c4e-482a-92e9-41c5ffc8fbfd","html_url":"https://github.com/jaktestowac/playwright-mocking-api","commit_stats":null,"previous_names":["jaktestowac/playwright-mocking-api"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jaktestowac/playwright-mocking-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaktestowac%2Fplaywright-mocking-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaktestowac%2Fplaywright-mocking-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaktestowac%2Fplaywright-mocking-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaktestowac%2Fplaywright-mocking-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jaktestowac","download_url":"https://codeload.github.com/jaktestowac/playwright-mocking-api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaktestowac%2Fplaywright-mocking-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279020905,"owners_count":26086948,"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","status":"online","status_checked_at":"2025-10-14T02:00:06.444Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["mocking","playwright","rest-api","test-automation","typescript"],"created_at":"2024-12-04T11:08:14.974Z","updated_at":"2025-10-14T20:30:52.473Z","avatar_url":"https://github.com/jaktestowac.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# About\n\nExercises for training tests mocking.\n\nAll exercises have detailed descriptions available after signing here:\nhttps://jaktestowac.pl/mockowanie/\nYou will get link to recording of webinar, presentation and tips (in Polish language).\n\n## Tested app\n\nInformation how to get tested app is located in page available after registering here https://jaktestowac.pl/mockowanie/\n\n⚠️ Glitch free account is limited to 4k requests per hour, app is deleted after 5 days without account\n\n## Required software\n\n- `Node.js`\n- `Visual Studio Code`\n- extensions for VSC (after installing project it should be suggested for installation):\n  - `Prettier - Code formatter` - for formatting\n  - `Playwright Test for VSCode` - for easy Playwright test running\n  - `GitLens` - for commits handling\n  - `Code Spell Checker` - for highlighting spelling mistakes\n\n## How to install project\nDownload this repository and open it main folder, then:\n\n1. Install packages:\n\n   ```\n   npm i\n   ```\n\n2. Install Playwright browsers:\n\n   ```\n   npx playwright install\n   ```\n\n3. Configure `playwright.config.json`\n   - Set baseURL to your app main url.\n   - Set timeout to desired value (current 6s can be to short)\n\n## How to run tests\n\nThere are few ways of test running:\n\n1. Navigate to folder with given exercise an simply run test by pressing green arrow\n2. Open `Testing` tab located in left menu (flask icon), unfold all tests and choose one or as many as you want to be run.\n   If test not appears, refresh tab or check `playwright.config.ts` if you have everything set properly with `projects` section.\n3. Run npm scripts by copy pasting scripts form `package.json` form `scripts` section.\n4. Use VSC npm script run section:\n   - in `Explorer` tab menu check `NPM Scripts`\n   - in very bottom of Explorer tab you will find section `NPM SCRIPTS`\n   - choose script you want to run\n\n## UI Mode\n\nJust run script form `package.json`:\n\n```\nnpm run test:ui\n```\n\nRecommended option is running this script in separate console.\n\n# Tips\n\n- there are two main folder for tests and you can compare implementation with or without mocking\n- broke test and try to find problem in report\n- some tests are designed to fail and those tests contains tag `@fail` in name\n- if tests fail without clear reason: \n    - check if tested app is up and running, \n    - check timeout in playwright.config.ts (on slow machines it need to be increased)\n\n\n# 📞 Contact \u0026 Support\n\nFeel free to reach out to us:\n\n- 🌐 **Website**: [jaktestowac.pl](https://jaktestowac.pl)\n- 💼 **LinkedIn**: [jaktestowac.pl](https://www.linkedin.com/company/jaktestowac/)\n- 💬 **Discord**: [Polish Playwright Community](https://discord.gg/mUAqQ7FUaZ)\n- 📧 **Support**: Check our website for contact details\n\n---\n\n# 📚 Learning Resources\n\nWe have gathered a collection of resources to help you learn and master Playwright, both in Polish and English. Whether you're a beginner or an advanced user, these resources will help you enhance your skills and knowledge.\n\n## 🇵🇱 Polish Resources\n\n- [JavaScript and TypeScript for Testers](https://jaktestowac.pl/js-ts/) - Comprehensive (13h+) course on JavaScript and TypeScript for testers, with practical examples and exercises\n- [Professional Test Automation with Playwright](https://jaktestowac.pl/playwright/) - Comprehensive (100h+) course on Playwright, test automation, CI/CD and test architecture\n- [Back-end Test Automation](https://jaktestowac.pl/api/) - Comprehensive (45h+) course on Back-end Test Automation with Postman, Mocha, Chai, and Supertest\n- [Free Playwright Resources](https://jaktestowac.pl/darmowy-playwright/) - Comprehensive and Free Polish learning materials\n- [Playwright Basics](https://www.youtube.com/playlist?list=PLfKhn9AcZ-cD2TCB__K7NP5XARaCzZYn7) - YouTube series (Polish)\n- [Playwright Elements](https://www.youtube.com/playlist?list=PLfKhn9AcZ-cAcpd-XN4pKeo-l4YK35FDA) - Advanced concepts (Polish)\n- [Playwright MCP](https://www.youtube.com/playlist?list=PLfKhn9AcZ-cCqD34AG5YRejujaBqCBgl4) - MCP course (Polish)\n- [Discord Community](https://discord.gg/mUAqQ7FUaZ) - First Polish Playwright community!\n- [Playwright Info](https://playwright.info/) - first and only Polish Playwright blog\n\n## 🇬🇧 English Resources\n\n- [VS Code Extensions](https://marketplace.visualstudio.com/publishers/jaktestowac-pl) - Our free Playwright plugins\n- [Playwright Documentation](https://playwright.dev/docs/intro) - Official documentation\n- [Playwright GitHub](https://github.com/microsoft/playwright) - Source code and issues\n\n_PS. For more resources and updates, follow us on our [website](https://jaktestowac.pl) and [GitHub](https://github.com/jaktestowac)._\n\n---\n\n**Happy testing and automation!** 🚀\n\n**jaktestowac.pl Team** ❤️💚\n\n_PS. For more resources and updates, follow us on our [website](https://jaktestowac.pl) and [GitHub](https://github.com/jaktestowac)._\n\n---\n\n_Built with ❤️💚 for the Playwright and test automation community_\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaktestowac%2Fplaywright-mocking-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjaktestowac%2Fplaywright-mocking-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaktestowac%2Fplaywright-mocking-api/lists"}