Skip to content
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

chore: migrate wheel order test from detox to maestro #816

Merged
merged 5 commits into from
May 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
116 changes: 116 additions & 0 deletions .maestro/wheel-order.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,116 @@
appId: com.rn071
tags:
- android
- wheelOrder
---
# test: can use modal

- runFlow: utils/launch.yml
- tapOn: clear maximumDate

# datetime mode
- tapOn: datetime mode

# us
- tapOn: locale en-US

- runFlow: utils/swipe-wheel-1.yml
- assertVisible: '2000-01-02 00:00:00'
- tapOn: reset date

- runFlow: utils/swipe-wheel-2.yml
- assertVisible: '2000-01-01 01:00:00'
- tapOn: reset date

- runFlow: utils/swipe-wheel-3.yml
- assertVisible: '2000-01-01 00:01:00'
- tapOn: reset date

- runFlow: utils/swipe-wheel-4.yml
- assertVisible: '2000-01-01 12:00:00'
- tapOn: reset date

# korean
- tapOn: locale ko-KR

- runFlow: utils/swipe-wheel-1.yml
- assertVisible: '2000-01-02 00:00:00'
- tapOn: reset date

- runFlow: utils/swipe-wheel-2.yml
- assertVisible: '2000-01-01 12:00:00'
- tapOn: reset date

- runFlow: utils/swipe-wheel-3.yml
- assertVisible: '2000-01-01 01:00:00'
- tapOn: reset date

- runFlow: utils/swipe-wheel-4.yml
- assertVisible: '2000-01-01 00:01:00'
- tapOn: reset date

# date mode
- tapOn: date mode

# us
- tapOn: locale en-US

- runFlow: utils/swipe-wheel-1.yml
- assertVisible: '2000-02-01 00:00:00'
- tapOn: reset date

- runFlow: utils/swipe-wheel-2.yml
- assertVisible: '2000-01-02 00:00:00'
- tapOn: reset date

- runFlow: utils/swipe-wheel-3.yml
- assertVisible: '2001-01-01 00:00:00'
- tapOn: reset date

# korean
- tapOn: locale ko-KR

- runFlow: utils/swipe-wheel-1.yml
- assertVisible: '2001-01-01 00:00:00'
- tapOn: reset date

- runFlow: utils/swipe-wheel-2.yml
- assertVisible: '2000-02-01 00:00:00'
- tapOn: reset date

- runFlow: utils/swipe-wheel-3.yml
- assertVisible: '2000-01-02 00:00:00'
- tapOn: reset date

# time mode
- tapOn: time mode

# us
- tapOn: locale en-US

- runFlow: utils/swipe-wheel-1.yml
- assertVisible: '2000-01-01 01:00:00'
- tapOn: reset date

- runFlow: utils/swipe-wheel-2.yml
- assertVisible: '2000-01-01 00:01:00'
- tapOn: reset date

- runFlow: utils/swipe-wheel-3.yml
- assertVisible: '2000-01-01 12:00:00'
- tapOn: reset date

# korean
- tapOn: locale ko-KR

- runFlow: utils/swipe-wheel-1.yml
- assertVisible: '2000-01-01 12:00:00'
- tapOn: reset date

- runFlow: utils/swipe-wheel-2.yml
- assertVisible: '2000-01-01 01:00:00'
- tapOn: reset date

- runFlow: utils/swipe-wheel-3.yml
- assertVisible: '2000-01-01 00:01:00'
- tapOn: reset date
12 changes: 12 additions & 0 deletions examples/Rn071/src/examples/Advanced.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,18 @@ export default class Advanced extends Component {
onPress={() => this.setState({minuteInterval: 15})}
text={'15min interval'}
/>
<MicroButton
onPress={() => this.setState({locale: 'en-US'})}
text={'locale en-US'}
/>
<MicroButton
onPress={() => this.setState({locale: 'en-GB'})}
text={'locale en-GB'}
/>
<MicroButton
onPress={() => this.setState({locale: 'ko-KR'})}
text={'locale ko-KR'}
/>
<View style={{width: '100%', height: 2, backgroundColor: '#eee'}} />
<View style={{}}>
<MicroText
Expand Down
90 changes: 0 additions & 90 deletions examples/detox/e2e/tests/wheelOrder.spec.js

This file was deleted.

Loading