{"id":15552373,"url":"https://github.com/bahmutov/cypress-wordle","last_synced_at":"2025-09-26T11:31:20.333Z","repository":{"id":38422945,"uuid":"449032676","full_name":"bahmutov/cypress-wordle","owner":"bahmutov","description":"Solve the Wordle game using Cypress test","archived":false,"fork":false,"pushed_at":"2024-09-28T07:30:35.000Z","size":1424,"stargazers_count":10,"open_issues_count":3,"forks_count":5,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-10-03T14:17:52.102Z","etag":null,"topics":["cypress-example"],"latest_commit_sha":null,"homepage":"","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":"2022-01-17T20:03:06.000Z","updated_at":"2023-08-30T19:14:08.000Z","dependencies_parsed_at":"2023-12-09T11:23:45.377Z","dependency_job_id":"16489800-f92b-40ce-af84-ac04a64ec883","html_url":"https://github.com/bahmutov/cypress-wordle","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-wordle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bahmutov%2Fcypress-wordle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bahmutov%2Fcypress-wordle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bahmutov%2Fcypress-wordle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bahmutov","download_url":"https://codeload.github.com/bahmutov/cypress-wordle/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234307205,"owners_count":18811673,"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-example"],"created_at":"2024-10-02T14:17:58.955Z","updated_at":"2025-09-26T11:31:19.882Z","avatar_url":"https://github.com/bahmutov.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cypress-wordle [![ci](https://github.com/bahmutov/cypress-wordle/actions/workflows/ci.yml/badge.svg?branch=main\u0026event=push)](https://github.com/bahmutov/cypress-wordle/actions/workflows/ci.yml) [![cypress-wordle](https://img.shields.io/endpoint?url=https://dashboard.cypress.io/badge/count/6iu6px/main\u0026style=flat\u0026logo=cypress)](https://dashboard.cypress.io/projects/6iu6px/runs) [![renovate-app badge][renovate-badge]][renovate-app] ![cypress version](https://img.shields.io/badge/cypress-13.6.6-brightgreen) [![hint](https://github.com/bahmutov/cypress-wordle/actions/workflows/hint.yml/badge.svg?branch=main)](https://github.com/bahmutov/cypress-wordle/actions/workflows/hint.yml)\n\n\u003e Solve the Wordle game using Cypress test\n\n![Really solved game](./images/really-solved.png)\n\n## Specs\n\n**Note:** the game has recently changed its implementation, rendering many specs in need of major changes. I have kept only the `hint` spec up-to-date, skipping the rest of the tests.\n\n- [solve.js](./cypress/integration/solve.js) shows a real recursive solution to the Wordle game, watch the video \"[Solve Wordle Game For Real Using Cypress](https://youtu.be/zQGLR6qXtq0)\".\n- [solve-hard-mode.js](./cypress/integration/solve-hard-mode.js) shows how to solve Wordle in Hard mode by optimizing our word picks, watch the video [\"Solve Wordle In Hard Mode\"](https://youtu.be/SeRLrdtr3Vs).\n- [spec.js](./cypress/integration/spec.js) takes a shortcut and looks up the solution in the game state object the application saves in the local storage. Watch the video \"[Solve Wordle Game Using Cypress](https://www.youtube.com/watch?v=pzFzOKEV-eo)\".\n- [control-the-date.js](./cypress/integration/control-the-date.js) overwrites the current date using [cy.clock](https://on.cypress.io/clock) command and plays the Wordle from other dates. Watch the video [\"Play Wordle From Any Date Using cy.clock\"](https://youtu.be/ZmcOFr2UzZU).\n- [play-every-day.js](./cypress/integration/play-every-day.js) sets synthetic Date in each test to accumulate a long winning streak playing every word from Jan 1st to Jan 17th 2022. Find the recording [here](https://youtu.be/5X4RuyEoQgY).\n- [colors.js](./cypress/integration/colors.js) plays the game using color accessible mode using the dark theme. Saves the screenshot of the solution in the \"cypress/screenshots\" folder.\n- [wordlist-data-session.js](./cypress/integration/wordlist-data-session.js) uses [cypress-data-session](https://github.com/bahmutov/cypress-data-session) plugin to download and keep the word list array cached in memory. Watch the video [\"Use cypress-data-session To Store The Word List\"](https://youtu.be/UZwE1KTz-98).\n- [email-hint.js](./cypress/integration/email-hint.js) hides all letters in the solution but one and emails the screenshot of the solved puzzle daily to myself. Watch the video [\"Generate A Daily Wordle Hint Email With Screenshot\"](https://youtu.be/NOwNg-Nhv4o).\n- [start.js](./cypress/integration/start.js) lets the user provide the starting word. You can trigger this spec from the GitHub Actions UI using the workflow [start.yml](./.github/workflows/start.yml).\n- [vue-wordle/spec.js](./cypress/integration/vue-wordle/spec.js) plays a version of Wordle implemented in [yyx990803/vue-wordle](https://github.com/yyx990803/vue-wordle) interacting via page objects.\n- [a-greener-wordle/spec.js](./cypress/integration/a-greener-wordle/spec.js) solves the \"Greener Wordle\" version hosted at [https://agreenerworldle.org/](https://agreenerworldle.org/).\n\n## Videos\n\nYou can find several videos explaining how to play and solve Wordle using Cypress in my playlist [Cypress Wordle](https://www.youtube.com/playlist?list=PLP9o9QNnQuAaihgCPlXyzlj_P-1TTbj-O).\n\n## Presentations\n\n- [Cypress is a GREAT Wordle player](https://slides.com/bahmutov/cypress-is-a-great-wordle-player)\n\n## Small print\n\nAuthor: Gleb Bahmutov \u0026lt;gleb.bahmutov@gmail.com\u0026gt; \u0026copy; 2022\n\n- [@bahmutov](https://twitter.com/bahmutov)\n- [glebbahmutov.com](https://glebbahmutov.com)\n- [blog](https://glebbahmutov.com/blog)\n- [videos](https://www.youtube.com/glebbahmutov)\n- [presentations](https://slides.com/bahmutov)\n- [cypress.tips](https://cypress.tips)\n- [Cypress Advent 2021](https://cypresstips.substack.com/)\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-wordle/issues) on Github\n\n## MIT License\n\nCopyright (c) 2022 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-wordle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbahmutov%2Fcypress-wordle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbahmutov%2Fcypress-wordle/lists"}