Skip to content

Commit

Permalink
dev
Browse files Browse the repository at this point in the history
  • Loading branch information
zetavg committed Jan 19, 2025
1 parent 5b47b34 commit 8fb3ee6
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tests/rn-test-container/native-test.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ function getSimulatorUdid() {
}
}

function getWebDriverOpts() {
type WebdriverIOConfig = Parameters<typeof remote>[0]

function getWebDriverOpts(): WebdriverIOConfig {
const capabilities = {
platformName: 'iOS',
'appium:options': {
Expand All @@ -61,9 +63,11 @@ function getWebDriverOpts() {
const wdOpts = {
hostname: process.env.APPIUM_HOST || 'localhost',
port: process.env.APPIUM_PORT ? Number.parseInt(process.env.APPIUM_PORT, 10) : 4723,
connectionRetryTimeout: 5 * 60 * 1000,
connectionRetryCount: 3,
logLevel: 'info' as const,
capabilities,
}
} satisfies WebdriverIOConfig

return wdOpts
}
Expand Down

0 comments on commit 8fb3ee6

Please sign in to comment.