Skip to content

Commit 69b9af7

Browse files
committed
test(ios): add deep linking test definitions from MobileBoost
URI Scheme: cold start (basic, parameterized), warm open (basic, parameter processing, rapid fire, screen switch) Universal Link: cold open (attribution, deep navigation, invalid domain) TestBed: cold/warm open via URI scheme and universal link
1 parent 7cc5316 commit 69b9af7

27 files changed

Lines changed: 1070 additions & 0 deletions
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{
2+
"name": "[iOS] Cold Open - Universal Link",
3+
"mobileboost_id": "xaLjD7JK8LFquuzmOrnY",
4+
"tags": [
5+
"iOS"
6+
],
7+
"steps": [
8+
{
9+
"id": 1,
10+
"type": "openApp",
11+
"app": "Link Simulator"
12+
},
13+
{
14+
"id": 2,
15+
"type": "tap",
16+
"text": "Create Branch Link\" (button on the home screen to generate a fresh Branch deep link)"
17+
},
18+
{
19+
"id": 3,
20+
"type": "ai",
21+
"instruction": "terminate app"
22+
},
23+
{
24+
"id": 4,
25+
"type": "ai",
26+
"instruction": "Open Safari and paste the Branch link from clipboard into the address bar to navigate to it"
27+
},
28+
{
29+
"id": 5,
30+
"type": "tap",
31+
"text": "Open The App\" (Branch fallback page button in Safari to open the app with the deep link)"
32+
},
33+
{
34+
"id": 6,
35+
"type": "ai",
36+
"instruction": "assertVisible: \"Link Simulator\" (verify the app reopened successfully after the deep link from Safari)"
37+
}
38+
],
39+
"params": {}
40+
}
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"name": "[iOS] Cold Open - URI Scheme",
3+
"mobileboost_id": "jnJuMbQEGrnueeeky6XK",
4+
"tags": [
5+
"iOS"
6+
],
7+
"steps": [
8+
{
9+
"id": 1,
10+
"type": "ai",
11+
"instruction": "Scroll down till you see the \"Force Quit App\" button"
12+
},
13+
{
14+
"id": 2,
15+
"type": "ai",
16+
"instruction": "Tap on the \"Force Quit App\" button"
17+
},
18+
{
19+
"id": 3,
20+
"type": "ai",
21+
"instruction": "Open deeplink: https://branchmetrics.github.io/mobileboost-test-links-page"
22+
},
23+
{
24+
"id": 4,
25+
"type": "ai",
26+
"instruction": "Tap on \"Open iOS TestBed - URI Scheme\" and then \"Open\" to open the deep link to the app"
27+
},
28+
{
29+
"id": 5,
30+
"type": "ai",
31+
"instruction": "Check if you are on the Logs page and see \"Successfully Deeplinked\""
32+
}
33+
],
34+
"params": {}
35+
}

tests/ios/create-branch-link.json

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"name": "[iOS] Create Branch Link",
3+
"steps": [
4+
{
5+
"id": 1,
6+
"type": "assert",
7+
"text": "Branch TestBed"
8+
},
9+
{
10+
"id": 2,
11+
"type": "tap",
12+
"text": "Create Branch Link"
13+
},
14+
{
15+
"id": 3,
16+
"type": "ai",
17+
"instruction": "Wait until a URL starting with 'https://' appears in the text field below 'Create Branch Link', then continue. Otherwise repeat this step."
18+
},
19+
{
20+
"id": 4,
21+
"type": "assert",
22+
"text": "https://"
23+
}
24+
],
25+
"params": {}
26+
}

tests/ios/create-deep-link.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"name": "[Shared] Create Deep Link",
3+
"mobileboost_id": "9gzrzSunMv3xTDutHMhB",
4+
"tags": [
5+
"Android",
6+
"iOS"
7+
],
8+
"steps": [
9+
{
10+
"id": 1,
11+
"type": "ai",
12+
"instruction": "Tap the \"Create Branch Link\" button then Confirm that there is now a deep link above it starting with \"https://bnctestbed.app.link/\""
13+
}
14+
],
15+
"params": {}
16+
}

tests/ios/event-commerce.json

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"name": "[iOS] Send Commerce Event",
3+
"steps": [
4+
{
5+
"id": 1,
6+
"type": "assert",
7+
"text": "Branch TestBed"
8+
},
9+
{
10+
"id": 2,
11+
"type": "tap",
12+
"text": "Send Commerce Event"
13+
},
14+
{
15+
"id": 3,
16+
"type": "assert",
17+
"text": "Add To Cart"
18+
},
19+
{
20+
"id": 4,
21+
"type": "tap",
22+
"text": "Add To Cart"
23+
},
24+
{
25+
"id": 5,
26+
"type": "ai",
27+
"instruction": "Wait until a success alert or confirmation is displayed on the screen, then continue. Otherwise repeat this step."
28+
},
29+
{
30+
"id": 6,
31+
"type": "assert",
32+
"text": "Branch TestBed"
33+
}
34+
],
35+
"params": {}
36+
}

