Skip to content

Commit

Permalink
Merge branch 'develop' into 10187-add-back-announcement-for-screenreader
Browse files Browse the repository at this point in the history
  • Loading branch information
cadibemma committed Dec 5, 2024
2 parents 8536417 + 966bb3a commit 7011ad0
Show file tree
Hide file tree
Showing 7 changed files with 42 additions and 24 deletions.
31 changes: 23 additions & 8 deletions .github/workflows/e2e_android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -204,12 +204,27 @@ jobs:
uses: reactivecircus/android-emulator-runner@v2
with:
working-directory: VAMobile
api-level: 28
api-level: 33
profile: pixel_6_pro
force-avd-creation: false
disable-animations: true
arch: x86_64
avd-name: Pixel_4_XL_API_28
avd-name: Pixel_6_Pro_API_33
script: yarn e2e:android-test /e2e/tests/${{matrix.testsuite}} --updateSnapshot
continue-on-error: true

- name: Run e2e tests for Android - Full Test - Retry
id: run_e2e_tests_full_retry
if: steps.run_e2e_tests.outcome == 'failure'
uses: reactivecircus/android-emulator-runner@v2
with:
working-directory: VAMobile
api-level: 33
profile: pixel_6_pro
force-avd-creation: false
disable-animations: true
arch: x86_64
avd-name: Pixel_6_Pro_API_33
script: yarn e2e:android-test /e2e/tests/${{matrix.testsuite}} --updateSnapshot
continue-on-error: true

Expand All @@ -219,12 +234,12 @@ jobs:
uses: reactivecircus/android-emulator-runner@v2
with:
working-directory: VAMobile
api-level: 28
api-level: 33
profile: pixel_6_pro
force-avd-creation: false
disable-animations: true
arch: x86_64
avd-name: Pixel_4_XL_API_28
avd-name: Pixel_6_Pro_API_33
script: yarn e2e:android-test /e2e/tests/Navigation.e2e AvailabilityFramework.e2e ${{matrix.testsuite}}.e2e --updateSnapshot
continue-on-error: true

Expand All @@ -234,12 +249,12 @@ jobs:
uses: reactivecircus/android-emulator-runner@v2
with:
working-directory: VAMobile
api-level: 28
api-level: 33
profile: pixel_6_pro
force-avd-creation: false
disable-animations: true
arch: x86_64
avd-name: Pixel_4_XL_API_28
avd-name: Pixel_6_Pro_API_33
script: yarn e2e:android-test /e2e/tests/Navigation.e2e AvailabilityFramework.e2e ${{matrix.testsuite}}.e2e --updateSnapshot

- name: Upload e2e-junit
Expand All @@ -250,15 +265,15 @@ jobs:
path: VAMobile/e2e/test_reports/e2e-junit.xml

- name: Upload artifacts on failure
if: failure() || steps.run_e2e_tests.outcome == 'failure'
if: failure() || steps.run_e2e_tests_full_retry.outcome == 'failure'
uses: actions/upload-artifact@v4
with:
name: detox-artifacts-${{ runner.os }}-${{ github.run_id }}-${{matrix.testsuite}}
path: VAMobile/artifacts
retention-days: 1

- name: Fail workflow if needed(View e2e step for details)
if: steps.run_e2e_tests.outcome == 'failure'
if: steps.run_e2e_tests_full_retry.outcome == 'failure'
run: exit 1

