{"id":28718739,"url":"https://github.com/danielgilortiz/playwright-openweather","last_synced_at":"2025-06-15T05:03:34.502Z","repository":{"id":292672102,"uuid":"981581244","full_name":"DanielGilOrtiz/playwright-openweather","owner":"DanielGilOrtiz","description":"This project contains automated API tests for the OpenWeatherMap Current Weather Data API using Playwright.","archived":false,"fork":false,"pushed_at":"2025-05-19T21:04:20.000Z","size":191,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-19T22:23:26.997Z","etag":null,"topics":["api-tests","playwright","test-automation"],"latest_commit_sha":null,"homepage":"","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DanielGilOrtiz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"zenodo":null}},"created_at":"2025-05-11T12:41:54.000Z","updated_at":"2025-05-19T21:04:24.000Z","dependencies_parsed_at":null,"dependency_job_id":"40d6f6ea-575d-4227-b988-387ef31d1011","html_url":"https://github.com/DanielGilOrtiz/playwright-openweather","commit_stats":null,"previous_names":["danielgilortiz/playwright-openweather"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/DanielGilOrtiz/playwright-openweather","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DanielGilOrtiz%2Fplaywright-openweather","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DanielGilOrtiz%2Fplaywright-openweather/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DanielGilOrtiz%2Fplaywright-openweather/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DanielGilOrtiz%2Fplaywright-openweather/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DanielGilOrtiz","download_url":"https://codeload.github.com/DanielGilOrtiz/playwright-openweather/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DanielGilOrtiz%2Fplaywright-openweather/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259924678,"owners_count":22932782,"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":["api-tests","playwright","test-automation"],"created_at":"2025-06-15T05:03:33.877Z","updated_at":"2025-06-15T05:03:34.479Z","avatar_url":"https://github.com/DanielGilOrtiz.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Automated API Testing for OpenWeather using Playwright\n\nThis project contains automated API tests for the OpenWeather API using Playwright.\n\n## Prerequisites\n\n- Node.js (v14 or higher)\n- NPM (Node Package Manager)\n- OpenWeatherMap API key ([Get it here](https://openweathermap.org/api))\n\n## Installation\n\n1. Clone this repository:\n```bash\ngit clone \u003crepository-url\u003e\ncd open-weather-map\n```\n\n2. Install dependencies:\n```bash\nnpm install\n```\n\n3. Install Playwright browsers:\n```bash\nnpx playwright install\n```\n\n\u003e Note: While `npm install` will install the Playwright framework, the last command is required to download the browser binaries that Playwright needs to run the tests.\n\n## Configuration\n\nAdd your OpenWeatherMap API key to the `.env` file in the root directory:\n```\nOPENWEATHER_API_KEY = your_api_key_here\n```\n\nReplace `your_api_key_here` with your actual OpenWeatherMap API key.\n\n## Running Tests\n\nRun the tests using one of the following npm scripts:\n\n```bash\n# Run all tests\nnpm test\n\n# Run tests with HTML report\nnpm run test:report\n\n# Show HTML report\nnpm run show-report\n```\n\n## Project Structure\n\n```\n├── constants/\n│   └── weather-conditions.ts                   # Weather conditions mapping\n├── tests/\n│   └── current-weather-data.spec.ts    \n│   └── five-days-weather-forecast.spec.ts      # TBC \n├── playwright.config.ts                        # Playwright configuration\n├── package.json                                # Project dependencies\n└── .env                                        # Environment variables\n```\n\n## Environment Variables\n\n| Variable | Description | Required |\n|----------|-------------|----------|\n| `OPENWEATHER_API_KEY` | Your OpenWeatherMap API key | Yes |\n\n## Additional Resources\n\n- [OpenWeatherMap API Documentation](https://openweathermap.org/current)\n- [Playwright Documentation](https://playwright.dev)\n- [dotenv Documentation](https://github.com/motdotla/dotenv)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielgilortiz%2Fplaywright-openweather","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanielgilortiz%2Fplaywright-openweather","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielgilortiz%2Fplaywright-openweather/lists"}