{"id":20196369,"url":"https://github.com/faruktoptas/espresso-robot-pattern-sample","last_synced_at":"2025-04-10T10:43:11.685Z","repository":{"id":68604252,"uuid":"115795521","full_name":"faruktoptas/espresso-robot-pattern-sample","owner":"faruktoptas","description":"Espresso Robot Pattern Sample with Spoon Integration","archived":false,"fork":false,"pushed_at":"2018-09-11T15:42:06.000Z","size":141,"stargazers_count":43,"open_issues_count":1,"forks_count":8,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-24T09:38:25.111Z","etag":null,"topics":["espresso","kotlin","pattern","robot","spoon","ui-testing"],"latest_commit_sha":null,"homepage":"https://medium.com/android-bits/espresso-robot-pattern-in-kotlin-fc820ce250f7","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/faruktoptas.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2017-12-30T12:30:53.000Z","updated_at":"2024-08-24T23:42:32.000Z","dependencies_parsed_at":"2023-04-15T13:22:12.540Z","dependency_job_id":null,"html_url":"https://github.com/faruktoptas/espresso-robot-pattern-sample","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/faruktoptas%2Fespresso-robot-pattern-sample","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/faruktoptas%2Fespresso-robot-pattern-sample/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/faruktoptas%2Fespresso-robot-pattern-sample/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/faruktoptas%2Fespresso-robot-pattern-sample/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/faruktoptas","download_url":"https://codeload.github.com/faruktoptas/espresso-robot-pattern-sample/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248200060,"owners_count":21063812,"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":["espresso","kotlin","pattern","robot","spoon","ui-testing"],"created_at":"2024-11-14T04:23:40.435Z","updated_at":"2025-04-10T10:43:11.677Z","avatar_url":"https://github.com/faruktoptas.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Espresso Robot Pattern Sample with Spoon Integration\n\nA showcase project for Espresso Robot pattern written in Kotlin.\nSee the medium posts for more details:\n\n* [Espresso Robot Pattern in Kotlin](https://medium.com/android-bits/espresso-robot-pattern-in-kotlin-fc820ce250f7)\n* [Running Espresso Tests on Multiple Devices with Spoon](https://medium.com/android-bits/running-espresso-tests-on-multiple-devices-with-spoon-842a5546e3d7)\n\n\n![!gif](https://user-images.githubusercontent.com/1595227/34454223-e2c3a8e4-ed77-11e7-8452-b79771e68789.gif)\n\n```kotlin\n@Test\nfun loginMissingEmailPassword() {\n    login {\n        clickLogin()\n        matchErrorText(string(R.string.missing_fields))\n    }\n}\n\n@Test\nfun loginMissingPassword() {\n    login {\n        setEmail(\"mail@example.com\")\n        clickLogin()\n        matchErrorText(string(R.string.missing_fields))\n    }\n}\n\n@Test\nfun loginWrongPassword() {\n    login {\n        setEmail(\"mail@example.com\")\n        setPassword(\"wrong\")\n        clickLogin()\n        matchErrorText(string(R.string.login_fail))\n    }\n\n}\n\n@Test\nfun loginSuccess() {\n    login {\n        setEmail(\"mail@example.com\")\n        setPassword(\"pass\")\n        clickLogin()\n        matchText(R.id.tvName, string(R.string.name_surname))\n    }\n}\n\n@Test\nfun loginProfileAndSettings() {\n    login {\n        setEmail(\"mail@example.com\")\n        setPassword(\"pass\")\n        clickLogin()\n    }\n    profile {\n        clickSettings()\n        toggleNotifications()\n        toggleNightMode()\n    }\n}\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffaruktoptas%2Fespresso-robot-pattern-sample","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffaruktoptas%2Fespresso-robot-pattern-sample","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffaruktoptas%2Fespresso-robot-pattern-sample/lists"}