{"id":15552408,"url":"https://github.com/bahmutov/cypress-should-callback","last_synced_at":"2025-06-16T21:40:07.252Z","repository":{"id":37983063,"uuid":"163559294","full_name":"bahmutov/cypress-should-callback","owner":"bahmutov","description":"Example running multiple assertions from cypress should(cb) function","archived":false,"fork":false,"pushed_at":"2024-12-17T23:11:32.000Z","size":196,"stargazers_count":2,"open_issues_count":4,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-12-27T20:18:21.901Z","etag":null,"topics":["cypress","cypress-example","cypress-io"],"latest_commit_sha":null,"homepage":"https://glebbahmutov.com/blog/cypress-should-callback/","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/bahmutov.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-12-30T03:40:53.000Z","updated_at":"2024-12-09T04:15:08.000Z","dependencies_parsed_at":"2024-01-17T01:10:58.658Z","dependency_job_id":"4e5107d1-bbae-4a87-a2d7-3d9eaf03f848","html_url":"https://github.com/bahmutov/cypress-should-callback","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bahmutov%2Fcypress-should-callback","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bahmutov%2Fcypress-should-callback/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bahmutov%2Fcypress-should-callback/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bahmutov%2Fcypress-should-callback/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bahmutov","download_url":"https://codeload.github.com/bahmutov/cypress-should-callback/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234552100,"owners_count":18851214,"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":["cypress","cypress-example","cypress-io"],"created_at":"2024-10-02T14:18:59.437Z","updated_at":"2025-01-18T19:08:13.687Z","avatar_url":"https://github.com/bahmutov.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cypress-should-callback [![CircleCI](https://circleci.com/gh/bahmutov/cypress-should-callback.svg?style=svg)](https://circleci.com/gh/bahmutov/cypress-should-callback) [![renovate-app badge][renovate-badge]][renovate-app]\n\n\u003e Example running multiple assertions from cypress `should(cb)` function\n\nRead the companion blog post [Cypress should callback](https://glebbahmutov.com/blog/cypress-should-callback/)\n\n## Specs\n\n- [spec.js](cypress/integration/spec.js) just checks that 3 items appear\n- [spec2.js](cypress/integration/spec2.js) checks each item using complicated selector\n- [spec3.js](cypress/integration/spec3.js) introduces `should(cb)` function\n- [spec4.js](cypress/integration/spec4.js) uses item after assertion passes\n- [spec5.js](cypress/integration/spec5.js) shows [cypress-pipe](https://github.com/NicholasBoll/cypress-pipe#readme) to get elements\n- [spec6.js](cypress/integration/spec6.js) refactors function using [Ramda](https://ramdajs.com/docs/) to make everything simpler\n\n## More information\n\n- See [assertion examples](https://example.cypress.io/commands/assertions)\n- Read [Cypress assertions page](https://on.cypress.io/assertions)\n- Read [`.should`](https://on.cypress.io/should) documentation\n\n### Small print\n\nAuthor: Gleb Bahmutov \u0026lt;gleb.bahmutov@gmail.com\u0026gt; \u0026copy; 2019\n\n- [@bahmutov](https://twitter.com/bahmutov)\n- [glebbahmutov.com](https://glebbahmutov.com)\n- [blog](https://glebbahmutov.com/blog)\n\nLicense: MIT - do anything with the code, but don't blame me if it does not work.\n\nSupport: if you find any problems with this module, email / tweet /\n[open issue](https://github.com/bahmutov/cypress-should-callback/issues) on Github\n\n## MIT License\n\nCopyright (c) 2019 Gleb Bahmutov \u0026lt;gleb.bahmutov@gmail.com\u0026gt;\n\nPermission is hereby granted, free of charge, to any person\nobtaining a copy of this software and associated documentation\nfiles (the \"Software\"), to deal in the Software without\nrestriction, including without limitation the rights to use,\ncopy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the\nSoftware is furnished to do so, subject to the following\nconditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES\nOF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT\nHOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,\nWHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\nFROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR\nOTHER DEALINGS IN THE SOFTWARE.\n\n[renovate-badge]: https://img.shields.io/badge/renovate-app-blue.svg\n[renovate-app]: https://renovateapp.com/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbahmutov%2Fcypress-should-callback","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbahmutov%2Fcypress-should-callback","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbahmutov%2Fcypress-should-callback/lists"}