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: move modal and minuteInterval tests from detox to maestro #803

Merged
merged 20 commits into from
Apr 19, 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
35 changes: 35 additions & 0 deletions .maestro/other.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
appId: com.rn071
tags:
- modal
- minuteInterval
---
# test: can use modal

- launchApp
- tapOn: Modal
- tapOn: Select date
- runFlow: utils/swipe-wheel-1.yml
- tapOn: Confirm
- assertVisible: '2000-01-02'

# test: minuteInterval

- runFlow: utils/launch.yml

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

# 5min
- tapOn: 5min interval
- runFlow: utils/swipe-wheel-3.yml
- assertVisible: '2000-01-01 00:05:00'
- tapOn: reset date

# 15min
- tapOn: 15min interval
- runFlow: utils/swipe-wheel-3.yml
- assertVisible: '2000-01-01 00:15: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 @@ -106,6 +106,18 @@ export default class Advanced extends Component {
onPress={() => this.setState({mode: 'time'})}
text={'time mode'}
/>
<MicroButton
onPress={() => this.setState({minuteInterval: 1})}
text={'1min interval'}
/>
<MicroButton
onPress={() => this.setState({minuteInterval: 5})}
text={'5min interval'}
/>
<MicroButton
onPress={() => this.setState({minuteInterval: 15})}
text={'15min interval'}
/>
<View style={{width: '100%', height: 2, backgroundColor: '#eee'}} />
<View style={{}}>
<MicroText
Expand Down
32 changes: 0 additions & 32 deletions examples/detox/e2e/tests/minuteInterval.spec.js

This file was deleted.

20 changes: 0 additions & 20 deletions examples/detox/e2e/tests/modal.spec.js

This file was deleted.

Loading