tests/ios/event-content.json

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"name": "[iOS] Send Content Event",
3+
"steps": [
4+
{
5+
"id": 1,
6+
"type": "assert",
7+
"text": "Branch TestBed"
8+
},
9+
{
10+
"id": 2,
11+
"type": "tap",
12+
"text": "Send Content Event"
13+
},
14+
{
15+
"id": 3,
16+
"type": "assert",
17+
"text": "Search"
18+
},
19+
{
20+
"id": 4,
21+
"type": "tap",
22+
"text": "Search"
23+
},
24+
{
25+
"id": 5,
26+
"type": "ai",
27+
"instruction": "Wait until a success alert or confirmation is displayed on the screen, then continue. Otherwise repeat this step."
28+
},
29+
{
30+
"id": 6,
31+
"type": "assert",
32+
"text": "Branch TestBed"
33+
}
34+
],
35+
"params": {}
36+
}

tests/ios/event-lifecycle.json

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"name": "[iOS] Send Lifecycle Event",
3+
"steps": [
4+
{
5+
"id": 1,
6+
"type": "assert",
7+
"text": "Branch TestBed"
8+
},
9+
{
10+
"id": 2,
11+
"type": "tap",
12+
"text": "Send Lifecycle Event"
13+
},
14+
{
15+
"id": 3,
16+
"type": "assert",
17+
"text": "Complete Registration"
18+
},
19+
{
20+
"id": 4,
21+
"type": "tap",
22+
"text": "Complete Registration"
23+
},
24+
{
25+
"id": 5,
26+
"type": "ai",
27+
"instruction": "Wait until a success alert or confirmation is displayed on the screen, then continue. Otherwise repeat this step."
28+
},
29+
{
30+
"id": 6,
31+
"type": "assert",
32+
"text": "Branch TestBed"
33+
}
34+
],
35+
"params": {}
36+
}
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"name": "[iOS] View First Referring Params",
3+
"steps": [
4+
{
5+
"id": 1,
6+
"type": "assert",
7+
"text": "Branch TestBed"
8+
},
9+
{
10+
"id": 2,
11+
"type": "tap",
12+
"text": "View First Referring Params"
13+
},
14+
{
15+
"id": 3,
16+
"type": "assert",
17+
"text": "Log Output"
18+
},
19+
{
20+
"id": 4,
21+
"type": "ai",
22+
"instruction": "Wait until JSON content with curly braces is displayed on the Log Output screen, then continue. Otherwise repeat this step."
23+
}
24+
],
25+
"params": {}
26+
}
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"name": "[iOS] View Latest Referring Params",
3+
"steps": [
4+
{
5+
"id": 1,
6+
"type": "assert",
7+
"text": "Branch TestBed"
8+
},
9+
{
10+
"id": 2,
11+
"type": "tap",
12+
"text": "View Latest Referring Params"
13+
},
14+
{
15+
"id": 3,
16+
"type": "assert",
17+
"text": "Log Output"
18+
},
19+
{
20+
"id": 4,
21+
"type": "ai",
22+
"instruction": "Wait until JSON content with curly braces is displayed on the Log Output screen, then continue. Otherwise repeat this step."
23+
}
24+
],
25+
"params": {}
26+
}

tests/ios/qr-code-generation.json

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"name": "[iOS] QR Code Generation",
3+
"steps": [
4+
{
5+
"id": 1,
6+
"type": "assert",
7+
"text": "Branch TestBed"
8+
},
9+
{
10+
"id": 2,
11+
"type": "tap",
12+
"text": "Create QR Code"
13+
},
14+
{
15+
"id": 3,
16+
"type": "ai",
17+
"instruction": "Wait until an alert with a QR code image is displayed on the screen, then continue. Otherwise repeat this step."
18+
},
19+
{
20+
"id": 4,
21+
"type": "assert",
22+
"text": "Dismiss"
23+
},
24+
{
25+
"id": 5,
26+
"type": "tap",
27+
"text": "Dismiss"
28+
},
29+
{
30+
"id": 6,
31+
"type": "assert",
32+
"text": "Branch TestBed"
33+
}
34+
],
35+
"params": {}
36+
}

0 commit comments

Comments
 (0)