appId: com.rn071
|
|
tags:
|
|
- android
|
|
- timezoneOffsetInMinutes
|
|
---
|
|
- runFlow:
|
|
file: utils/set-timezone.yml
|
|
env:
|
|
REGION: Sweden
|
|
GMT: GMT+01:00
|
|
STATE: ''
|
|
|
|
- runFlow: utils/launch.yml
|
|
|
|
# test: timezone offset with undefined
|
|
- runFlow: utils/swipe-wheel-3.yml
|
|
- assertVisible: '2000-01-01 00:01:00'
|
|
- assertVisible: 'Sat Jan 11201 AM '
|
|
|
|
- runFlow: utils/reset.yml
|
|
|
|
# test: timezone offset with 0
|
|
- runFlow:
|
|
file: utils/change-prop.yml
|
|
env:
|
|
PROP: timeZoneOffsetInMinutes
|
|
VALUE: 0
|
|
- runFlow: utils/swipe-wheel-3.yml
|
|
- assertVisible: '2000-01-01 00:01:00'
|
|
- assertVisible: 'Fri Dec 311101 PM '
|
|
|
|
- runFlow: utils/reset.yml
|
|
|
|
# test: timezone offset with 180
|
|
- runFlow:
|
|
file: utils/change-prop.yml
|
|
env:
|
|
PROP: timeZoneOffsetInMinutes
|
|
VALUE: 180
|
|
- runFlow: utils/swipe-wheel-3.yml
|
|
- assertVisible: '2000-01-01 00:01:00'
|
|
- assertVisible: 'Sat Jan 1201 AM '
|
|
|
|
- runFlow: utils/reset.yml
|
|
|
|
# test: timezone offset with -180
|
|
- runFlow:
|
|
file: utils/change-prop.yml
|
|
env:
|
|
PROP: timeZoneOffsetInMinutes
|
|
VALUE: -180
|
|
- runFlow: utils/swipe-wheel-3.yml
|
|
- assertVisible: '2000-01-01 00:01:00'
|
|
- assertVisible: 'Fri Dec 31801 PM '
|
|
- runFlow: utils/reset.yml
|
|
|
|
# test: timezoneOffsetInMinutes combined with maximumDate/minimumDate in another timezone than current device.
|
|
# Bug was reported here: https://github.com/henninghall/react-native-date-picker/issues/613
|
|
- runFlow:
|
|
file: utils/set-timezone.yml
|
|
env:
|
|
REGION: 'United states'
|
|
STATE: Phoenix
|
|
GMT: GMT-07:00
|
|
- runFlow: utils/launch.yml
|
|
- runFlow:
|
|
file: utils/change-prop.yml
|
|
env:
|
|
PROP: timeZoneOffsetInMinutes
|
|
VALUE: 180
|
|
- repeat:
|
|
times: 5
|
|
commands:
|
|
- runFlow: utils/swipe-wheel-1.yml
|
|
- runFlow: utils/swipe-wheel-4.yml
|
|
- assertVisible: 'Thu Jan 61000 AM '
|