Skip to content

Commit a97942d

Browse files
committed
onboard chrome test
1 parent 51b7fd7 commit a97942d

12 files changed

+370
-0
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Android Onboard Chrome
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
environment:
7+
description: "Environment to run tests against"
8+
type: choice
9+
options:
10+
- prod
11+
- dev
12+
default: "prod"
13+
required: true
14+
15+
jobs:
16+
test-android-devices:
17+
name: Android Onboard Chrome
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: actions/checkout@v3
21+
22+
- name: Run Android Device Tests
23+
uses: devicecloud-dev/device-cloud-for-maestro@v1
24+
with:
25+
api-key: ${{ github.event.inputs.environment == 'dev' && secrets.DCD_DEV_API_KEY || secrets.DCD_API_KEY }}
26+
api-url: ${{ github.event.inputs.environment == 'dev' && 'https://api.dev.devicecloud.dev' || '' }}
27+
app-file: ./binaries/sample.zip
28+
workspace: ./flows/onboard-chrome
29+
android-device: pixel-6
30+
name: "Android Onboard Chrome"

create-chrome-flows.sh

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#!/bin/bash
2+
3+
# Define the source file and directory
4+
SOURCE_FILE="flows/onboard-chrome/onboard-chrome-1.yaml"
5+
DIR="flows/onboard-chrome"
6+
7+
# Make sure the source file exists
8+
if [ ! -f "$SOURCE_FILE" ]; then
9+
echo "Error: Source file $SOURCE_FILE does not exist"
10+
exit 1
11+
fi
12+
13+
# Copy the file for versions 2 through 10
14+
for i in {2..10}; do
15+
TARGET_FILE="$DIR/onboard-chrome-$i.yaml"
16+
cp "$SOURCE_FILE" "$TARGET_FILE"
17+
echo "Created $TARGET_FILE"
18+
done
19+
20+
echo "Successfully created all flow files"
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
appId: com.android.chrome
2+
---
3+
- waitForAnimationToEnd
4+
- launchApp
5+
- waitForAnimationToEnd
6+
- tapOn:
7+
text: 'Accept & continue'
8+
optional: true
9+
- waitForAnimationToEnd
10+
- tapOn:
11+
text: 'Use without an account'
12+
optional: true
13+
- waitForAnimationToEnd
14+
- tapOn:
15+
text: 'No thanks'
16+
optional: true
17+
- waitForAnimationToEnd
18+
- tapOn:
19+
text: 'No thanks'
20+
optional: true
21+
- waitForAnimationToEnd
22+
- tapOn:
23+
text: 'Got it'
24+
optional: true
25+
- stopApp
26+
- waitForAnimationToEnd
27+
- launchApp
28+
- waitForAnimationToEnd
29+
- tapOn:
30+
text: 'Got it'
31+
optional: true
32+
- stopApp
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
appId: com.android.chrome
2+
---
3+
- waitForAnimationToEnd
4+
- launchApp
5+
- waitForAnimationToEnd
6+
- tapOn:
7+
text: 'Accept & continue'
8+
optional: true
9+
- waitForAnimationToEnd
10+
- tapOn:
11+
text: 'Use without an account'
12+
optional: true
13+
- waitForAnimationToEnd
14+
- tapOn:
15+
text: 'No thanks'
16+
optional: true
17+
- waitForAnimationToEnd
18+
- tapOn:
19+
text: 'No thanks'
20+
optional: true
21+
- waitForAnimationToEnd
22+
- tapOn:
23+
text: 'Got it'
24+
optional: true
25+
- stopApp
26+
- waitForAnimationToEnd
27+
- launchApp
28+
- waitForAnimationToEnd
29+
- tapOn:
30+
text: 'Got it'
31+
optional: true
32+
- stopApp
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
appId: com.android.chrome
2+
---
3+
- waitForAnimationToEnd
4+
- launchApp
5+
- waitForAnimationToEnd
6+
- tapOn:
7+
text: 'Accept & continue'
8+
optional: true
9+
- waitForAnimationToEnd
10+
- tapOn:
11+
text: 'Use without an account'
12+
optional: true
13+
- waitForAnimationToEnd
14+
- tapOn:
15+
text: 'No thanks'
16+
optional: true
17+
- waitForAnimationToEnd
18+
- tapOn:
19+
text: 'No thanks'
20+
optional: true
21+
- waitForAnimationToEnd
22+
- tapOn:
23+
text: 'Got it'
24+
optional: true
25+
- stopApp
26+
- waitForAnimationToEnd
27+
- launchApp
28+
- waitForAnimationToEnd
29+
- tapOn:
30+
text: 'Got it'
31+
optional: true
32+
- stopApp
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
appId: com.android.chrome
2+
---
3+
- waitForAnimationToEnd
4+
- launchApp
5+
- waitForAnimationToEnd
6+
- tapOn:
7+
text: 'Accept & continue'
8+
optional: true
9+
- waitForAnimationToEnd
10+
- tapOn:
11+
text: 'Use without an account'
12+
optional: true
13+
- waitForAnimationToEnd
14+
- tapOn:
15+
text: 'No thanks'
16+
optional: true
17+
- waitForAnimationToEnd
18+
- tapOn:
19+
text: 'No thanks'
20+
optional: true
21+
- waitForAnimationToEnd
22+
- tapOn:
23+
text: 'Got it'
24+
optional: true
25+
- stopApp
26+
- waitForAnimationToEnd
27+
- launchApp
28+
- waitForAnimationToEnd
29+
- tapOn:
30+
text: 'Got it'
31+
optional: true
32+
- stopApp
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
appId: com.android.chrome
2+
---
3+
- waitForAnimationToEnd
4+
- launchApp
5+
- waitForAnimationToEnd
6+
- tapOn:
7+
text: 'Accept & continue'
8+
optional: true
9+
- waitForAnimationToEnd
10+
- tapOn:
11+
text: 'Use without an account'
12+
optional: true
13+
- waitForAnimationToEnd
14+
- tapOn:
15+
text: 'No thanks'
16+
optional: true
17+
- waitForAnimationToEnd
18+
- tapOn:
19+
text: 'No thanks'
20+
optional: true
21+
- waitForAnimationToEnd
22+
- tapOn:
23+
text: 'Got it'
24+
optional: true
25+
- stopApp
26+
- waitForAnimationToEnd
27+
- launchApp
28+
- waitForAnimationToEnd
29+
- tapOn:
30+
text: 'Got it'
31+
optional: true
32+
- stopApp
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
appId: com.android.chrome
2+
---
3+
- waitForAnimationToEnd
4+
- launchApp
5+
- waitForAnimationToEnd
6+
- tapOn:
7+
text: 'Accept & continue'
8+
optional: true
9+
- waitForAnimationToEnd
10+
- tapOn:
11+
text: 'Use without an account'
12+
optional: true
13+
- waitForAnimationToEnd
14+
- tapOn:
15+
text: 'No thanks'
16+
optional: true
17+
- waitForAnimationToEnd
18+
- tapOn:
19+
text: 'No thanks'
20+
optional: true
21+
- waitForAnimationToEnd
22+
- tapOn:
23+
text: 'Got it'
24+
optional: true
25+
- stopApp
26+
- waitForAnimationToEnd
27+
- launchApp
28+
- waitForAnimationToEnd
29+
- tapOn:
30+
text: 'Got it'
31+
optional: true
32+
- stopApp
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
appId: com.android.chrome
2+
---
3+
- waitForAnimationToEnd
4+
- launchApp
5+
- waitForAnimationToEnd
6+
- tapOn:
7+
text: 'Accept & continue'
8+
optional: true
9+
- waitForAnimationToEnd
10+
- tapOn:
11+
text: 'Use without an account'
12+
optional: true
13+
- waitForAnimationToEnd
14+
- tapOn:
15+
text: 'No thanks'
16+
optional: true
17+
- waitForAnimationToEnd
18+
- tapOn:
19+
text: 'No thanks'
20+
optional: true
21+
- waitForAnimationToEnd
22+
- tapOn:
23+
text: 'Got it'
24+
optional: true
25+
- stopApp
26+
- waitForAnimationToEnd
27+
- launchApp
28+
- waitForAnimationToEnd
29+
- tapOn:
30+
text: 'Got it'
31+
optional: true
32+
- stopApp
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
appId: com.android.chrome
2+
---
3+
- waitForAnimationToEnd
4+
- launchApp
5+
- waitForAnimationToEnd
6+
- tapOn:
7+
text: 'Accept & continue'
8+
optional: true
9+
- waitForAnimationToEnd
10+
- tapOn:
11+
text: 'Use without an account'
12+
optional: true
13+
- waitForAnimationToEnd
14+
- tapOn:
15+
text: 'No thanks'
16+
optional: true
17+
- waitForAnimationToEnd
18+
- tapOn:
19+
text: 'No thanks'
20+
optional: true
21+
- waitForAnimationToEnd
22+
- tapOn:
23+
text: 'Got it'
24+
optional: true
25+
- stopApp
26+
- waitForAnimationToEnd
27+
- launchApp
28+
- waitForAnimationToEnd
29+
- tapOn:
30+
text: 'Got it'
31+
optional: true
32+
- stopApp

0 commit comments

Comments
 (0)