Skip to content

Commit

Permalink
added step to copy packages, added address to appium
Browse files Browse the repository at this point in the history
  • Loading branch information
Othinn committed Apr 7, 2024
1 parent 5a29713 commit 49da014
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 12 deletions.
18 changes: 8 additions & 10 deletions .circleci/configurations/jobs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -134,11 +134,10 @@ jobs:
- setup_ruby:
ruby_version: << parameters.ruby_version >>
- run:
name: Install appium
command: npm install appium@2.0.0 -g
- run:
name: Install appium drivers
command: appium driver install xcuitest@5.6.0
name: Copy packages
command: |
cd packages/rn-tester-e2e/scripts
copy-packages.sh
- run:
name: Boot iOS Simulator
command: source scripts/.tests.env && xcrun simctl boot "$IOS_DEVICE" || true
Expand Down Expand Up @@ -196,11 +195,10 @@ jobs:
restore-gradle-cache-prefix: v1a
post-emulator-launch-assemble-command: ""
- run:
name: Install appium
command: npm install appium@2.0.0 -g
- run:
name: Install appium drivers
command: appium driver install uiautomator2@2.29.0
name: Copy packages
command: |
cd packages/rn-tester-e2e/scripts
copy-packages.sh
- run:
name: Start Metro
command: |
Expand Down
15 changes: 15 additions & 0 deletions packages/rn-tester-e2e/scripts/copy-packages.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/bash

SOURCE_DIR=../../../node_modules
DEST_DIR=../node_modules

# List of package directories to copy
PACKAGES=("appium" "appium-uiautomator2-driver" "appium-xcuitest-driver" "@wdio")

# Copy each package directory
for PACKAGE in "${PACKAGES[@]}"; do
echo "Copying $PACKAGE..."
cp -R "$SOURCE_DIR/$PACKAGE" "$DEST_DIR"
done

echo "Copying completed."
3 changes: 2 additions & 1 deletion packages/rn-tester-e2e/wdio.conf.android.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,10 @@ exports.config = {
[
'appium',
{
command: 'appium',
args: {
address: 'localhost',
port: 4723,
address: '127.0.0.1',
},
logPath: './reports',
},
Expand Down
3 changes: 2 additions & 1 deletion packages/rn-tester-e2e/wdio.conf.ios.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ exports.config = {
'appium:automationName': 'XCUITest',
'appium:app': path.join(process.cwd(), '/apps/rn-tester.app'),
'appium:newCommandTimeout': 120,
'appium:fullReset': false,
'appium:fullReset': false
},
],
logLevel: 'debug',
Expand All @@ -38,6 +38,7 @@ exports.config = {
[
'appium',
{
address: '127.0.0.1',
port: 4723,
logPath: './reports',
},
Expand Down

0 comments on commit 49da014

Please sign in to comment.