-
-
Notifications
You must be signed in to change notification settings - Fork 345
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: convert tests from detox to maestro (maximumDate) (#739)
- Loading branch information
1 parent
af3af9d
commit 708a61e
Showing
6 changed files
with
133 additions
and
118 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: E2E tests (ios) | ||
name: Test iOS e2e | ||
|
||
on: | ||
workflow_call: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,112 @@ | ||
appId: com.rn071 | ||
tags: | ||
- android | ||
- maximumDate | ||
--- | ||
- runFlow: utils/launch.yml | ||
|
||
########## describe: cannot pass max date | ||
|
||
- runFlow: | ||
file: utils/change-maximum-date.yml | ||
env: | ||
VALUE: '2000-01-01T00:00:00' | ||
|
||
### test: datetime mode | ||
|
||
- runFlow: | ||
file: utils/change-mode.yml | ||
env: | ||
VALUE: datetime | ||
|
||
- runFlow: utils/swipe-wheel-1.yml | ||
- assertVisible: '2000-01-01 00:00:00' | ||
|
||
- runFlow: utils/swipe-wheel-2.yml | ||
- assertVisible: '2000-01-01 00:00:00' | ||
|
||
- runFlow: utils/swipe-wheel-3.yml | ||
- assertVisible: '2000-01-01 00:00:00' | ||
|
||
### test: date mode | ||
|
||
- runFlow: | ||
file: utils/change-mode.yml | ||
env: | ||
VALUE: date | ||
|
||
- runFlow: utils/swipe-wheel-1.yml | ||
- assertVisible: '2000-01-01 00:00:00' | ||
|
||
- runFlow: utils/swipe-wheel-2.yml | ||
- assertVisible: '2000-01-01 00:00:00' | ||
|
||
- runFlow: utils/swipe-wheel-3.yml | ||
- assertVisible: '2000-01-01 00:00:00' | ||
|
||
### test: time mode | ||
|
||
- runFlow: | ||
file: utils/change-mode.yml | ||
env: | ||
VALUE: time | ||
|
||
- runFlow: utils/swipe-wheel-1.yml | ||
- assertVisible: '2000-01-01 00:00:00' | ||
|
||
- runFlow: utils/swipe-wheel-2.yml | ||
- assertVisible: '2000-01-01 00:00:00' | ||
|
||
- runFlow: utils/swipe-wheel-3.yml | ||
- assertVisible: '2000-01-01 00:00:00' | ||
|
||
########## describe: overshooting max date | ||
|
||
### test: overshooting day wheel should reset to maximum date | ||
- runFlow: | ||
file: utils/change-maximum-date.yml | ||
env: | ||
VALUE: '2000-01-02 00:00:00' | ||
- runFlow: utils/swipe-wheel-1.yml | ||
- assertVisible: '2000-01-02 00:00:00' | ||
|
||
### test: overshooting month wheel should set other wheels to max date | ||
- runFlow: | ||
file: utils/change-mode.yml | ||
env: | ||
VALUE: date | ||
- runFlow: utils/swipe-wheel-1.yml | ||
- assertVisible: '2000-01-02 00:00:00' | ||
|
||
- runFlow: utils/swipe-wheel-2.yml | ||
- assertVisible: '2000-01-02 00:00:00' | ||
|
||
### test: overshooting year wheel should set other wheels to max date | ||
- runFlow: | ||
file: utils/change-maximum-date.yml | ||
env: | ||
VALUE: '2001-01-02 00:00:00' | ||
- runFlow: utils/swipe-wheel-1.yml | ||
- runFlow: utils/swipe-wheel-3.yml | ||
- assertVisible: '2001-01-02 00:00:00' | ||
|
||
### test: overshooting in time mode should set other wheels to max date | ||
- runFlow: utils/reset.yml | ||
|
||
- runFlow: | ||
file: utils/change-maximum-date.yml | ||
env: | ||
VALUE: '2000-01-01 00:00:00' | ||
- runFlow: | ||
file: utils/change-mode.yml | ||
env: | ||
VALUE: time | ||
|
||
- runFlow: utils/swipe-wheel-1.yml | ||
- assertVisible: '2000-01-01 00:00:00' | ||
|
||
- runFlow: utils/swipe-wheel-2.yml | ||
- assertVisible: '2000-01-01 00:00:00' | ||
|
||
- runFlow: utils/swipe-wheel-3.yml | ||
- assertVisible: '2000-01-01 00:00:00' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
appId: com.rn071 | ||
--- | ||
- runFlow: | ||
file: change-prop.yml | ||
env: | ||
PROP: maximumDate | ||
VALUE: ${VALUE} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
appId: com.rn071 | ||
--- | ||
- runFlow: | ||
file: change-prop.yml | ||
env: | ||
PROP: mode | ||
VALUE: ${VALUE} |
This file was deleted.
Oops, something went wrong.