Skip to content

Commit

Permalink
bug/10058-rachael-detox-messages-AF-failing
Browse files Browse the repository at this point in the history
  • Loading branch information
rbontrager committed Nov 25, 2024
1 parent 50eff22 commit 171d561
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions VAMobile/e2e/tests/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -603,6 +603,14 @@ export async function verifyAF(featureNavigationArray, AFUseCase, AFUseCaseUpgra
await element(by.text('OK')).atIndex(0).tap()
}
} else if (AFUseCase === 'DenyContent' || AFUseCase === 'AllowFunction') {
if (AFUseCaseUpgrade) {
try {
await expect(element(by.text('Update now'))).toExist()
} catch (ex) {
await expect(element(by.text('Update now')).atIndex(1)).toExist()
}
}

if (device.getPlatform() === 'android') {
await device.disableSynchronization()
try {
Expand All @@ -622,17 +630,8 @@ export async function verifyAF(featureNavigationArray, AFUseCase, AFUseCaseUpgra
}
await setTimeout(5000)
await device.takeScreenshot(featureName + 'AFUseCase2TTY')
await device.launchApp({ newInstance: false })
await device.enableSynchronization()
}

if (AFUseCaseUpgrade) {
try {
await expect(element(by.text('Update now'))).toExist()
} catch (ex) {
await expect(element(by.text('Update now')).atIndex(1)).toExist()
}
}
}

if (AFUseCase !== 'AllowFunction') {
Expand Down

0 comments on commit 171d561

Please sign in to comment.