Skip to content

Commit

Permalink
changes appium timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
Dopeamin committed Jan 17, 2025
1 parent b36e017 commit 86f855c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/flutter_emulator_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,12 @@ jobs:
sudo udevadm control --reload-rules
sudo udevadm trigger --name-match=kvm
# Step 10: Start Appium Server
- name: Start Appium Server
run: |
nohup appium --relaxed-security --port=4567 --address=127.0.0.1 > appium.log 2>&1 &
sleep 10
# Step 8: Start the Emulator & run the tests
- name: Set Up Android Emulator & Run Tests
uses: reactivecircus/android-emulator-runner@v2
Expand All @@ -74,7 +80,6 @@ jobs:
adb shell input keyevent 82 &
flutter --version
cd packages/passkeys/passkeys/example && flutter build apk --debug --dart-define=CORBADO_PROJECT_ID=pro-8751299119685489253 && adb install -r build/app/outputs/flutter-apk/app-debug.apk
nohup appium ---relaxed-security --port=4567 --address=127.0.0.1 > appium.log 2>&1 &
cd packages/passkeys/passkeys/example/tests && npm i && node main.js android
#Print Appium Logs (if tests fail)
Expand Down Expand Up @@ -143,7 +148,7 @@ jobs:
flutter build ios --no-codesign --simulator --dart-define=CORBADO_PROJECT_ID=pro-8751299119685489253
# Step 9: Install the App
- name: Install Launch App
- name: Install App
run: |
xcrun simctl install booted build/ios/iphonesimulator/Runner.app
Expand Down
11 changes: 2 additions & 9 deletions packages/passkeys/passkeys/example/tests/main.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
const wdio = require('webdriverio');
const {byValueKey} = require('appium-flutter-finder');

// Appium server configuration
const server = {
host: "localhost",
port: 4723,
};

// Desired capabilities for the iOS simulator
const capsAndroid =
{
Expand All @@ -16,8 +10,7 @@ const capsAndroid =
'appium:appActivity': ".MainActivity",
'appium:noReset': true,
'appium:automationName': 'Flutter',
'appium:retryBackoffTime': 500,
"appium:newCommandTimeout": 300
'appium:retryBackoffTime': 500
};

const capsIos =
Expand All @@ -29,7 +22,7 @@ const capsIos =
"appium:noReset": true,
"appium:fullReset": false,
"appium:automationName": "Flutter",
"appium:newCommandTimeout": 300
"appium:showXcodeLog": true
};

const platform = process.argv[2]?.toLowerCase();
Expand Down

0 comments on commit 86f855c

Please sign in to comment.