Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug/10222-rachael-detox-fix-nightly-errors #10244

Merged
merged 1 commit into from
Dec 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 2 additions & 26 deletions VAMobile/e2e/tests/Navigation.e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,18 +37,6 @@ const navigationDic = {
['Claims.e2e', ['Claims', 'Claims history', 'Active'], 'Your active claims, decision reviews, and appeals'],
['Claims.e2e', ['Claims', 'Claims history', 'Received July 20, 2021'], 'Claim details'],
//['Claims.e2e', ['Claims', 'Claims history', 'Received July 20, 2021', 'Submit evidence'], 'Submit evidence'],
['Claims.e2e', ['Claims', 'Claims history', 'Received January 01, 2021', 'Review file requests'], 'File requests'],
[
'Claims.e2e',
[
'Claims',
'Claims history',
'Received January 01, 2021',
'Review file requests',
'Dental disability - More information needed',
],
'Dental disability - More information needed',
],
['Claims.e2e', ['Claims', 'Claims history', 'Received July 20, 2021', 'Files'], 'JESSE_GRAY_600246732_526.pdf'],
[['Appeals.e2e', 'AppealsExpanded.e2e'], ['Claims', 'Claims history', 'Received July 17, 2008'], 'Appeal details'],
[
Expand Down Expand Up @@ -96,8 +84,6 @@ const featureID = {
'Received July 20, 2021': 'claimsHistoryID',
'Received January 01, 2021': 'claimsHistoryID',
'Received July 17, 2008': 'claimsHistoryID',
'Review file requests': 'claimStatusDetailsID',
'Dental disability - More information needed': 'fileRequestPageTestID',
'Review letters': 'lettersPageID',
Health: 'healthCategoryTestID',
Appointments: 'appointmentsTestID',
Expand Down Expand Up @@ -215,12 +201,7 @@ const navigateToPage = async (key, navigationDicValue) => {
} else {
const subNavigationArray = navigationArray[1]
for (let k = 0; k < subNavigationArray.length - 1; k++) {
if (subNavigationArray[k] === 'Review file requests') {
await waitFor(element(by.id(CommonE2eIdConstants.ALERT_FILE_REQUEST_BUTTON_ID)))
.toBeVisible()
.whileElement(by.id(CommonE2eIdConstants.CLAIMS_DETAILS_SCREEN_ID))
.scroll(100, 'up')
} else if (subNavigationArray[k] === 'Received July 17, 2008') {
if (subNavigationArray[k] === 'Received July 17, 2008') {
await waitFor(element(by.text('Received July 17, 2008')))
.toBeVisible()
.whileElement(by.id(CommonE2eIdConstants.CLAIMS_HISTORY_SCROLL_ID))
Expand All @@ -247,12 +228,7 @@ const navigateToPage = async (key, navigationDicValue) => {
await element(by.text(subNavigationArray[k])).tap()
}

if (subNavigationArray.slice(-1)[0] === 'Review file requests') {
await waitFor(element(by.id(CommonE2eIdConstants.ALERT_FILE_REQUEST_BUTTON_ID)))
.toBeVisible()
.whileElement(by.id(CommonE2eIdConstants.CLAIMS_DETAILS_SCREEN_ID))
.scroll(100, 'up')
} else if (subNavigationArray.slice(-1)[0] === 'Get prescription details') {
if (subNavigationArray.slice(-1)[0] === 'Get prescription details') {
await waitFor(element(by.label('CAPECITABINE 500MG TAB.')))
.toBeVisible()
.whileElement(by.id(CommonE2eIdConstants.PRESCRIPTION_HISTORY_SCROLL_ID))
Expand Down
8 changes: 8 additions & 0 deletions VAMobile/e2e/tests/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,10 @@ export async function loginToDemoMode(skipOnboarding = true, pushNotifications?:
.toExist()
.withTimeout(60000)
}
await waitFor(element(by.id(CommonE2eIdConstants.VA_LOGO_ICON_ID)))
.toBeVisible()
.whileElement(by.id('Login-page'))
.scroll(100, 'down')
await element(by.id(CommonE2eIdConstants.VA_LOGO_ICON_ID)).multiTap(7)

if (DEMO_PASSWORD !== undefined) {
Expand All @@ -134,6 +138,10 @@ export async function loginToDemoMode(skipOnboarding = true, pushNotifications?:
await element(by.id(CommonE2eIdConstants.DEMO_MODE_INPUT_ID)).tapReturnKey()
await element(by.id(CommonE2eIdConstants.DEMO_BTN_ID)).multiTap(2)

await waitFor(element(by.id(CommonE2eIdConstants.SIGN_IN_BTN_ID)))
.toBeVisible()
.whileElement(by.id('Login-page'))
.scroll(100, 'down')
await element(by.id(CommonE2eIdConstants.SIGN_IN_BTN_ID)).tap()

if (skipOnboarding === true) {
Expand Down
Loading