{"id":16323027,"url":"https://github.com/kiki-le-singe/react-native-maestro","last_synced_at":"2025-03-20T22:31:38.039Z","repository":{"id":148156112,"uuid":"617039776","full_name":"kiki-le-singe/react-native-maestro","owner":"kiki-le-singe","description":"A small project to show how to make UI testing with React Native and Maestro","archived":false,"fork":false,"pushed_at":"2023-03-24T15:39:05.000Z","size":17690,"stargazers_count":53,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"develop","last_synced_at":"2024-10-11T22:53:05.236Z","etag":null,"topics":["android","automated-testing","e2e-testing","e2e-tests","expo-cli","expo-react-router","expo-reactnative","ios","javascript","maestro","maestro-testing","mobile","react-native","test-automation","testing","testing-tools","ui-testing"],"latest_commit_sha":null,"homepage":"https://medium.com/@aalbertini95_90842/mobile-ui-testing-with-react-native-and-maestro-af7fa34df2fd","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/kiki-le-singe.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":"2023-03-21T15:26:26.000Z","updated_at":"2024-08-15T12:33:45.000Z","dependencies_parsed_at":"2023-05-19T08:15:19.091Z","dependency_job_id":null,"html_url":"https://github.com/kiki-le-singe/react-native-maestro","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/kiki-le-singe%2Freact-native-maestro","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kiki-le-singe%2Freact-native-maestro/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kiki-le-singe%2Freact-native-maestro/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kiki-le-singe%2Freact-native-maestro/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kiki-le-singe","download_url":"https://codeload.github.com/kiki-le-singe/react-native-maestro/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244085023,"owners_count":20395523,"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":["android","automated-testing","e2e-testing","e2e-tests","expo-cli","expo-react-router","expo-reactnative","ios","javascript","maestro","maestro-testing","mobile","react-native","test-automation","testing","testing-tools","ui-testing"],"created_at":"2024-10-10T22:53:36.998Z","updated_at":"2025-03-20T22:31:38.035Z","avatar_url":"https://github.com/kiki-le-singe.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Mobile UI testing with React Native and Maestro\n\n## Introduction\n\nI started this project mainly for fun and to develop my mobile UI testing skills. After reading the [Documentation for Maestro](https://maestro.mobile.dev/) and [Maestro with React Native](https://maestro.mobile.dev/platform-support/react-native), I found it seemed easy to implement, simple and effective. So... Let's go! :D\nI created a React Native app built with Expo to simply this part. The aim of this project is `Maestro`.\nEnjoy it! :)\n\nThis app has three screens:\n\n- A sign in interface with two fields, email and password. After clicking the sign in button, if the form is valid `(a valid email and password)` we'll see the next screen.\n- A simple screen with greetings and email user, a link to another screen and a sign out button.\n- A scrollview screen with some texts and images. It's also possible to go back to the previous screen.\n\n\u003cimg src=\"./docs/app.gif\" alt=\"React Native Maestro app\" /\u003e\n\n## Installation\n\n### React Native Maestro\n\n```shell\n$ git clone https://github.com/kiki-le-singe/react-native-maestro.git \u003cname\u003e\n$ cd \u003cname\u003e\n$ npm install\n```\n\n### Maestro\n\n```shell\n$ curl -Ls \"https://get.maestro.mobile.dev\" | bash\n$ maestro -v\n```\n\n\u003e Only for iOS: [Connecting to Your Device](https://maestro.mobile.dev/getting-started/installing-maestro#connecting-to-your-device)\n\n```shell\n$ brew tap facebook/fb\n$ brew install facebook/fb/idb-companion\n```\n\nSee the official documentation: [Installing Maestro](https://maestro.mobile.dev/getting-started/installing-maestro)\n\n## Run\n\n```bash\n$ npm start\n$ npm run ios or android\n```\n\n## Maestro tests\n\nThe tests are in the `maestro` directory. You can run them locally in your iOS simulator or Android emulator. At the moment, Maestro does not support real iOS devices. See [Installing Maestro](https://maestro.mobile.dev/getting-started/installing-maestro) and [Connecting to Your Device](https://maestro.mobile.dev/getting-started/installing-maestro#connecting-to-your-device)\n\nYou can run the tests in CI with `Maestro Cloud`. See [Running Flows on CI](https://maestro.mobile.dev/getting-started/running-flows-on-ci).\n\n### Running tests\n\n```bash\n# run single test\n$ maestro test maestro/[fileName].yaml\n```\n\n\u003cbr /\u003e\n\n```bash\n$ maestro test maestro/simple-flow.yaml\n```\n\n\u003cimg src=\"./docs/simple-maestro-flow.gif\" alt=\"Simple Maestro flow\" width=\"800\" height=\"600\" /\u003e\n\n\u003cbr /\u003e\u003cbr /\u003e\n\n```bash\n$ maestro test maestro/signin/signin-errors-flow.yaml\n```\n\n\u003cimg src=\"./docs/signin-errors-flow.gif\" alt=\"Sign in errors Maestro flow\" width=\"800\" height=\"600\" /\u003e\n\n\u003cbr /\u003e\u003cbr /\u003e\n\n```bash\n$ maestro test maestro/signin/signin-success-flow.yaml\n```\n\n\u003cimg src=\"./docs/signin-success-flow.gif\" alt=\"Sign in success Maestro flow\" width=\"800\" height=\"600\" /\u003e\n\n\u003cbr /\u003e\u003cbr /\u003e\n\n```bash\n$ maestro test maestro/home/home-flow.yaml\n```\n\n\u003cimg src=\"./docs/home-flow.gif\" alt=\"Home flow\" width=\"800\" height=\"600\" /\u003e\n\n\u003cbr /\u003e\u003cbr /\u003e\n\n```bash\n$ maestro test maestro/details/details-flow.yaml\n```\n\n\u003cimg src=\"./docs/details-flow.gif\" alt=\"Details flow\" width=\"800\" height=\"600\" /\u003e\n\n\u003cbr /\u003e\n\n\u003e Sometimes you could see this error: [Failed to reach out XCUITest Server](https://github.com/mobile-dev-inc/maestro/issues/880)... Maybe your component is not reachable, so you probably check your code. Sometimes the CLI just seems a little capricious... So just wait a few secondes... And it perfectly works! :D\n\n## Resources\n\n- [Maestro Documentation](https://maestro.mobile.dev)\n- [Maestro GitHub Repository](https://github.com/mobile-dev-inc/maestro)\n- [Maestro with React Native](https://maestro.mobile.dev/platform-support/react-native)\n- [Maestro Cloud Documentation](https://cloud.mobile.dev)\n- [A great and complete introduction to Maestro with React Native](https://dev.to/b42/test-your-react-native-app-with-maestro-5bfj)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkiki-le-singe%2Freact-native-maestro","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkiki-le-singe%2Freact-native-maestro","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkiki-le-singe%2Freact-native-maestro/lists"}