output-slack-results-and-update-detox-failure-ticket:
Expand Down
2 changes: 1 addition & 1 deletion VAMobile/.detoxrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"emulator": {
"type": "android.emulator",
"device": {
"avdName": "Pixel_4_XL_API_28"
"avdName": "Pixel_6_Pro_API_33"
}
}
},
Expand Down
11 changes: 3 additions & 8 deletions VAMobile/e2e/tests/Appointments.e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ describe('Appointments Screen', () => {
.scroll(200, 'down')
await element(by.text('Vilanisi Reddy')).tap()
if (device.getPlatform() === 'android') {
await device.disableSynchronization()
await element(by.id(CommonE2eIdConstants.ADD_TO_CALENDAR_ID)).atIndex(0).tap()
await device.takeScreenshot('appointmentCalendar')
await device.launchApp({ newInstance: false })
Expand All @@ -50,14 +51,8 @@ describe('Appointments Screen', () => {
await device.takeScreenshot('appointmentGetDirections')
await device.launchApp({ newInstance: false })

await device.disableSynchronization()
await element(by.id(CommonE2eIdConstants.CALL_VA_TTY_PHONE_NUMBER_ID)).atIndex(0).tap()
await device.takeScreenshot('appointmentVALocationPhoneNumber')
await device.launchApp({ newInstance: false })

await element(by.id(CommonE2eIdConstants.CALL_VA_PHONE_NUMBER_ID)).atIndex(0).tap()
await device.takeScreenshot('apointmentVALocationTTY')
await device.launchApp({ newInstance: false })
await expect(element(by.id(CommonE2eIdConstants.CALL_VA_TTY_PHONE_NUMBER_ID)).atIndex(0)).toExist()
await expect(element(by.id(CommonE2eIdConstants.CALL_VA_PHONE_NUMBER_ID)).atIndex(0)).toExist()

await element(by.id('UpcomingApptDetailsTestID')).scrollTo('bottom')

Expand Down
9 changes: 8 additions & 1 deletion VAMobile/e2e/tests/Claims.e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,10 @@ describe('Claims Screen', () => {
})

it('should verify details of claim on step 2', async () => {
await waitFor(element(by.id(ClaimsE2eIdConstants.CLAIM_3_ID)))
.toBeVisible()
.whileElement(by.id(CommonE2eIdConstants.CLAIMS_HISTORY_SCROLL_ID))
.scroll(100, 'down')
await element(by.id(ClaimsE2eIdConstants.CLAIM_3_ID)).tap()
await expect(element(by.id('Step 2 of 5. Initial review. Current step. Step 1 complete.'))).toExist()
await expect(
Expand Down Expand Up @@ -351,7 +355,10 @@ describe('Claims Screen', () => {
it('should verify details of claim on step 5', async () => {
await element(by.id(CommonE2eIdConstants.CLAIMS_HISTORY_SCROLL_ID)).scrollTo('top')
await element(by.id(ClaimsE2eIdConstants.CLAIM_2_ID)).tap()
await element(by.id(CommonE2eIdConstants.CLAIMS_DETAILS_SCREEN_ID)).scrollTo('bottom')
await waitFor(element(by.id('Step 5 of 5. Complete. Complete.')))
.toBeVisible()
.whileElement(by.id(CommonE2eIdConstants.CLAIMS_DETAILS_SCREEN_ID))
.scroll(100, 'down')
await element(by.id('Step 5 of 5. Complete. Complete.')).tap()
await expect(element(by.text('Complete')).atIndex(1)).toExist()
await element(by.id(CommonE2eIdConstants.CLAIMS_DETAILS_BACK_ID)).tap()
Expand Down
3 changes: 2 additions & 1 deletion VAMobile/e2e/tests/HomeScreen.e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ describe('Home Screen', () => {
})

it(':android: should disable AF use case 3', async () => {
await disableAF(undefined, 'WG_Home', undefined, 'AllowFunction')
await device.uninstallApp()
await device.installApp()
await device.launchApp({ newInstance: true, permissions: { notifications: 'YES' } })
await loginToDemoMode()
})
Expand Down
2 changes: 1 addition & 1 deletion VAMobile/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
"react-native-svg-transformer": "^1.5.0",
"react-native-toast-notifications": "^3.4.0",
"react-native-webp-format": "^1.2.0",
"react-native-webview": "^13.12.3",
"react-native-webview": "^13.12.4",
"react-redux": "^9.1.2",
"styled-components": "^5.3.10",
"underscore": "^1.13.7"
Expand Down
8 changes: 4 additions & 4 deletions VAMobile/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -9388,10 +9388,10 @@ react-native-webp-format@^1.2.0:
resolved "https://registry.yarnpkg.com/react-native-webp-format/-/react-native-webp-format-1.2.0.tgz#6c7cbed4cdc8247711c7d7f656d0d4f739836c82"
integrity sha512-tUL/AbM6QwUsxsGutJ1bN4RW8JdD2w5Mpj+An4DvYKkm0bKHbODj7U7gI1+8X68GqJWOy+Ps2cbVmgNpSDfRPQ==

react-native-webview@^13.12.3:
version "13.12.3"
resolved "https://registry.yarnpkg.com/react-native-webview/-/react-native-webview-13.12.3.tgz#3aa9d2fc982ba2681e56d3e96e22b63a0d929270"
integrity sha512-Y1I5YyDYyE7NC96RHLhd2nxh7ymLYOYLTefgx5ixxw2OToQK0ow3OJ+o77QcI1Tuevj5PCxwqC/14ceS/7yPJQ==
react-native-webview@^13.12.4:
version "13.12.4"
resolved "https://registry.yarnpkg.com/react-native-webview/-/react-native-webview-13.12.4.tgz#1a563a7fbd6bf53d688388d46708f273ed0ebb94"
integrity sha512-8lWeYPVWeOj0ya9ZpDesOQPRgczuN3ogQHlhS21sNXndd4kvfPG+WjlRdrvxYgj//udpwmzcWzagwLnEp60Aqg==
dependencies:
escape-string-regexp "^4.0.0"
invariant "2.2.4"
Expand Down

0 comments on commit 7011ad0

Please sign in to comment.