-
Notifications
You must be signed in to change notification settings - Fork 167
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
80dcd0c
commit 054ee81
Showing
2 changed files
with
44 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
appId: com.rnctvexample | ||
--- | ||
- launchApp | ||
- tapOn: .*FlashList.* | ||
- assertVisible: "Scroll Y is: 0.00" | ||
- swipe: | ||
direction: UP | ||
duration: 300 | ||
- swipe: | ||
direction: LEFT | ||
duration: 150 | ||
- swipe: | ||
direction: LEFT | ||
duration: 150 | ||
- swipe: | ||
direction: UP | ||
duration: 150 | ||
- swipe: | ||
direction: UP | ||
duration: 150 |
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,24 @@ | ||
#!/bin/bash | ||
|
||
if [ -z "$1" ]; then | ||
echo "Error: deviceId is not defined." | ||
exit 1 | ||
fi | ||
|
||
deviceId="$1" | ||
appId="com.rnctvexample" | ||
|
||
echo "Testing $appId" | ||
|
||
flashlight test --bundleId $appId \ | ||
--testCommand "maestro --device $deviceId test -e APP_ID=$appId e2e.yaml" \ | ||
--iterationCount 10 \ | ||
--resultsTitle $appId \ | ||
--resultsFilePath $appId.json | ||
|
||
adb -s $deviceId shell am force-stop $appId | ||
adb -s $deviceId shell pm clear $appId | ||
sleep 0.2 | ||
|
||
version_report_files=$(printf " %s.json" "${versions[@]}") | ||
flashlight report$version_report_files |