{"id":29637342,"url":"https://github.com/pickleboxer/qavapeinitaly","last_synced_at":"2025-07-21T18:37:15.861Z","repository":{"id":302416958,"uuid":"1012388909","full_name":"PickleBoxer/QAVapeinitaly","owner":"PickleBoxer","description":null,"archived":false,"fork":false,"pushed_at":"2025-07-02T09:29:40.000Z","size":0,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-02T09:39:32.723Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/PickleBoxer.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,"zenodo":null}},"created_at":"2025-07-02T09:00:51.000Z","updated_at":"2025-07-02T09:29:43.000Z","dependencies_parsed_at":"2025-07-02T09:39:40.587Z","dependency_job_id":"1d687fee-14fb-47db-9842-4a80af01ebf6","html_url":"https://github.com/PickleBoxer/QAVapeinitaly","commit_stats":null,"previous_names":["pickleboxer/qavapeinitaly"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/PickleBoxer/QAVapeinitaly","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PickleBoxer%2FQAVapeinitaly","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PickleBoxer%2FQAVapeinitaly/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PickleBoxer%2FQAVapeinitaly/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PickleBoxer%2FQAVapeinitaly/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PickleBoxer","download_url":"https://codeload.github.com/PickleBoxer/QAVapeinitaly/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PickleBoxer%2FQAVapeinitaly/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266353183,"owners_count":23915909,"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-07-21T11:47:31.412Z","response_time":64,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"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":[],"created_at":"2025-07-21T18:37:15.267Z","updated_at":"2025-07-21T18:37:15.847Z","avatar_url":"https://github.com/PickleBoxer.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# VapeIniItaly E2E Tests\n\nEnd-to-end testing suite for the VapeIniItaly website using [Playwright](https://playwright.dev/).\n\n## 📋 Overview\n\nThis project contains automated end-to-end tests for the VapeIniItaly e-commerce website. It tests critical user flows including:\n\n- Age verification popup functionality\n- Cookie consent handling\n- MailChimp popup interactions\n- User authentication\n- Payment options validation\n\nThe tests run on Chromium by default, with configurations available for Firefox and WebKit.\n\n## 🔧 Setup\n\n### Prerequisites\n\n- Node.js 16 or higher\n- npm or yarn\n\n### Installation\n\n1. Clone the repository:\n```bash\ngit clone https://github.com/yourusername/vapeinitaly-tests.git\ncd vapeinitaly-tests\n```\n\n2. Install dependencies:\n```bash\nnpm ci\n```\n\n3. Install Playwright browsers:\n```bash\nnpx playwright install --with-deps\n```\n\n4. Set up environment variables:\n```bash\nnpm run setup-env\n```\nThis will create a `.env` file from the `.env.example` template if one doesn't exist. \nUpdate the `.env` file with your test credentials.\n\n## 🚀 Running Tests\n\n### Run all tests:\n\n```bash\nnpm test\n```\n\n### Run specific test categories:\n\n```bash\n# Run only functional tests\nnpx playwright test tests/UI/campaigns/functional/\n```\n\n### Run specific test areas:\n\n```bash\n# Run login/logout tests\nnpx playwright test tests/UI/campaigns/functional/FO/01_login/\n```\n### Run a specific test file:\n\n```bash\nnpx playwright test tests/UI/campaigns/01_test.spec.js\n```\n\n### Run tests with UI mode:\n\n```bash\nnpx playwright test --ui\n```\n\n### Run tests in headed mode (to see the browser):\n\n```bash\nnpx playwright test --headed\n```\n\n### Run a specific test by title pattern:\n\n```bash\nnpx playwright test -g \"Payment Option\"\n```\n\n## 📊 Test Reports\n\nAfter running tests, you can view the HTML report:\n\n```bash\nnpx playwright show-report\n```\n\nThe report will be available at `playwright-report/index.html`.\n\n## 📁 Project Structure\n\n\n### Test Categories\n\n#### 🔧 **Functional Tests** (`functional/FO/`)\nTests that verify specific functionality works as expected.\n\n#### 🔄 **Regression Tests** (`regression/`)\nTests that ensure existing functionality continues to work after changes.\n\n#### ⚡ **Sanity Tests** (`sanity/`)\nQuick smoke tests to verify basic functionality.\n\n#### 🔗 **Integration Tests** (`01_test_refactored.spec.js`)\nComplex cross-functional tests.\n\n### Configuration Files\n- **playwright.config.js** - Main Playwright configuration\n- **.github/workflows/** - CI/CD workflow configuration\n- **.env** - Local environment variables (not committed to git)\n- **.env.example** - Template for environment variables\n- **TEST_ORGANIZATION.md** - Detailed test organization documentation\n\n## 🔒 Environment Variables\n\nThe following environment variables are required:\n\n- `TEST_USER_EMAIL` - Email for user authentication tests\n- `TEST_USER_PASSWORD` - Password for user authentication tests\n\n\u003e **ℹ️ Note:**  \n\u003e The following variables are **only required for GitHub workflows** and are **not necessary for local development**:\n\u003e\n\u003e - `QA_UPLOAD_TOKEN` – Token for uploading test results to the reporting API  \n\u003e - `API_BASE_URL` – Base URL for the API used in tests\n\nFor local development, these can be set in the `.env` file.\nFor CI/CD, these are set as GitHub secrets.\n\n## 🤖 CI/CD Integration\n\nTests are automatically run on GitHub Actions:\n\n- On manual triggers (workflow_dispatch)\n- On a nightly schedule (midnight)\n\nThe workflow uploads test results to a reporting API for monitoring.\n\n## 🛠️ Troubleshooting\n\nIf you encounter issues with environment variables:\n\n1. Make sure the `.env` file exists and contains the required variables\n2. Run `npm run setup-env` to verify the setup\n\nFor test failures, check the screenshots and traces in the `test-results/` directory.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpickleboxer%2Fqavapeinitaly","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpickleboxer%2Fqavapeinitaly","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpickleboxer%2Fqavapeinitaly/lists"}