Skip to content

Commit

Permalink
fix: augment timeout on e2e tests
Browse files Browse the repository at this point in the history
Signed-off-by: clegirar <clemntgirard@gmail.com>
  • Loading branch information
clegirar committed Nov 17, 2022
1 parent c2133b9 commit 3c2bb1a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
8 changes: 5 additions & 3 deletions js/e2e-tests/lib.js
Expand Up @@ -29,6 +29,8 @@ const getCapabilitiesFromEnv = () => {
throw new Error('no app provided')
}

const timeout = 60 * 60 * 1000

switch (platform) {
case 'iOS':
return {
Expand All @@ -37,9 +39,9 @@ const getCapabilitiesFromEnv = () => {
'appium:deviceName': process.env.IOS_DEVICE || 'iPhone 11',
'appium:app': app,
'appium:automationName': 'XCUITest', // UiAutomator2, Espresso, or UiAutomator1 for Android,
'appium:simulatorStartupTimeout': 10 * 60 * 1000,
'appium:wdaLaunchTimeout': 10 * 60 * 1000,
'appium:wdaConnectionTimeout': 10 * 60 * 1000,
'appium:simulatorStartupTimeout': timeout,
'appium:wdaLaunchTimeout': timeout,
'appium:wdaConnectionTimeout': timeout,
'appium:wdaStartupRetries': 4,
}
case 'Android':
Expand Down
6 changes: 3 additions & 3 deletions js/packages/i18n/locale/en-US/messages.json
Expand Up @@ -176,6 +176,9 @@
"backup-button": "Backup",
"backup-notif-title": "Success",
"backup-notif-desc": "Account has been backed up!",
"accounts-button": "Accounts",
"create-button": "Create an account",
"import-button": "Import an account",
"link-button": "Link another device",
"delete-button": "Delete this account",
"delete-title": "Account deletion"
Expand Down Expand Up @@ -238,9 +241,6 @@
"header-left-button": "Device infos",
"header-middle-button": "Generate fake data",
"header-right-button": "Restart daemon",
"accounts-button": "Accounts",
"create-button": "Create an account",
"import-button": "Import an account",
"force-mock-button": "Force mock",
"simulate-button": "Simulate stream error",
"simulate-js-error-button": "Simulate JavaScript error",
Expand Down
7 changes: 3 additions & 4 deletions js/packages/screens/settings/DevTools/DevTools.tsx
Expand Up @@ -458,7 +458,7 @@ const BodyDevTools: React.FC<{}> = withInAppNotification(({ showNotification }:
>
<ItemSection>
<AccountsDropdown
placeholder={t('settings.devtools.accounts-button')}
placeholder={t('settings.accounts.accounts-button')}
items={[...accounts].sort(
(a, b) => pbDateToNum(a.creationDate) - pbDateToNum(b.creationDate),
)}
Expand All @@ -469,7 +469,7 @@ const BodyDevTools: React.FC<{}> = withInAppNotification(({ showNotification }:

<ItemSection>
<MenuItem onPress={useOnBoardingAfterClosing}>
{t('settings.devtools.create-button')}
{t('settings.accounts.create-button')}
</MenuItem>

{Platform.OS !== 'web' && (
Expand All @@ -485,11 +485,10 @@ const BodyDevTools: React.FC<{}> = withInAppNotification(({ showNotification }:
importingAccountAfterClosing(filePath)
}}
>
{t('settings.devtools.import-button')}
{t('settings.accounts.import-button')}
</MenuItem>
</>
)}
{/* <ButtonSettingV2 text={t('settings.accounts.link-button')} disabled last /> */}
</ItemSection>
<View style={[padding.horizontal.medium]}>
<ButtonSetting
Expand Down

0 comments on commit 3c2bb1a

Please sign in to comment.