Skip to content

Commit

Permalink
bug/9330-rachael-claims-fix-detox (#9361)
Browse files Browse the repository at this point in the history
  • Loading branch information
rbontrager authored Aug 13, 2024
1 parent 60e30b1 commit d908912
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 39 deletions.
2 changes: 1 addition & 1 deletion VAMobile/e2e/tests/Appeals.e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
} from './utils'

export const AppealsIdConstants = {
APPEAL_1_ID: 'Disability compensation appeal Received June 12, 2008',
APPEAL_1_ID: 'Disability compensation appeal Received June 12, 2008 Moved to this step on November 22, 2011',
REVIEW_PAST_EVENTS_ID: 'reviewPastEventsTestID',
ISSUES_TAB_TEXT: 'Issues',
STATUS_TAB_TEXT: 'Status',
Expand Down
86 changes: 51 additions & 35 deletions VAMobile/e2e/tests/AppealsExpanded.e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,41 +13,57 @@ import {
let i = 0

export const AppealsExpandedIdConstants = {
REMAND_RETURN_APPEAL_ID: 'Remand return appeal Received July 17, 2008',
HLR_REVIEW_CLOSED_APPEAL_ID: 'Higher level review closed appeal Received July 16, 2008',
SC_CLOSED_APPEAL_ID: 'Supplemental claim closed appeal Received July 15, 2008',
SC_DECISION_APPEAL_ID: 'Supplemental claim decision appeal Received July 14, 2008',
HLR_ERROR_APPEAL_ID: 'Higher level review error appeal Received July 13, 2008',
HLR_DECISION_APPEAL_ID: 'Higher level review decision appeal Received July 12, 2008',
HLR_RECIEVED_APPEAL_ID: 'Higher level review recieved appeal Received July 11, 2008',
SC_RECIEVED_APPEAL_ID: 'Supplemental claim received appeal Received July 10, 2008',
BVA_DECISION_EFFECTUATION_APPEAL_ID: 'Bva decision effectuation appeal Received July 09, 2008',
POST_BVA_DECISION_APPEAL_ID: 'Post bva dta decision appeal Received July 08, 2008',
EVIDENTIARY_PERIOD_APPEAL_ID: 'Evidentiary period appeal Received July 07, 2008',
STATUTORY_OPT_IN_APPEAL_ID: 'Statutory opt in appeal Received July 06, 2008',
AMA_REMAND_APPEAL_ID: 'Ama remand appeal Received July 05, 2008',
MERGED_APPEAL_ID: 'Merged appeal Received July 04, 2008',
REMAND_APPEAL_ID: 'Remand appeal Received July 03, 2008',
REMAND_SSOC_APPEAL_ID: 'Remand ssoc appeal Received July 02, 2008',
OTHER_CLOSED_APPEAL_ID: 'Other close appeal Received July 01, 2008',
RECONSIDERATION_APPEAL_ID: 'Reconsideration appeal Received June 30, 2008',
DEATH_APPEAL_ID: 'Death appeal Received June 29, 2008',
RAMP_APPEAL_ID: 'Ramp appeal Received June 28, 2008',
FTR_APPEAL_ID: 'Ftr appeal Received June 27, 2008',
WITHDRAWN_APPEAL_ID: 'Withdrawn appeal Received June 26, 2008',
FIELD_GRANT_APPEAL_ID: 'Field grant appeal Received June 25, 2008',
BVA_DECISION_APPEAL_ID: 'Bva decision appeal Received June 24, 2008',
MULTIPLE_DECISION_APPEAL_ID: 'Multiple decision in progress appeals Received June 23, 2008',
BVA_DEVELOPMENT_APPEAL_ID: 'Bva development appeal Received June 22, 2008',
BURIAL_STAYED_APPEAL_ID: 'Burial stayed appeal Received June 20, 2008',
AT_VSO_APPEAL_ID: 'At vso appeal Received June 21, 2008',
MEDICAL_PENDING_SOC_APPEAL_ID: 'Medical pending soc appeal Received June 19, 2008',
VRE_PENDING_APPEAL_ID: 'Vre pending form 9 appeal Received June 18, 2008',
EDUCATION_PENDING_APPEAL_ID: 'Education pending certification appeal Received June 17, 2008',
LOAN_GUARANTY_SSOC_APPEAL_ID: 'Loan guaranty pending certification ssoc appeal Received June 16, 2008',
INSURANCE_DOCKET_APPEAL_ID: 'Insurance on docket appeal Received June 15, 2008',
PENDING_HEARING_APPEAL_ID: 'Pending hearing appeal Received June 14, 2008',
DISABILITY_COMPENSATION_APPEAL_1_ID: 'Disability compensation appeal Received June 13, 2008',
REMAND_RETURN_APPEAL_ID: 'Remand return appeal Received July 17, 2008 Moved to this step on December 26, 2011',
HLR_REVIEW_CLOSED_APPEAL_ID:
'Higher level review closed appeal Received July 16, 2008 Moved to this step on December 25, 2011',
SC_CLOSED_APPEAL_ID:
'Supplemental claim closed appeal Received July 15, 2008 Moved to this step on December 24, 2011',
SC_DECISION_APPEAL_ID:
'Supplemental claim decision appeal Received July 14, 2008 Moved to this step on December 23, 2011',
HLR_ERROR_APPEAL_ID:
'Higher level review error appeal Received July 13, 2008 Moved to this step on December 22, 2011',
HLR_DECISION_APPEAL_ID:
'Higher level review decision appeal Received July 12, 2008 Moved to this step on December 21, 2011',
HLR_RECIEVED_APPEAL_ID:
'Higher level review recieved appeal Received July 11, 2008 Moved to this step on December 20, 2011',
SC_RECIEVED_APPEAL_ID:
'Supplemental claim received appeal Received July 10, 2008 Moved to this step on December 19, 2011',
BVA_DECISION_EFFECTUATION_APPEAL_ID:
'Bva decision effectuation appeal Received July 09, 2008 Moved to this step on December 18, 2011',
POST_BVA_DECISION_APPEAL_ID:
'Post bva dta decision appeal Received July 08, 2008 Moved to this step on December 17, 2011',
EVIDENTIARY_PERIOD_APPEAL_ID:
'Evidentiary period appeal Received July 07, 2008 Moved to this step on December 16, 2011',
STATUTORY_OPT_IN_APPEAL_ID: 'Statutory opt in appeal Received July 06, 2008 Moved to this step on December 15, 2011',
AMA_REMAND_APPEAL_ID: 'Ama remand appeal Received July 05, 2008 Moved to this step on December 14, 2011',
MERGED_APPEAL_ID: 'Merged appeal Received July 04, 2008 Moved to this step on December 13, 2011',
REMAND_APPEAL_ID: 'Remand appeal Received July 03, 2008 Moved to this step on December 12, 2011',
REMAND_SSOC_APPEAL_ID: 'Remand ssoc appeal Received July 02, 2008 Moved to this step on December 11, 2011',
OTHER_CLOSED_APPEAL_ID: 'Other close appeal Received July 01, 2008 Moved to this step on December 10, 2011',
RECONSIDERATION_APPEAL_ID: 'Reconsideration appeal Received June 30, 2008 Moved to this step on December 09, 2011',
DEATH_APPEAL_ID: 'Death appeal Received June 29, 2008 Moved to this step on December 08, 2011',
RAMP_APPEAL_ID: 'Ramp appeal Received June 28, 2008 Moved to this step on December 07, 2011',
FTR_APPEAL_ID: 'Ftr appeal Received June 27, 2008 Moved to this step on December 06, 2011',
WITHDRAWN_APPEAL_ID: 'Withdrawn appeal Received June 26, 2008 Moved to this step on December 05, 2011',
FIELD_GRANT_APPEAL_ID: 'Field grant appeal Received June 25, 2008 Moved to this step on December 04, 2011',
BVA_DECISION_APPEAL_ID: 'Bva decision appeal Received June 24, 2008 Moved to this step on December 03, 2011',
MULTIPLE_DECISION_APPEAL_ID:
'Multiple decision in progress appeals Received June 23, 2008 Moved to this step on December 02, 2011',
BVA_DEVELOPMENT_APPEAL_ID: 'Bva development appeal Received June 22, 2008 Moved to this step on December 01, 2011',
BURIAL_STAYED_APPEAL_ID: 'Burial stayed appeal Received June 20, 2008 Moved to this step on November 30, 2011',
AT_VSO_APPEAL_ID: 'At vso appeal Received June 21, 2008 Moved to this step on November 30, 2011',
MEDICAL_PENDING_SOC_APPEAL_ID:
'Medical pending soc appeal Received June 19, 2008 Moved to this step on November 29, 2011',
VRE_PENDING_APPEAL_ID: 'Vre pending form 9 appeal Received June 18, 2008 Moved to this step on November 28, 2011',
EDUCATION_PENDING_APPEAL_ID:
'Education pending certification appeal Received June 17, 2008 Moved to this step on November 27, 2011',
LOAN_GUARANTY_SSOC_APPEAL_ID:
'Loan guaranty pending certification ssoc appeal Received June 16, 2008 Moved to this step on November 26, 2011',
INSURANCE_DOCKET_APPEAL_ID:
'Insurance on docket appeal Received June 15, 2008 Moved to this step on November 25, 2011',
PENDING_HEARING_APPEAL_ID: 'Pending hearing appeal Received June 14, 2008 Moved to this step on November 24, 2011',
DISABILITY_COMPENSATION_APPEAL_1_ID:
'Disability compensation appeal Received June 13, 2008 Moved to this step on November 23, 2011',
}

const expectedInformation = [
Expand Down
7 changes: 4 additions & 3 deletions VAMobile/e2e/tests/Claims.e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const ClaimsE2eIdConstants = {
CLAIM_5_ID:
'Compensation Received March 22, 2019 Step 3 of 5: Evidence gathering, review, and decision Moved to this step on July 18, 2019',
CLAIM_6_ID:
'Dependency Received January 01, 2016 Step 3 of 5: Evidence gathering, review, and decision Moved to this step on July 30, 2016',
'Dependency Received January 01, 2016 Step 4 of 5: Preparation for notification Moved to this step on July 30, 2016',
CLOSED_CLAIM_DECISION_LETTER_ID:
'Compensation Decision letter ready Received January 01, 2021 Step 5 of 5: Complete Moved to this step on April 09, 2021',
CLAIM_3_STATUS_STEP_1_ID: 'Step 1. Claim received. Complete.',
Expand Down Expand Up @@ -62,7 +62,7 @@ beforeAll(async () => {
await openClaimsHistory()
})

describe('Claims Screen', () => {
describe(':ios: Claims Screen', () => {
it('should match the Claims history page design', async () => {
await expect(element(by.text('Your active claims, decision reviews, and appeals'))).toExist()
await expect(element(by.id(ClaimsE2eIdConstants.CLAIM_1_ID))).toExist()
Expand Down Expand Up @@ -165,7 +165,7 @@ describe('Claims Screen', () => {
})

it('verify number of requests in review file requests', async () => {
await expect(element(by.label('You have 3 file requests from V-A '))).toExist()
await expect(element(by.label('You have 3 file requests'))).toExist()
await element(by.text(CommonE2eIdConstants.CLAIMS_HISTORY_BUTTON_TEXT)).tap()
})

Expand Down Expand Up @@ -278,6 +278,7 @@ describe('Claims Screen', () => {
// })

it('should verify details of claim on step 1', async () => {
await element(by.id(ClaimsE2eIdConstants.CLAIMS_HISTORY_SCREEN_ID)).scrollTo('top')
await element(by.id(ClaimsE2eIdConstants.CLAIM_1_ID)).tap()
await expect(element(by.id('Step 1. Claim received. Current step.'))).toExist()
await expect(element(by.text(ClaimsE2eIdConstants.CURRENT_STEP_TEXT))).toExist()
Expand Down

0 comments on commit d908912

Please sign in to comment.