Skip to content

Commit

Permalink
chore: migrate wheel order test from detox to maestro (#816)
Browse files Browse the repository at this point in the history
* chore: migrate wheel order test from detox to maestro

* fix

* fix

* add locale buttons

* uncomment
  • Loading branch information
henninghall committed May 17, 2024
1 parent c6f796c commit a554625
Show file tree
Hide file tree
Showing 3 changed files with 128 additions and 90 deletions.
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.

0 comments on commit a554625

Please sign in to comment.