{"id":15882361,"url":"https://github.com/another-guy/protractor-angular-seattle","last_synced_at":"2026-05-03T02:41:05.145Z","repository":{"id":89024290,"uuid":"145444500","full_name":"another-guy/protractor-angular-seattle","owner":"another-guy","description":"Pragmatic testing of your Angular applications with Protractor. Slides:","archived":false,"fork":false,"pushed_at":"2018-08-31T16:19:44.000Z","size":209,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-28T14:03:17.290Z","etag":null,"topics":["angular","end-to-end","end-to-end-testing","protractor"],"latest_commit_sha":null,"homepage":"https://slides.com/igorsoloydenko/pragmatic-protractor#/","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/another-guy.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":"2018-08-20T16:39:37.000Z","updated_at":"2018-08-24T23:29:50.000Z","dependencies_parsed_at":"2023-06-13T14:45:29.177Z","dependency_job_id":null,"html_url":"https://github.com/another-guy/protractor-angular-seattle","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/another-guy/protractor-angular-seattle","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/another-guy%2Fprotractor-angular-seattle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/another-guy%2Fprotractor-angular-seattle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/another-guy%2Fprotractor-angular-seattle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/another-guy%2Fprotractor-angular-seattle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/another-guy","download_url":"https://codeload.github.com/another-guy/protractor-angular-seattle/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/another-guy%2Fprotractor-angular-seattle/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32556771,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T00:31:16.350Z","status":"online","status_checked_at":"2026-05-03T02:00:09.297Z","response_time":103,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","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":["angular","end-to-end","end-to-end-testing","protractor"],"created_at":"2024-10-06T04:02:45.719Z","updated_at":"2026-05-03T02:41:05.140Z","avatar_url":"https://github.com/another-guy.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ProtractorAngularSeattle\n\n## Code Evolituion\n\n```sh\n$ git tag --list\n\n0-scaffolded-project\n1-repair-the-only-test\n2-add-delay-before-exiting-test\n3-add-simple-timesheet-table-with-totals\n4-add-BEM-CSS-classes\n5-straightforward-timesheet-table-tests\n6-few-page-part-objects\n7-timesheet-test-clean-of-css-selectors\n8-refactor-page-object-and-page-parts\n9-rewrite-timesheet-test-for-dynamism\na-refactor-to-reduce-code-duplication\n```\n\n## Development server\n\nRun `ng serve` for a dev server.\nNavigate to `http://localhost:4200/`.\n\n## Running end-to-end tests\n\nRun `ng e2e` to execute the end-to-end tests via [Protractor](http://www.protractortest.org/).\n\n## The core idea\n\nThe code of the end-to-end tests should be written with [business level concepts](https://slides.com/igorsoloydenko/pragmatic-protractor#/16).\n\nAll the DOM-related machinery that is used by the test should be hidden inside [`PageObjects`/`ComponentObjects`](https://slides.com/igorsoloydenko/pragmatic-protractor#/15).\n\n```ts\n  describe('Week Totals', () =\u003e {\n    it('should be calculated properly for empty timesheet', async () =\u003e {\n      await timeSheetPage.weekLines.forEach(async weekDay =\u003e\n        expect(await weekDay.totalCell.getText()).toBe('0')\n      );\n\n      expect(await timeSheetPage.footer.grandTotal.getText()).toBe('0');\n    });\n\n    it('should be calculated properly for non-empty timesheet', async () =\u003e {\n      await fillInTimeSheet(\n        [\n          [ { h: '0', c: 'reg' }, { h: '1', c: 'reg' }, { h: '2', c: 'reg' }, { h: '3', c: 'reg' }, { h: '4', c: 'reg' }, { h: '5', c: 'reg' }, { h: '0', c: 'reg' } ],\n          [ { h: '0', c: 'vac' }, { h: '1', c: 'vac' }, { h: '2', c: 'vac' }, { h: '3', c: 'vac' }, { h: '4', c: 'vac' }, { h: '5', c: 'vac' }, { h: '0', c: 'vac' } ],\n          [ { h: '8', c: 'reg' }, { h: '0', c: 'reg' }, { h: '0', c: 'reg' }, { h: '0', c: 'reg' }, { h: '0', c: 'reg' }, { h: '0', c: 'reg' }, { h: '8', c: 'reg' } ],\n          [ { h: '8', c: 'vac' }, { h: '0', c: 'vac' }, { h: '0', c: 'vac' }, { h: '0', c: 'vac' }, { h: '0', c: 'vac' }, { h: '0', c: 'vac' }, { h: '8', c: 'vac' } ],\n        ]\n      );\n\n      expect(await timeSheetPage.weekLines.get(0).totalCell.getText()).toBe('15');\n      expect(await timeSheetPage.weekLines.get(1).totalCell.getText()).toBe('0');\n      expect(await timeSheetPage.weekLines.get(2).totalCell.getText()).toBe('16');\n      expect(await timeSheetPage.weekLines.get(3).totalCell.getText()).toBe('0');\n      expect(await timeSheetPage.footer.grandTotal.getText()).toBe('31');\n    });\n  });\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanother-guy%2Fprotractor-angular-seattle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanother-guy%2Fprotractor-angular-seattle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanother-guy%2Fprotractor-angular-seattle/lists"}