-
Notifications
You must be signed in to change notification settings - Fork 1
feat: react native 87 support + chore work #7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
5d9d586
migrate android example to 87
troZee 87d3bc1
fix ios
troZee b7d6a97
add maestro skills
troZee c557dee
add android test
troZee c368526
misc
troZee 8fac161
fix ios
troZee d3deeb1
update readme
troZee 8f29a26
apply feedback
troZee fb22130
add ios tests
troZee File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -85,3 +85,4 @@ android/generated | |
| # React Native Nitro Modules | ||
| nitrogen/ | ||
| repomix-output.xml | ||
| .agent-device/test-artifacts/ | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,140 @@ | ||
| # Verifies that the native Hermes timezone cache is refreshed after Android's | ||
| # system timezone changes. The flow returns the emulator to Europe/Warsaw. | ||
| # | ||
| # Prerequisites: | ||
| # - Android emulator running with timezonehermesfix.example installed. | ||
| # - The emulator starts in Europe/Warsaw (the flow verifies this). | ||
|
|
||
| appId: com.android.settings | ||
| name: Refresh Hermes timezone after Android timezone change | ||
| tags: | ||
| - android | ||
| - manual-device-state | ||
| - regression | ||
| --- | ||
| # Confirm the initial Hermes-aware card reflects the expected fixed date in | ||
| # Europe/Warsaw before changing the device timezone. | ||
| - launchApp: timezonehermesfix.example | ||
| - extendedWaitUntil: | ||
| visible: 'Europe/Warsaw' | ||
| timeout: 10000 | ||
| - assertVisible: | ||
| text: '.*TimezoneOffset -120' | ||
| below: 'Europe/Warsaw' | ||
|
|
||
| # Open Settings > System > Date & time. Clearing Settings' app state ensures | ||
| # its activity stack starts at the Settings homepage rather than a prior picker. | ||
| - launchApp: | ||
| appId: com.android.settings | ||
| clearState: true | ||
| - scrollUntilVisible: | ||
| element: 'System' | ||
| direction: DOWN | ||
| timeout: 10000 | ||
| - tapOn: 'System' | ||
| - extendedWaitUntil: | ||
| visible: 'Date & time' | ||
| timeout: 5000 | ||
| - tapOn: 'Date & time' | ||
| - extendedWaitUntil: | ||
| visible: 'Automatic time zone' | ||
| timeout: 5000 | ||
|
|
||
| # A network-provided timezone prevents a manual choice. Disable it only when | ||
| # it is enabled, so this flow works with either starting switch state. | ||
| - runFlow: | ||
| when: | ||
| visible: | ||
| containsDescendants: | ||
| - text: 'Automatic time zone' | ||
| - id: 'com.android.settings:id/switchWidget' | ||
| checked: true | ||
| commands: | ||
| - tapOn: 'Automatic time zone' | ||
|
|
||
| - tapOn: | ||
| text: 'Time zone' | ||
| below: 'Automatic time zone' | ||
| - extendedWaitUntil: | ||
| visible: 'Warsaw (GMT+02:00)' | ||
| timeout: 5000 | ||
|
|
||
| # Change Europe/Warsaw to America/Los_Angeles through the device Settings UI. | ||
| - tapOn: 'Region' | ||
| - extendedWaitUntil: | ||
| visible: | ||
| id: 'android:id/search_src_text' | ||
| timeout: 5000 | ||
| - inputText: 'United States' | ||
| - extendedWaitUntil: | ||
| visible: | ||
| id: 'com.android.settings:id/title' | ||
| text: 'United States' | ||
| timeout: 5000 | ||
| - hideKeyboard | ||
| - tapOn: | ||
| id: 'com.android.settings:id/title' | ||
| text: 'United States' | ||
| - extendedWaitUntil: | ||
| visible: | ||
| id: 'com.android.settings:id/title' | ||
| text: 'Los Angeles' | ||
| timeout: 5000 | ||
| - tapOn: | ||
| id: 'com.android.settings:id/title' | ||
| text: 'Los Angeles' | ||
|
|
||
| # Foreground the backgrounded app without restarting it. It must observe the | ||
| # changed device timezone rather than return Hermes' prior Europe/Warsaw value. | ||
| - launchApp: | ||
| appId: timezonehermesfix.example | ||
| stopApp: false | ||
| - extendedWaitUntil: | ||
| visible: 'America/Los_Angeles' | ||
| timeout: 10000 | ||
| - assertVisible: | ||
| text: '.*TimezoneOffset 420' | ||
| below: 'America/Los_Angeles' | ||
| - assertNotVisible: 'Europe/Warsaw' | ||
|
|
||
| # Restore the shared emulator state for subsequent tests. | ||
| - launchApp: | ||
| appId: com.android.settings | ||
| clearState: true | ||
| - scrollUntilVisible: | ||
| element: 'System' | ||
| direction: DOWN | ||
| timeout: 10000 | ||
| - tapOn: 'System' | ||
| - tapOn: 'Date & time' | ||
| - tapOn: | ||
| text: 'Time zone' | ||
| below: 'Automatic time zone' | ||
| - tapOn: 'Region' | ||
| - extendedWaitUntil: | ||
| visible: | ||
| id: 'android:id/search_src_text' | ||
| timeout: 5000 | ||
| - inputText: 'Poland' | ||
| - extendedWaitUntil: | ||
| visible: | ||
| id: 'com.android.settings:id/title' | ||
| text: 'Poland' | ||
| timeout: 5000 | ||
| - hideKeyboard | ||
| - tapOn: | ||
| id: 'com.android.settings:id/title' | ||
| text: 'Poland' | ||
| - extendedWaitUntil: | ||
| visible: 'Warsaw (GMT+02:00)' | ||
| timeout: 5000 | ||
| # Foreground the same process after restoring the device timezone. | ||
| - launchApp: | ||
| appId: timezonehermesfix.example | ||
| stopApp: false | ||
| - extendedWaitUntil: | ||
| visible: 'Europe/Warsaw' | ||
| timeout: 10000 | ||
| - assertVisible: | ||
| text: '.*TimezoneOffset -120' | ||
| below: 'Europe/Warsaw' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,77 @@ | ||
| # Verifies that the native Hermes timezone cache is refreshed after an iPhone | ||
| # timezone change. This flow is executed by agent-device's Maestro-compatible | ||
| # runner and restores the phone to Europe/Warsaw when it completes. | ||
| # | ||
| # Prerequisites: | ||
| # - A connected iPhone with timezonehermesfix.example installed. | ||
| # - The example app starts in Europe/Warsaw. | ||
| # - Settings > General > Date & Time is the current Settings screen. The flow | ||
| # returns to that screen for its next invocation. | ||
| # - Set Automatically is disabled. The flow intentionally keeps that | ||
| # manual-state setting unchanged. | ||
|
|
||
| appId: timezonehermesfix.example | ||
| name: Refresh Hermes timezone after iOS timezone change | ||
| tags: | ||
| - ios | ||
| - manual-device-state | ||
| - regression | ||
| - agent-device | ||
| --- | ||
| - launchApp: timezonehermesfix.example | ||
| - extendedWaitUntil: | ||
| visible: 'Europe/Warsaw' | ||
| timeout: 10000 | ||
| - assertVisible: | ||
| text: '.*TimezoneOffset -120' | ||
|
|
||
| # iOS retains its last Settings screen; this flow starts and ends on Date & | ||
| # Time rather than attempting to clear Settings state. | ||
| - launchApp: | ||
| appId: com.apple.Preferences | ||
| stopApp: false | ||
| - extendedWaitUntil: | ||
| visible: 'Time Zone' | ||
| timeout: 5000 | ||
| - tapOn: 'Time Zone' | ||
| - eraseText: 50 | ||
| - inputText: 'Los Angeles' | ||
| - extendedWaitUntil: | ||
| visible: 'Los Angeles, USA' | ||
| timeout: 5000 | ||
| - tapOn: 'Los Angeles, USA' | ||
|
|
||
| # Foreground the existing process rather than restarting it. | ||
| - launchApp: | ||
| appId: timezonehermesfix.example | ||
| stopApp: false | ||
| - extendedWaitUntil: | ||
| visible: 'America/Los_Angeles' | ||
| timeout: 10000 | ||
| - assertVisible: | ||
| text: '.*TimezoneOffset 420' | ||
| - assertNotVisible: 'Europe/Warsaw' | ||
|
|
||
| # Restore the shared device state. | ||
| - launchApp: | ||
| appId: com.apple.Preferences | ||
| stopApp: false | ||
| - extendedWaitUntil: | ||
| visible: 'Time Zone' | ||
| timeout: 5000 | ||
| - tapOn: 'Time Zone' | ||
| - eraseText: 50 | ||
| - inputText: 'Warsaw' | ||
| - extendedWaitUntil: | ||
| visible: 'Warsaw, Poland' | ||
| timeout: 5000 | ||
| - tapOn: 'Warsaw, Poland' | ||
|
|
||
| - launchApp: | ||
| appId: timezonehermesfix.example | ||
| stopApp: false | ||
| - extendedWaitUntil: | ||
| visible: 'Europe/Warsaw' | ||
| timeout: 10000 | ||
| - assertVisible: | ||
| text: '.*TimezoneOffset -120' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,7 @@ | ||
| import { AppRegistry } from 'react-native'; | ||
| import App from './src/App'; | ||
| import { name as appName } from './app.json'; | ||
| import { LogBox } from 'react-native'; | ||
| LogBox.ignoreAllLogs(); | ||
|
|
||
| AppRegistry.registerComponent(appName, () => App); | ||
|
troZee marked this conversation as resolved.
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.