{"id":16293260,"url":"https://github.com/noriste/feti-workshop-e2e-testing-with-puppeteer","last_synced_at":"2026-05-02T05:36:38.773Z","repository":{"id":66012749,"uuid":"142042267","full_name":"NoriSte/feti-workshop-e2e-testing-with-puppeteer","owner":"NoriSte","description":"The reference repo of a workshop for FETI about browser automation (both for E2E testing and for web scraping) with Puppeteer. Workshop level: basic.","archived":false,"fork":false,"pushed_at":"2019-06-03T09:49:12.000Z","size":481,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-12T20:03:32.243Z","etag":null,"topics":["e2e-testing","e2e-tests","puppeteer","scraping-websites","testing-tools","web"],"latest_commit_sha":null,"homepage":"https://slides.com/noriste/e2e-testing-workshop-feti","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/NoriSte.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-07-23T16:45:22.000Z","updated_at":"2023-02-05T16:29:22.000Z","dependencies_parsed_at":"2023-05-06T09:17:36.936Z","dependency_job_id":null,"html_url":"https://github.com/NoriSte/feti-workshop-e2e-testing-with-puppeteer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/NoriSte/feti-workshop-e2e-testing-with-puppeteer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NoriSte%2Ffeti-workshop-e2e-testing-with-puppeteer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NoriSte%2Ffeti-workshop-e2e-testing-with-puppeteer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NoriSte%2Ffeti-workshop-e2e-testing-with-puppeteer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NoriSte%2Ffeti-workshop-e2e-testing-with-puppeteer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NoriSte","download_url":"https://codeload.github.com/NoriSte/feti-workshop-e2e-testing-with-puppeteer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NoriSte%2Ffeti-workshop-e2e-testing-with-puppeteer/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259521513,"owners_count":22870446,"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":["e2e-testing","e2e-tests","puppeteer","scraping-websites","testing-tools","web"],"created_at":"2024-10-10T20:10:40.204Z","updated_at":"2026-05-02T05:36:38.746Z","avatar_url":"https://github.com/NoriSte.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## feti-workshop-e2e-testing-with-puppeteer\nThe reference repo of a workshop for FETI about browser automation (both for E2E testing and for web scraping) with Puppeteer. Workshop level: basic.\nTo attend the workshop you only need to know JS promises and async/await.\n\n**Important**: if you are just looking for the code of the working tests, you'll find it on the  ```develop``` branch\n\n# E2E testing and browser scraping with Puppeteer\n## A 2018 workshop for FETI\n\n## Contents\n\n- [Links](#links)\n- [Installation instructions](#installation-instructions)\n- [Branch naming](#branch-naming)\n- [A special thank to](#a-special-thank-to)\n\n---\n\n### Links\n\n- [Slides](https://slides.com/noriste/e2e-testing-workshop-feti)\n- [FETI (FrontEnders Ticino)](http://www.frontenders.ch/)\n- [Meetup](https://www.meetup.com/it-IT/FrontEnders-Ticino/events/258183736/)\n- [Puppeteer API](https://github.com/GoogleChrome/puppeteer/blob/master/docs/api.md)\n\n### Installation instructions\n\nThe project requires Node.js 8+, launch\n\n```bash\n$ npm install\n$ npm test\n```\n\nIf you see something like this\n```bash\nPASS  test/min.e2e.test.js\n  Generic check\n    ✓ You're ready for the workshop :) (818ms)\n\nTest Suites: 1 passed, 1 total\nTests:       1 passed, 1 total\nSnapshots:   0 total\nTime:        2.121s\n```\nit means that you're ready for the attending the workshop or to train by yourself with the tests I prepared.\n\u003cbr /\u003e\n\u003cbr /\u003e\n\u003cbr /\u003e\n\n### Branch naming\n\n- master: just the README and the isntallation instructions\n- test-1 ([code](https://github.com/NoriSte/feti-workshop-e2e-testing-with-puppeteer/blob/test-1/test/test-1.e2e.test.js#L22)): write a test that passes if the main button takes the user to the linked page\n- test-2: it's the same of test-1... but with a damper cookie footer to be accepted\n- test-3: the cookie footer now disappear with a CSS animation\n- test-4: the cookie footer trigger an event when it's hidden\n- test-5-step1 ([code](https://github.com/NoriSte/feti-workshop-e2e-testing-with-puppeteer/blob/test-5-step1/test/test-5.e2e.test.js#L35)): add a Todo in the Vue app and check that it's showed in page\n- test-5-step2 ([code](https://github.com/NoriSte/feti-workshop-e2e-testing-with-puppeteer/blob/test-5-step2/test/test-5.e2e.test.js#L62)): ad and remove some Todos and then check the state of the store of the Vue app\n- test-6 ([code](https://github.com/NoriSte/feti-workshop-e2e-testing-with-puppeteer/blob/test-6/scrape-google-test-6.js#L28)): scrape the first 30 results of a given query directly by Google\n\nEvery test has a working solution in another branch\n- test-1-solution ([code](https://github.com/NoriSte/feti-workshop-e2e-testing-with-puppeteer/blob/test-1-solution/test/test-1.e2e.test.js#L22))\n- test-2-solution ([code](https://github.com/NoriSte/feti-workshop-e2e-testing-with-puppeteer/blob/test-2-solution/test/test-2.e2e.test.js#L24))\n- test-3-solution ([code](https://github.com/NoriSte/feti-workshop-e2e-testing-with-puppeteer/blob/test-3-solution/test/test-3.e2e.test.js#L30))\n- test-4-solution ([code](https://github.com/NoriSte/feti-workshop-e2e-testing-with-puppeteer/blob/test-4-solution/test/test-4.e2e.test.js#L31))\n- test-5-step1-solution ([code](https://github.com/NoriSte/feti-workshop-e2e-testing-with-puppeteer/blob/test-5-step1-solution/test/test-5.e2e.test.js#L39))\n- test-5-step2-solution ([code](https://github.com/NoriSte/feti-workshop-e2e-testing-with-puppeteer/blob/test-5-step2-solution/test/test-5.e2e.test.js#L62))\n- test-6-solution ([code](https://github.com/NoriSte/feti-workshop-e2e-testing-with-puppeteer/blob/test-6-solution/scrape-google-test-6.js#L24))\n- develop: here you can find all the tests and the solutions\n\n### A special thank to\n\n- [FETI](http://www.frontenders.ch/) for all the work they do\n- Massimo Foti for inspiring me with his [Unit Testing Workshop](https://www.meetup.com/it-IT/FrontEnders-Ticino/events/245384423/)\n- Kent C. Dodds for the amazing “[Solidifying what you learn](https://blog.kentcdodds.com/solidifying-what-you-learn-6650258c84be)” post\n- Luca Previtali and [Creeo Studio](http://creeostudio.it/) that allowed me to try this workshop in advance\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnoriste%2Ffeti-workshop-e2e-testing-with-puppeteer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnoriste%2Ffeti-workshop-e2e-testing-with-puppeteer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnoriste%2Ffeti-workshop-e2e-testing-with-puppeteer/lists"}