Skip to content

Commit

Permalink
maybe ids
Browse files Browse the repository at this point in the history
  • Loading branch information
TKDickson committed Nov 5, 2024
1 parent dabb444 commit 792c040
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions VAMobile/e2e/tests/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -417,13 +417,13 @@ export async function enableAF(AFFeature, AFUseCase, AFAppUpdate = false) {
try {
await expect(element(by.id('remoteConfigAppUpdateTestID'))).toHaveToggleValue(true)
} catch (ex) {
await element(by.text('appUpdateButton')).tap() //should be able to switch to the same id as two lines above
await element(by.id('remoteConfigAppUpdateTestID')).tap()
}
} else if (AFFeature === 'WG_Health') {
try {
await expect(element(by.id('remoteConfigEnableTestID'))).toHaveToggleValue(false)
} catch (ex) {
await element(by.text('Enabled')).tap() //switch to two rows up
await element(by.id('remoteConfigEnableTestID')).tap()
}
}

Expand All @@ -432,13 +432,13 @@ export async function enableAF(AFFeature, AFUseCase, AFAppUpdate = false) {
try {
await expect(element(by.id('remoteConfigEnableTestID'))).toHaveToggleValue(false)
} catch (ex) {
await element(by.text('Enabled')).tap() //switch to two rows up
await element(by.id('remoteConfigEnableTestID')).tap()
}
} else if (AFUseCase === 'DenyAccess') {
try {
await expect(element(by.id('remoteConfigEnableTestID'))).toHaveToggleValue(false)
} catch (ex) {
await element(by.text('Enabled')).tap() //switch to two rows up
await element(by.id('remoteConfigEnableTestID')).tap()
}
}
}
Expand Down

0 comments on commit 792c040

Please sign in to comment.