{"id":28420745,"url":"https://github.com/redhat-developer/consoledot-e2e","last_synced_at":"2025-06-26T17:31:07.770Z","repository":{"id":61594973,"uuid":"552880641","full_name":"redhat-developer/consoledot-e2e","owner":"redhat-developer","description":null,"archived":false,"fork":false,"pushed_at":"2023-06-06T09:41:09.000Z","size":322,"stargazers_count":3,"open_issues_count":3,"forks_count":9,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-06-05T05:30:19.333Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/redhat-developer.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-10-17T11:24:34.000Z","updated_at":"2023-06-23T13:14:58.000Z","dependencies_parsed_at":"2022-10-19T15:45:17.668Z","dependency_job_id":null,"html_url":"https://github.com/redhat-developer/consoledot-e2e","commit_stats":null,"previous_names":[],"tags_count":435,"template":false,"template_full_name":null,"purl":"pkg:github/redhat-developer/consoledot-e2e","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redhat-developer%2Fconsoledot-e2e","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redhat-developer%2Fconsoledot-e2e/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redhat-developer%2Fconsoledot-e2e/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redhat-developer%2Fconsoledot-e2e/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/redhat-developer","download_url":"https://codeload.github.com/redhat-developer/consoledot-e2e/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redhat-developer%2Fconsoledot-e2e/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262113140,"owners_count":23260969,"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-06-05T03:49:32.773Z","updated_at":"2025-06-26T17:31:07.750Z","avatar_url":"https://github.com/redhat-developer.png","language":"TypeScript","readme":"# E2E tests for console.redhat.com\n[![Playwright Tests](https://github.com/redhat-developer/consoledot-e2e/actions/workflows/playwright.yml/badge.svg?branch=main)](https://github.com/redhat-developer/consoledot-e2e/actions/workflows/playwright.yml)\n\nE2E tests for RedHat Console.\n\n## Build \u0026 Run\n\nTools:\n\n - [Typescript](https://www.typescriptlang.org/): close to the UI developers ecosystem\n - [NPM](https://www.npmjs.com/): build tool\n - [Node](https://nodejs.org/en/): runtime\n - [Playwright](https://playwright.dev/): framework for UI testing\n - [GH Action](https://docs.github.com/en/actions): infrastructure\n\nLocal requirements:\n\n- `npm`: `8.X`\n- `node`: `16.X`\n\nBefore running the tests you would need to provide a valid username and password to be used in the form of environment variables.\n\n```bash\nexport ENV_TYPE=... # stage or production - depends on environment \nexport USE_BETA=... # true/false to enable test run on Beta \nexport TEST_USERNAME=...\nexport TEST_PASSWORD=...\nexport TEST_ADMIN_USERNAME=...\nexport TEST_ADMIN_PASSWORD=...\nexport TEST_2_USERNAME=...\nexport TEST_2_PASSWORD=...\nexport STARTING_PAGE=...\n```\n\nor drop a `.env` file in the root folder with a similar content:\n\n```\nUSE_BETA=... # true/false to enable test run on Beta \nENV_TYPE=... # stage or production - depends on environment\nTEST_USERNAME=...\nTEST_PASSWORD=...\nTEST_ADMIN_USERNAME=...\nTEST_ADMIN_PASSWORD=...\nTEST_2_USERNAME=...\nTEST_2_PASSWORD=...\nSTARTING_PAGE=...\n```\n\nNow you can run the tests:\n\n```bash\nnpm install # Install all the needed Node dependencies\nnpx playwright install # Install all the Playwright dependencies and needed browsers\nnpx playwright test --project chromium # Executes the tests on a selected browser (`chromium` in this case)\nnpm test-chrome # package.json has prepared scripts so you don't need to call whole npx command\nnpm test-firefox\n```\n\nif you need to debug you can use the Playwright console and have a Playwright helper available in console by executing:\n\n```bash\nPWDEBUG=1 npx playwright test --project chromium --debug\n```\n\nFor enabling slow mode 1s for debugging use\n```bash\nSLOW_MODE=1000 npx playwright test\n```\n\nFor enabling error logging use\n```bash\nENABLE_ERR_LOGGING=1 npx playwright test\n```\n\n### Setup\n\nThis repository uses GitHub Actions as infrastructure to run the tests against publicly accessible services.\nThe CI only runs on the `main` branch to avoid sharing secrets on branches and forks.\n\n### Security\n\nThe only sensitive data in this project is the username and password used to login.\nThose are stored in [GitHub Encrypted Secrets](https://docs.github.com/en/actions/security-guides/encrypted-secrets).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredhat-developer%2Fconsoledot-e2e","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fredhat-developer%2Fconsoledot-e2e","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredhat-developer%2Fconsoledot-e2e/lists"}