|
4 | 4 | - modal
|
5 | 5 | - minuteInterval
|
6 | 6 | - scrollAround
|
| 7 | + - invalidDates |
7 | 8 | ---
|
8 | 9 | # test: can use modal
|
9 | 10 |
|
|
53 | 54 | - runFlow: utils/swipe-wheel-1.yml
|
54 | 55 | - assertVisible: '2000-01-01 00:00:00'
|
55 | 56 | - tapOn: reset date
|
| 57 | + |
| 58 | +# invalid dates |
| 59 | +- runFlow: utils/launch.yml |
| 60 | +- tapOn: clear minimumDate |
| 61 | +- tapOn: clear maximumDate |
| 62 | +- tapOn: date mode |
| 63 | + |
| 64 | +## test: scrolls back to last valid date |
| 65 | +- runFlow: |
| 66 | + file: utils/change-prop.yml |
| 67 | + env: |
| 68 | + PROP: date |
| 69 | + VALUE: '2001-02-28 00:00' |
| 70 | +- runFlow: utils/swipe-wheel-2.yml |
| 71 | +- assertVisible: '2001-02-28 00:00:00' |
| 72 | + |
| 73 | +# scrolls back after scrolling multiple dates |
| 74 | +- runFlow: |
| 75 | + file: utils/change-prop.yml |
| 76 | + env: |
| 77 | + PROP: date |
| 78 | + VALUE: '2001-02-27 00:00' |
| 79 | +- runFlow: utils/swipe-wheel-2.yml |
| 80 | +- runFlow: utils/swipe-wheel-2.yml |
| 81 | +- assertVisible: '2001-02-28 00:00:00' |
| 82 | + |
| 83 | +# not scrolling back on unusual valid dates |
| 84 | +- runFlow: |
| 85 | + file: utils/change-prop.yml |
| 86 | + env: |
| 87 | + PROP: date |
| 88 | + VALUE: '2000-02-28 00:00' |
| 89 | +- runFlow: utils/swipe-wheel-2.yml |
| 90 | +- assertVisible: '2000-02-29 00:00:00' |
| 91 | + |
| 92 | +# works on months with 30 days |
| 93 | +- runFlow: |
| 94 | + file: utils/change-prop.yml |
| 95 | + env: |
| 96 | + PROP: date |
| 97 | + VALUE: '2001-04-30 00:00' |
| 98 | +- runFlow: utils/swipe-wheel-2.yml |
| 99 | +- assertVisible: '2001-04-30 00:00:00' |
| 100 | + |
| 101 | +# works on months with 31 days |
| 102 | +- runFlow: |
| 103 | + file: utils/change-prop.yml |
| 104 | + env: |
| 105 | + PROP: date |
| 106 | + VALUE: '2001-05-30 00:00' |
| 107 | +- runFlow: utils/swipe-wheel-2.yml |
| 108 | +- assertVisible: '2001-05-31 00:00:00' |
0 commit comments