PI-1571 (#2401) #1783
GitHub Actions / End-to-end test results
failed
Oct 18, 2023 in 0s
25 tests run, 23 passed, 1 skipped, 1 failed.
Annotations
Check failure on line 13 in ts
github-actions / End-to-end test results
ts.View Delius case data
view-case-data.spec.ts:8:1 View Delius case data
Raw output
[default] › manage-pom-cases-and-delius/view-case-data.spec.ts:8:1 › View Delius case data ───────
TypeError: Cannot read properties of null (reading '0')
at ../steps/delius/staff/community-manager.ts:14
12 | await expect(page.locator('#communitySupervisorPanel')).toHaveClass(/in/)
13 | const provider = await page.locator('#SearchForm\\:provider').textContent()
> 14 | const surname = /[^,]+/.exec(await page.locator('#SearchForm\\:communityPractitioner').textContent())[0]
| ^
15 | await page.getByRole('link', { name: /Reference Data/ }).click()
16 | await page.getByRole('link', { name: 'Local Reference Records' }).click()
17 | await selectOption(page, 'select', provider)
at randomiseCommunityManagerName (/_work/hmpps-probation-integration-services/hmpps-probation-integration-services/steps/delius/staff/community-manager.ts:14:106)
at /_work/hmpps-probation-integration-services/hmpps-probation-integration-services/tests/manage-pom-cases-and-delius/view-case-data.spec.ts:13:28
attachment #1: screenshot (image/png) ──────────────────────────────────────────────────────────
test-results/manage-pom-cases-and-delius-view-case-data-View-Delius-case-data-default/test-failed-1.png
────────────────────────────────────────────────────────────────────────────────────────────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Test timeout of 540000ms exceeded.
attachment #1: screenshot (image/png) ──────────────────────────────────────────────────────────
test-results/manage-pom-cases-and-delius-view-case-data-View-Delius-case-data-default-retry1/test-failed-1.png
────────────────────────────────────────────────────────────────────────────────────────────────
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
TypeError: Cannot read properties of null (reading '0')
at ../steps/delius/staff/community-manager.ts:14
12 | await expect(page.locator('#communitySupervisorPanel')).toHaveClass(/in/)
13 | const provider = await page.locator('#SearchForm\\:provider').textContent()
> 14 | const surname = /[^,]+/.exec(await page.locator('#SearchForm\\:communityPractitioner').textContent())[0]
| ^
15 | await page.getByRole('link', { name: /Reference Data/ }).click()
16 | await page.getByRole('link', { name: 'Local Reference Records' }).click()
17 | await selectOption(page, 'select', provider)
at randomiseCommunityManagerName (/_work/hmpps-probation-integration-services/hmpps-probation-integration-services/steps/delius/staff/community-manager.ts:14:106)
at /_work/hmpps-probation-integration-services/hmpps-probation-integration-services/tests/manage-pom-cases-and-delius/view-case-data.spec.ts:13:28
attachment #1: screenshot (image/png) ──────────────────────────────────────────────────────────
test-results/manage-pom-cases-and-delius-view-case-data-View-Delius-case-data-default-retry2/test-failed-1.png
────────────────────────────────────────────────────────────────────────────────────────────────
Loading