{"id":27941158,"url":"https://github.com/ew-code/gad-app-tests","last_synced_at":"2025-05-07T10:38:12.751Z","repository":{"id":238312505,"uuid":"751975194","full_name":"ew-code/GAD-App-Tests","owner":"ew-code","description":"The repository contains code for automated tests of GAD app (GUI API Demo) created using the Playwright library.","archived":false,"fork":false,"pushed_at":"2024-12-17T19:29:32.000Z","size":173,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-17T19:34:35.892Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/ew-code.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":"2024-02-02T18:31:53.000Z","updated_at":"2024-12-17T19:29:36.000Z","dependencies_parsed_at":"2024-09-06T20:41:24.973Z","dependency_job_id":null,"html_url":"https://github.com/ew-code/GAD-App-Tests","commit_stats":null,"previous_names":["ew-code/gad-tests","ew-code/gad-app-tests"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ew-code%2FGAD-App-Tests","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ew-code%2FGAD-App-Tests/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ew-code%2FGAD-App-Tests/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ew-code%2FGAD-App-Tests/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ew-code","download_url":"https://codeload.github.com/ew-code/GAD-App-Tests/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252861075,"owners_count":21815613,"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":[],"created_at":"2025-05-07T10:38:11.309Z","updated_at":"2025-05-07T10:38:12.744Z","avatar_url":"https://github.com/ew-code.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Playwright Tests for GAD Application\n\nThe repository contains code for **automated tests** of the **GAD app (GUI API Demo)** created using the **Playwright library** with **TypeScript**.\n\n## Table of Contents\n\n- [Overview](#overview)\n- [Features](#features)\n- [Prerequisites](#prerequisites)\n- [Installation and Setup](#installation-and-setup)\n- [Usage](#usage)\n  - [Running Tests](#running-tests)\n  - [Tagged Tests](#tagged-tests)\n  - [Running Tests without Tags](#running-tests-without-tags)\n- [Scripts and More](#scripts-and-more)\n- [Contributing](#contributing)\n- [License](#license)\n\n## Overview\n\nThis project automates end-to-end testing of the GAD application using [Playwright](https://playwright.dev/). The tests are written in [**TypeScript**](https://www.typescriptlang.org/) to ensure type safety and maintainability.\n\nThe repository contains code for **automated tests** of the **GAD app (GUI API Demo)** created using the **Playwright library**. You can download the GAD application for testing purposes from the [official repo](https://github.com/jaktestowac/gad-gui-api-demo). Follow the instructions in its README to set up the app.\n\n## Features\n\n- Automated end-to-end testing with Playwright\n- TypeScript support for strong typing and maintainable code\n- Configurable environment via `.env` file\n- Tests can be tagged for easy execution of specific scenarios\n- Git hooks with Husky to enforce code quality\n\n## Prerequisites\n\nMake sure the following tools are installed on your system:\n\n- [VS Code](https://code.visualstudio.com/) (recommended for development)\n- [Git](https://git-scm.com/)\n- [Node.js](https://nodejs.org/en/) (version \u003e16)\n\nOptional, but recommended:\n\n- Install **VS Code recommended plugins** for better development experience.\n\n## Installation and Setup\n\n1. **Clone the repository**:\n\n   ```bash\n   git clone https://github.com/your-repo-url\n   cd your-repo-url\n   ```\n\n2. **Install dependencies**:\n\n   ```bash\n   npm install\n   ```\n\n3. **Set up Playwright**:\n\n   ```bash\n   npx playwright install --with-deps chromium\n   ```\n\n4. **Set up Husky for Git hooks** (optional):\n\n   ```bash\n   npx husky install\n   ```\n\n5. **Prepare environment variables**:\n   - Copy the `.env-template` to `.env`:\n     ```bash\n     cp .env-template .env\n     ```\n   - Install `dotenv` for environment management:\n     ```bash\n     npm i -D dotenv\n     ```\n   - Update the `BASE_URL` variable in `.env` to point to the GAD application's main URL.\n\n## Usage\n\n### Running Tests\n\nTo run all tests in the Playwright test suite, use the following command:\n\n```bash\nnpx playwright test\n```\n\n### Tagged Tests\n\nYou can run specific tests by using tags defined in your test cases. For example:\n\n- Run a single tagged test:\n\n  ```bash\n  npx playwright test --grep @GAD-R01-01\n  ```\n\n- Run all tests with specific tags:\n\n  ```bash\n  npx playwright test --grep @GAD-R01\n  ```\n\n  Or:\n\n  ```bash\n  npx playwright test --grep \"@GAD\"\n  ```\n\n- Run a specific test multiple times:\n  ```bash\n  npx playwright test --grep @GAD-R03-01 --repeat-each=5\n  ```\n\n### Running Tests Without Tags\n\nTo run all tests that **do not have a specific tag**, use the `--grep-invert` option:\n\n```bash\nnpx playwright test --grep-invert @GAD-R01\n```\n\n### Scripts and More\n\nFor additional use cases, such as running tests in specific browsers or using other Playwright features, check the `scripts` section in the `package.json` file. You can customize commands to fit your testing needs.\n\n## Contributing\n\nContributions are welcome! If you'd like to contribute, please fork the repository and submit a pull request. Ensure that your changes are well-documented and tested.\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for more details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Few-code%2Fgad-app-tests","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Few-code%2Fgad-app-tests","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Few-code%2Fgad-app-tests/lists"}