-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from benxu3/e2e-tests
refactor
- Loading branch information
Showing
44 changed files
with
945 additions
and
606 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -91,4 +91,5 @@ eas.json | |
/coverage | ||
package-lock.json | ||
../.DS_Store | ||
../.idea/ | ||
../.idea/ | ||
.env.local |
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,50 @@ | ||
appId: com.interpreter.app | ||
tags: | ||
- prod-build | ||
--- | ||
- launchApp: | ||
appId: com.interpreter.app | ||
- openLink: ${EXPO_SERVER} | ||
|
||
- extendedWaitUntil: | ||
visible: | ||
id: "tosDisclaimer" | ||
timeout: 5000 | ||
|
||
# Verify that all options selected enables the continue button | ||
- tapOn: | ||
id: "backupRadio" | ||
- tapOn: | ||
id: "safetyRadio" | ||
- tapOn: | ||
id: "tosRadio" | ||
- assertVisible: | ||
id: "tosContinue" | ||
enabled: true | ||
- tapOn: | ||
id: "tosContinue" | ||
|
||
- tapOn: "Your LiveKit URL" | ||
- inputText: ${LIVEKIT_URL.slice(0, 15)} | ||
- inputText: ${LIVEKIT_URL.slice(15, 30)} | ||
- inputText: ${LIVEKIT_URL.slice(30, 45)} | ||
- inputText: ${LIVEKIT_URL.slice(45, 60)} | ||
- inputText: ${LIVEKIT_URL.slice(60, 75)} | ||
- inputText: ${LIVEKIT_URL.slice(75, 90)} | ||
- inputText: ${LIVEKIT_URL.slice(90)} | ||
- pressKey: Enter | ||
- tapOn: | ||
id: "loginButton" | ||
|
||
- extendedWaitUntil: | ||
visible: | ||
id: "audioVisualizer" | ||
timeout: 20000 | ||
|
||
# enter chat message | ||
- tapOn: | ||
point: "56%,94%" | ||
- inputText: "What can you do?" | ||
- pressKey: Enter | ||
|
||
- assertVisible: "What can you do?" |
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 @@ | ||
flows: | ||
- "tos/*" | ||
- "login/*" | ||
- "chat/*" | ||
- "settings/*" | ||
excludeTags: | ||
- prod-build |
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,34 @@ | ||
appId: com.interpreter.app | ||
tags: | ||
- prod-build | ||
--- | ||
- launchApp: | ||
appId: com.interpreter.app | ||
- openLink: ${EXPO_SERVER} | ||
|
||
- extendedWaitUntil: | ||
visible: | ||
id: "tosDisclaimer" | ||
timeout: 5000 | ||
|
||
# Verify that all options selected enables the continue button | ||
- tapOn: | ||
id: "backupRadio" | ||
- tapOn: | ||
id: "safetyRadio" | ||
- tapOn: | ||
id: "tosRadio" | ||
- assertVisible: | ||
id: "tosContinue" | ||
enabled: true | ||
- tapOn: | ||
id: "tosContinue" | ||
|
||
- assertVisible: | ||
id: "loginBackground" | ||
- tapOn: | ||
id: "setupLink" | ||
|
||
# link opened | ||
- assertNotVisible: | ||
id: "loginBackground" |
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,34 @@ | ||
appId: com.interpreter.app | ||
tags: | ||
- prod-build | ||
--- | ||
- launchApp: | ||
appId: com.interpreter.app | ||
- openLink: ${EXPO_SERVER} | ||
|
||
- extendedWaitUntil: | ||
visible: | ||
id: "tosDisclaimer" | ||
timeout: 5000 | ||
|
||
# Verify that all options selected enables the continue button | ||
- tapOn: | ||
id: "backupRadio" | ||
- tapOn: | ||
id: "safetyRadio" | ||
- tapOn: | ||
id: "tosRadio" | ||
- assertVisible: | ||
id: "tosContinue" | ||
enabled: true | ||
- tapOn: | ||
id: "tosContinue" | ||
|
||
- assertVisible: | ||
id: "loginBackground" | ||
- tapOn: | ||
id: "loginBackground" | ||
|
||
# on camera | ||
- assertNotVisible: | ||
id: "loginBackground" |
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,55 @@ | ||
appId: com.interpreter.app | ||
tags: | ||
- prod-build | ||
--- | ||
- launchApp: | ||
appId: com.interpreter.app | ||
- openLink: ${EXPO_SERVER} | ||
|
||
- extendedWaitUntil: | ||
visible: | ||
id: "tosDisclaimer" | ||
timeout: 5000 | ||
|
||
# Verify that all options selected enables the continue button | ||
- tapOn: | ||
id: "backupRadio" | ||
- tapOn: | ||
id: "safetyRadio" | ||
- tapOn: | ||
id: "tosRadio" | ||
- assertVisible: | ||
id: "tosContinue" | ||
enabled: true | ||
- tapOn: | ||
id: "tosContinue" | ||
|
||
- tapOn: "Your LiveKit URL" | ||
- inputText: ${LIVEKIT_URL.slice(0, 15)} | ||
- inputText: ${LIVEKIT_URL.slice(15, 30)} | ||
- inputText: ${LIVEKIT_URL.slice(30, 45)} | ||
- inputText: ${LIVEKIT_URL.slice(45, 60)} | ||
- inputText: ${LIVEKIT_URL.slice(60, 75)} | ||
- inputText: ${LIVEKIT_URL.slice(75, 90)} | ||
- inputText: ${LIVEKIT_URL.slice(90)} | ||
- pressKey: Enter | ||
- tapOn: | ||
id: "loginButton" | ||
|
||
- extendedWaitUntil: | ||
visible: | ||
id: "audioVisualizer" | ||
timeout: 20000 | ||
|
||
- tapOn: | ||
id: "settingsIcon" | ||
- assertVisible: "Settings" | ||
- tapOn: | ||
id: "wearableToggle" | ||
- tapOn: | ||
id: "returnIcon" | ||
|
||
- extendedWaitUntil: | ||
visible: | ||
id: "audioVisualizer" | ||
timeout: 5000 |
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,88 @@ | ||
appId: com.interpreter.app | ||
--- | ||
- launchApp: | ||
appId: com.interpreter.app | ||
- openLink: ${EXPO_SERVER} | ||
|
||
- extendedWaitUntil: | ||
visible: | ||
id: "tosDisclaimer" | ||
timeout: 5000 | ||
|
||
# Test all permutations of incomplete selections | ||
# No options selected | ||
- assertVisible: | ||
id: "tosBackup" | ||
- assertVisible: | ||
id: "tosSafety" | ||
- assertVisible: | ||
id: "tosAgree" | ||
- assertVisible: | ||
id: "tosContinue" | ||
enabled: false | ||
|
||
# Only Backup selected | ||
- tapOn: | ||
id: "backupRadio" | ||
- assertVisible: | ||
id: "tosContinue" | ||
enabled: false | ||
- tapOn: | ||
id: "backupRadio" | ||
|
||
# Only Safety selected | ||
- tapOn: | ||
id: "safetyRadio" | ||
- assertVisible: | ||
id: "tosContinue" | ||
enabled: false | ||
- tapOn: | ||
id: "safetyRadio" | ||
|
||
# Only Agree selected | ||
- tapOn: | ||
id: "tosRadio" | ||
- assertVisible: | ||
id: "tosContinue" | ||
enabled: false | ||
- tapOn: | ||
id: "tosRadio" | ||
|
||
# Backup and Safety selected | ||
- tapOn: | ||
id: "backupRadio" | ||
- tapOn: | ||
id: "safetyRadio" | ||
- assertVisible: | ||
id: "tosContinue" | ||
enabled: false | ||
- tapOn: | ||
id: "backupRadio" | ||
- tapOn: | ||
id: "safetyRadio" | ||
|
||
# Backup and Agree selected | ||
- tapOn: | ||
id: "backupRadio" | ||
- tapOn: | ||
id: "tosRadio" | ||
- assertVisible: | ||
id: "tosContinue" | ||
enabled: false | ||
- tapOn: | ||
id: "backupRadio" | ||
- tapOn: | ||
id: "tosRadio" | ||
|
||
# Safety and Agree selected | ||
- tapOn: | ||
id: "safetyRadio" | ||
- tapOn: | ||
id: "tosRadio" | ||
- assertVisible: | ||
id: "tosContinue" | ||
enabled: false | ||
- tapOn: | ||
id: "safetyRadio" | ||
- tapOn: | ||
id: "tosRadio" |
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,25 @@ | ||
appId: com.interpreter.app | ||
--- | ||
- launchApp: | ||
appId: com.interpreter.app | ||
- openLink: ${EXPO_SERVER} | ||
|
||
- extendedWaitUntil: | ||
visible: | ||
id: "tosDisclaimer" | ||
timeout: 5000 | ||
|
||
# Verify that all options selected enables the continue button | ||
- tapOn: | ||
id: "backupRadio" | ||
- tapOn: | ||
id: "safetyRadio" | ||
- tapOn: | ||
id: "tosRadio" | ||
- assertVisible: | ||
id: "tosContinue" | ||
enabled: true | ||
- tapOn: | ||
id: "tosContinue" | ||
- assertVisible: | ||
id: "loginBackground" |
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,17 @@ | ||
appId: com.interpreter.app | ||
--- | ||
- launchApp: | ||
appId: com.interpreter.app | ||
- openLink: ${EXPO_SERVER} | ||
|
||
- extendedWaitUntil: | ||
visible: | ||
id: "tosDisclaimer" | ||
timeout: 5000 | ||
|
||
- tapOn: | ||
id: "tosSafetyLink" | ||
|
||
# link opened | ||
- assertNotVisible: | ||
id: "tosDisclaimer" |
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,17 @@ | ||
appId: com.interpreter.app | ||
--- | ||
- launchApp: | ||
appId: com.interpreter.app | ||
- openLink: ${EXPO_SERVER} | ||
|
||
- extendedWaitUntil: | ||
visible: | ||
id: "tosDisclaimer" | ||
timeout: 5000 | ||
|
||
- tapOn: | ||
id: "tosAgree" | ||
|
||
# link opened | ||
- assertNotVisible: | ||
id: "tosDisclaimer" |
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
Oops, something went wrong.