{"id":15168370,"url":"https://github.com/wttech/coge2e","last_synced_at":"2025-10-01T00:32:04.980Z","repository":{"id":54885194,"uuid":"145666544","full_name":"wttech/cogE2E","owner":"wttech","description":"Cognifide default setup for Puppeteer and Protractor tests.","archived":true,"fork":false,"pushed_at":"2021-01-22T11:00:48.000Z","size":124,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-01-14T05:40:00.219Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/wttech.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-08-22T06:33:00.000Z","updated_at":"2023-01-28T10:51:00.000Z","dependencies_parsed_at":"2022-08-14T05:40:49.567Z","dependency_job_id":null,"html_url":"https://github.com/wttech/cogE2E","commit_stats":null,"previous_names":["cognifide/coge2e"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wttech%2FcogE2E","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wttech%2FcogE2E/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wttech%2FcogE2E/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wttech%2FcogE2E/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wttech","download_url":"https://codeload.github.com/wttech/cogE2E/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234803459,"owners_count":18889258,"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":"2024-09-27T06:02:00.052Z","updated_at":"2025-10-01T00:32:04.364Z","avatar_url":"https://github.com/wttech.png","language":"JavaScript","readme":"# E2E config\nDefault setup for Puppeteer and Protractor tests.\n\n## Installation\n\n```bash\n$ npm install coge2e --global\n```\n\n## Usage\n\n```bash\n$ coge2e init\n```\nRunning this command will init setup and allow to select which configuration should be added.\n\n## Protractor setup\n### Running the tests\nTo run test with default configuration:\n```\nnpm run test\n```\nThere are two ways to run Protractor tests on specific environment: one way is to add another parameter  `--params.env [env_name]`. List of available environment you an find in `/data/env.json`. The second way, easiest, is to run specific npm script: by default, configuration comes with 4 environments:\n- `local` - default environment which is tested when `npm run test` is executed\n- `dev`\n- `staging`\n- `prod`\n\nIn order to run tests on, for example, on `prod` environment simply run `npm run test:prod`\n```\nnpm run test --params.env staging\n/* or */\nnpm run test:staging\n```\nReal life example:\n```\nnpm run test\n    --suite homepage\n    --exclude tests/analytics/homepage.js\n    --params.env prod\n\n/* or */\n\nnpm run test:prod\n    --suite homepage\n    --exclude tests/analytics/homepage.js\n\n```\n\n### How to write Protractor tests\n* Get familiar with technology stack:\n    * https://www.protractortest.org/\n    * https://jasmine.github.io/\n* Read about:\n    * [Page Objects](https://www.protractortest.org/#/page-objects)\n    * [Styleguide for Protractor](https://github.com/CarmenPopoviciu/protractor-styleguide)\n\n## Puppeteer \u0026 Jest setup\n### Running the tests\n\nSimilar to Protractor config, default configuration comes with 4 default environments:\n- `local` - default environment which is tested when `npm run test` is executed\n- `dev`\n- `staging`\n- `prod`\n\nTests can be run on specific environment by running scripts like `npm run test:prod`. The only difference is that it's not possible to pass arguments like `--params.env prod` to the script, so trying to run `npm run test --params.env prod` will result in error. The only acceptable arguments are those that are available for [Jest CLI](https://jestjs.io/docs/en/cli) options.\n\n### How to write Puppeteer tests\n* Puppeteer Github page\n    * https://github.com/GoogleChrome/puppeteer\n* Jest\n    * [Getting started](https://jestjs.io/docs/en/getting-started)\n\n## License\nMIT\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwttech%2Fcoge2e","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwttech%2Fcoge2e","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwttech%2Fcoge2e/lists"}