Skip to content

Commit 7d21a27

Browse files
Merge remote-tracking branch 'origin/main' into maestro-circle-ci
2 parents 6530573 + 963e595 commit 7d21a27

File tree

6 files changed

+63
-7
lines changed

6 files changed

+63
-7
lines changed

__tests__/setup.test.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ describe('Setup Script', () => {
5151
const content = fs.readFileSync(setupScriptPath, 'utf8');
5252

5353
// Check for progress tracking
54-
expect(content).toContain('TOTAL_STEPS=8');
54+
expect(content).toContain('TOTAL_STEPS=9');
5555
expect(content).toContain('CURRENT_STEP=0');
5656
expect(content).toContain('START_TIME=');
5757
});
@@ -67,7 +67,8 @@ describe('Setup Script', () => {
6767
expect(content).toContain('Step 5: Yarn Package Manager');
6868
expect(content).toContain('Step 6: Project Dependencies');
6969
expect(content).toContain('Step 7: iOS Dependencies');
70-
expect(content).toContain('Step 8: Final Setup');
70+
expect(content).toContain('Step 8: Install Maestro');
71+
expect(content).toContain('Step 9: Final Setup');
7172
});
7273

7374
test('setup script should have enhanced user feedback', () => {
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
appId: com.example.intercomreactnative
2+
tags:
3+
- android
4+
- help-center
5+
---
6+
- launchApp
7+
- tapOn: "Login as an Unidentified User"
8+
- tapOn: "Present Help Center"
9+
- assertVisible: "Help"
10+
- assertVisible: "Untitled Collection"
11+
- tapOn: "Untitled Collection"
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
git appId: com.example.intercomreactnative
2+
tags:
3+
- android
4+
- messenger
5+
---
6+
- launchApp
7+
- tapOn: "Login as an Unidentified User"
8+
- tapOn: "Present Intercom"
9+
- tapOn: "Messenger Apps"
10+
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
appId: com.example.intercomreactnative
2+
tags:
3+
- ios
4+
- help-center
5+
---
6+
- launchApp
7+
- tapOn: "Login as an Unidentified User"
8+
- tapOn: "Present Help Center"
9+
- assertVisible: "Help"
10+
- assertVisible: "Untitled collection"
11+
- tapOn: "Untitled collection"
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
appId: com.example.intercomreactnative
2+
tags:
3+
- ios
4+
- messenger
5+
---
6+
- launchApp
7+
- tapOn: "Login as an Unidentified User"
8+
- tapOn: "Present Intercom"
9+
- tapOn: "Messenger apps"
10+

script/setup

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ CYAN='\033[0;36m'
1313
NC='\033[0m' # No Color
1414

1515
# Progress tracking
16-
TOTAL_STEPS=8
16+
TOTAL_STEPS=9
1717
CURRENT_STEP=0
1818
START_TIME=$(date +%s)
1919

@@ -31,7 +31,7 @@ function step_start() {
3131
CURRENT_STEP=$((CURRENT_STEP + 1))
3232
local step_name="$1"
3333
local icon="$2"
34-
34+
3535
echo "${CYAN}┌─ Step ${CURRENT_STEP}/${TOTAL_STEPS} ────────────────────────────────────────────────┐${NC}"
3636
echo "${CYAN}${NC} ${icon} ${step_name}"
3737
echo "${CYAN}└─────────────────────────────────────────────────────────────┘${NC}"
@@ -62,7 +62,7 @@ function show_progress() {
6262
local percentage=$((CURRENT_STEP * 100 / TOTAL_STEPS))
6363
local filled=$((CURRENT_STEP * 50 / TOTAL_STEPS))
6464
local empty=$((50 - filled))
65-
65+
6666
printf "${CYAN}Progress: [${NC}"
6767
printf "%${filled}s" | tr ' ' ''
6868
printf "%${empty}s" | tr ' ' ''
@@ -74,7 +74,7 @@ function final_summary() {
7474
local duration=$((end_time - START_TIME))
7575
local minutes=$((duration / 60))
7676
local seconds=$((duration % 60))
77-
77+
7878
echo "\n${GREEN}┌─────────────────────────────────────────────────────────────┐${NC}"
7979
echo "${GREEN}│ 🎉 Setup Complete! 🎉 │${NC}"
8080
echo "${GREEN}└─────────────────────────────────────────────────────────────┘${NC}"
@@ -181,7 +181,20 @@ cd -
181181
step_success "iOS dependencies installed"
182182
show_progress
183183

184-
# Step 8: Final Setup
184+
# Step 8: Install Maestro
185+
step_start "Installing Maestro" "🧪"
186+
if ! [ -x "$(command -v maestro)" ]; then
187+
curl -Ls "https://get.maestro.mobile.dev" | bash
188+
export PATH="$PATH:$HOME/.maestro/bin"
189+
step_success "Maestro installed successfully"
190+
else
191+
step_info "Checking Maestro version..."
192+
maestro -v
193+
step_success "Maestro is already installed"
194+
fi
195+
show_progress
196+
197+
# Step 9: Final Setup
185198
step_start "Finalizing setup" "🏁"
186199
step_success "Setup completed successfully"
187200
show_progress

0 commit comments

Comments
 (0)