PI-1531 Added get PDU heads endpoint (#2373) #1758
25 tests run, 13 passed, 2 skipped, 10 failed.
Annotations
Check failure on line 47 in ts
github-actions / End-to-end test results
ts.Create an approved premises application
submit-application.spec.ts:24:1 Create an approved premises application
Raw output
[default] › approved-premises-and-delius/submit-application.spec.ts:24:1 › Create an approved premises application
Test timeout of 540000ms exceeded.
Pending operations:
- locator.click at steps/approved-premises/login.ts:21:83
Error: locator.click: Page closed
=========================== logs ===========================
waiting for locator('.govuk-link').filter({ hasText: 'Manage an Approved Premises' })
============================================================
at ../steps/approved-premises/login.ts:21
19 | await page.click('#submit')
20 | await expect(page).toHaveTitle(approvedPremisesTitle)
> 21 | await page.locator('.govuk-link', { hasText: 'Manage an Approved Premises' }).click()
| ^
22 | }
23 |
24 | export const navigateToApplications = async (page: Page) => {
at login (/_work/hmpps-probation-integration-services/hmpps-probation-integration-services/steps/approved-premises/login.ts:21:83)
at /_work/hmpps-probation-integration-services/hmpps-probation-integration-services/tests/approved-premises-and-delius/submit-application.spec.ts:47:5
attachment #1: screenshot (image/png) ──────────────────────────────────────────────────────────
test-results/approved-premises-and-delius-submit-application-Create-an-approved-premises-application-default/test-failed-1.png
────────────────────────────────────────────────────────────────────────────────────────────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Test timeout of 540000ms exceeded.
Pending operations:
- locator.click at steps/approved-premises/login.ts:21:83
Error: locator.click: Page closed
=========================== logs ===========================
waiting for locator('.govuk-link').filter({ hasText: 'Manage an Approved Premises' })
============================================================
at ../steps/approved-premises/login.ts:21
19 | await page.click('#submit')
20 | await expect(page).toHaveTitle(approvedPremisesTitle)
> 21 | await page.locator('.govuk-link', { hasText: 'Manage an Approved Premises' }).click()
| ^
22 | }
23 |
24 | export const navigateToApplications = async (page: Page) => {
at login (/_work/hmpps-probation-integration-services/hmpps-probation-integration-services/steps/approved-premises/login.ts:21:83)
at /_work/hmpps-probation-integration-services/hmpps-probation-integration-services/tests/approved-premises-and-delius/submit-application.spec.ts:47:5
attachment #1: screenshot (image/png) ──────────────────────────────────────────────────────────
test-results/approved-premises-and-delius-submit-application-Create-an-approved-premises-application-default-retry1/test-failed-1.png
────────────────────────────────────────────────────────────────────────────────────────────────
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Test timeout of 540000ms exceeded.
Pending operations:
- locator.click at steps/approved-premises/login.ts:21:83
Error: locator.click: Page closed
=========================== logs ===========================
waiting for locator('.govuk-link').filter({ hasText: 'Manage an Approved Premises' })
============================================================
at ../steps/approved-premises/login.ts:21
19 | await page.click('#submit')
20 | await expect(page).toHaveTitle(approvedPremisesTitle)
> 21 | await page.locator('.govuk-link', { hasText: 'Manage an Approved Premises' }).click()
| ^
22 | }
23 |
24 | export const navigateToApplications = async (page: Page) => {
at login (/_work/hmpps-probation-integration-services/hmpps-probation-integration-services/steps/approved-premises/login.ts:21:83)
at /_work/hmpps-probation-integration-services/hmpps-probation-integration-services/tests/approved-premises-and-delius/submit-application.spec.ts:47:5
attachment #1: screenshot (image/png) ──────────────────────────────────────────────────────────
test-results/approved-premises-and-delius-submit-application-Create-an-approved-premises-application-default-retry2/test-failed-1.png
────────────────────────────────────────────────────────────────────────────────────────────────
Check failure on line 38 in ts
github-actions / End-to-end test results
ts.View OASys assessments in Approved Premises service
assessment-timeline.spec.ts:27:1 View OASys assessments in Approved Premises service
Raw output
[default] › approved-premises-and-oasys/assessment-timeline.spec.ts:27:1 › View OASys assessments in Approved Premises service
Error: Failed after 3 attempts
at ../steps/api/utils/api-utils.ts:20
18 | if (++attempts > retryCount) {
19 | console.error(`Failed after ${attempts} attempts`, error)
> 20 | throw new Error(`Failed after ${attempts} attempts`)
| ^
21 | }
22 | console.error(`Retrying error...`, error)
23 | return await retryFn(...args)
at retryFn (/_work/hmpps-probation-integration-services/hmpps-probation-integration-services/steps/api/utils/api-utils.ts:20:23)
at retryFn (/_work/hmpps-probation-integration-services/hmpps-probation-integration-services/steps/api/utils/api-utils.ts:23:20)
at retryFn (/_work/hmpps-probation-integration-services/hmpps-probation-integration-services/steps/api/utils/api-utils.ts:23:20)
at createAndBookPrisoner (/_work/hmpps-probation-integration-services/hmpps-probation-integration-services/steps/api/dps/prison-api.ts:24:23)
at /_work/hmpps-probation-integration-services/hmpps-probation-integration-services/tests/approved-premises-and-oasys/assessment-timeline.spec.ts:38:25
attachment #1: screenshot (image/png) ──────────────────────────────────────────────────────────
test-results/approved-premises-and-oasys-assessment-timeline-View-OASys-assessments-in-Approved-Premises-service-default/test-failed-1.png
────────────────────────────────────────────────────────────────────────────────────────────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Failed after 3 attempts
at ../steps/api/utils/api-utils.ts:20
18 | if (++attempts > retryCount) {
19 | console.error(`Failed after ${attempts} attempts`, error)
> 20 | throw new Error(`Failed after ${attempts} attempts`)
| ^
21 | }
22 | console.error(`Retrying error...`, error)
23 | return await retryFn(...args)
at retryFn (/_work/hmpps-probation-integration-services/hmpps-probation-integration-services/steps/api/utils/api-utils.ts:20:23)
at retryFn (/_work/hmpps-probation-integration-services/hmpps-probation-integration-services/steps/api/utils/api-utils.ts:23:20)
at retryFn (/_work/hmpps-probation-integration-services/hmpps-probation-integration-services/steps/api/utils/api-utils.ts:23:20)
at createAndBookPrisoner (/_work/hmpps-probation-integration-services/hmpps-probation-integration-services/steps/api/dps/prison-api.ts:24:23)
at /_work/hmpps-probation-integration-services/hmpps-probation-integration-services/tests/approved-premises-and-oasys/assessment-timeline.spec.ts:38:25
attachment #1: screenshot (image/png) ──────────────────────────────────────────────────────────
test-results/approved-premises-and-oasys-assessment-timeline-View-OASys-assessments-in-Approved-Premises-service-default-retry1/test-failed-1.png
────────────────────────────────────────────────────────────────────────────────────────────────
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: Failed after 3 attempts
at ../steps/api/utils/api-utils.ts:20
18 | if (++attempts > retryCount) {
19 | console.error(`Failed after ${attempts} attempts`, error)
> 20 | throw new Error(`Failed after ${attempts} attempts`)
| ^
21 | }
22 | console.error(`Retrying error...`, error)
23 | return await retryFn(...args)
at retryFn (/_work/hmpps-probation-integration-services/hmpps-probation-integration-services/steps/api/utils/api-utils.ts:20:23)
at retryFn (/_work/hmpps-probation-integration-services/hmpps-probation-integration-services/steps/api/utils/api-utils.ts:23:20)
at retryFn (/_work/hmpps-probation-integration-services/hmpps-probation-integration-services/steps/api/utils/api-utils.ts:23:20)
at createAndBookPrisoner (/_work/hmpps-probation-integration-services/hmpps-probation-integration-services/steps/api/dps/prison-api.ts:24:23)
at /_work/hmpps-probation-integration-services/hmpps-probation-integration-services/tests/approved-premises-and-oasys/assessment-timeline.spec.ts:38:25
attachment #1: screenshot (image/png) ──────────────────────────────────────────────────────────
test-results/approved-premises-and-oasys-assessment-timeline-View-OASys-assessments-in-Approved-Premises-service-default-retry2/test-failed-1.png
────────────────────────────────────────────────────────────────────────────────────────────────
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 ───────────────────────────────────────────────────────────────────────────────────────
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-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
────────────────────────────────────────────────────────────────────────────────────────────────
Check failure on line 18 in ts
github-actions / End-to-end test results
ts.Create and search for a person
search-for-person.spec.ts:9:1 Create and search for a person
Raw output
[default] › offender-events-and-delius/search-for-person.spec.ts:9:1 › Create and search for a person
Test timeout of 180000ms exceeded.
Pending operations:
- locator.fill at tests/offender-events-and-delius/search-for-person.spec.ts:18:41
attachment #1: screenshot (image/png) ──────────────────────────────────────────────────────────
test-results/offender-events-and-delius-search-for-person-Create-and-search-for-a-person-default/test-failed-1.png
────────────────────────────────────────────────────────────────────────────────────────────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Test timeout of 180000ms exceeded.
Pending operations:
- locator.fill at tests/offender-events-and-delius/search-for-person.spec.ts:18:41
attachment #1: screenshot (image/png) ──────────────────────────────────────────────────────────
test-results/offender-events-and-delius-search-for-person-Create-and-search-for-a-person-default-retry1/test-failed-1.png
────────────────────────────────────────────────────────────────────────────────────────────────
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Test timeout of 180000ms exceeded.
Pending operations:
- locator.fill at tests/offender-events-and-delius/search-for-person.spec.ts:18:41
attachment #1: screenshot (image/png) ──────────────────────────────────────────────────────────
test-results/offender-events-and-delius-search-for-person-Create-and-search-for-a-person-default-retry2/test-failed-1.png
────────────────────────────────────────────────────────────────────────────────────────────────
Check failure on line 22 in ts
github-actions / End-to-end test results
ts.Create and search for a person
search-for-person.spec.ts:13:1 Create and search for a person
Raw output
[default] › person-search-index-from-delius/search-for-person.spec.ts:13:1 › Create and search for a person
Test timeout of 180000ms exceeded.
Pending operations:
- locator.fill at tests/person-search-index-from-delius/search-for-person.spec.ts:22:41
attachment #1: screenshot (image/png) ──────────────────────────────────────────────────────────
test-results/person-search-index-from-delius-search-for-person-Create-and-search-for-a-person-default/test-failed-1.png
────────────────────────────────────────────────────────────────────────────────────────────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Test timeout of 180000ms exceeded.
Pending operations:
- locator.fill at tests/person-search-index-from-delius/search-for-person.spec.ts:22:41
attachment #1: screenshot (image/png) ──────────────────────────────────────────────────────────
test-results/person-search-index-from-delius-search-for-person-Create-and-search-for-a-person-default-retry1/test-failed-1.png
────────────────────────────────────────────────────────────────────────────────────────────────
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Test timeout of 180000ms exceeded.
Pending operations:
- locator.fill at tests/person-search-index-from-delius/search-for-person.spec.ts:22:41
attachment #1: screenshot (image/png) ──────────────────────────────────────────────────────────
test-results/person-search-index-from-delius-search-for-person-Create-and-search-for-a-person-default-retry2/test-failed-1.png
────────────────────────────────────────────────────────────────────────────────────────────────
Check failure on line 26 in ts
github-actions / End-to-end test results
ts.Create a new case note
case-notes.spec.ts:15:1 Create a new case note
Raw output
[default] › prison-case-notes-to-probation/case-notes.spec.ts:15:1 › Create a new case note ──────
Error: Failed after 3 attempts
at ../steps/api/utils/api-utils.ts:20
18 | if (++attempts > retryCount) {
19 | console.error(`Failed after ${attempts} attempts`, error)
> 20 | throw new Error(`Failed after ${attempts} attempts`)
| ^
21 | }
22 | console.error(`Retrying error...`, error)
23 | return await retryFn(...args)
at retryFn (/_work/hmpps-probation-integration-services/hmpps-probation-integration-services/steps/api/utils/api-utils.ts:20:23)
at retryFn (/_work/hmpps-probation-integration-services/hmpps-probation-integration-services/steps/api/utils/api-utils.ts:23:20)
at retryFn (/_work/hmpps-probation-integration-services/hmpps-probation-integration-services/steps/api/utils/api-utils.ts:23:20)
at createAndBookPrisoner (/_work/hmpps-probation-integration-services/hmpps-probation-integration-services/steps/api/dps/prison-api.ts:24:23)
at /_work/hmpps-probation-integration-services/hmpps-probation-integration-services/tests/prison-case-notes-to-probation/case-notes.spec.ts:26:25
attachment #1: screenshot (image/png) ──────────────────────────────────────────────────────────
test-results/prison-case-notes-to-probation-case-notes-Create-a-new-case-note-default/test-failed-1.png
────────────────────────────────────────────────────────────────────────────────────────────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Failed after 3 attempts
at ../steps/api/utils/api-utils.ts:20
18 | if (++attempts > retryCount) {
19 | console.error(`Failed after ${attempts} attempts`, error)
> 20 | throw new Error(`Failed after ${attempts} attempts`)
| ^
21 | }
22 | console.error(`Retrying error...`, error)
23 | return await retryFn(...args)
at retryFn (/_work/hmpps-probation-integration-services/hmpps-probation-integration-services/steps/api/utils/api-utils.ts:20:23)
at retryFn (/_work/hmpps-probation-integration-services/hmpps-probation-integration-services/steps/api/utils/api-utils.ts:23:20)
at retryFn (/_work/hmpps-probation-integration-services/hmpps-probation-integration-services/steps/api/utils/api-utils.ts:23:20)
at createAndBookPrisoner (/_work/hmpps-probation-integration-services/hmpps-probation-integration-services/steps/api/dps/prison-api.ts:24:23)
at /_work/hmpps-probation-integration-services/hmpps-probation-integration-services/tests/prison-case-notes-to-probation/case-notes.spec.ts:26:25
attachment #1: screenshot (image/png) ──────────────────────────────────────────────────────────
test-results/prison-case-notes-to-probation-case-notes-Create-a-new-case-note-default-retry1/test-failed-1.png
────────────────────────────────────────────────────────────────────────────────────────────────
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: Failed after 3 attempts
at ../steps/api/utils/api-utils.ts:20
18 | if (++attempts > retryCount) {
19 | console.error(`Failed after ${attempts} attempts`, error)
> 20 | throw new Error(`Failed after ${attempts} attempts`)
| ^
21 | }
22 | console.error(`Retrying error...`, error)
23 | return await retryFn(...args)
at retryFn (/_work/hmpps-probation-integration-services/hmpps-probation-integration-services/steps/api/utils/api-utils.ts:20:23)
at retryFn (/_work/hmpps-probation-integration-services/hmpps-probation-integration-services/steps/api/utils/api-utils.ts:23:20)
at retryFn (/_work/hmpps-probation-integration-services/hmpps-probation-integration-services/steps/api/utils/api-utils.ts:23:20)
at createAndBookPrisoner (/_work/hmpps-probation-integration-services/hmpps-probation-integration-services/steps/api/dps/prison-api.ts:24:23)
at /_work/hmpps-probation-integration-services/hmpps-probation-integration-services/tests/prison-case-notes-to-probation/case-notes.spec.ts:26:25
attachment #1: screenshot (image/png) ──────────────────────────────────────────────────────────
test-results/prison-case-notes-to-probation-case-notes-Create-a-new-case-note-default-retry2/test-failed-1.png
────────────────────────────────────────────────────────────────────────────────────────────────
Check failure on line 19 in ts
github-actions / End-to-end test results
ts.Create a referral and nsi is created in delius
create-referral.spec.ts:15:1 Create a referral and nsi is created in delius
Raw output
[default] › refer-and-monitor-and-delius/create-referral.spec.ts:15:1 › Create a referral and nsi is created in delius
Error: Timed out 5000ms waiting for expect(received).toHaveURL(expected)
Expected pattern: /\/referrals\/.*\/form/
Received string: "https://hmpps-interventions-ui-dev.apps.live-1.cloud-platform.service.justice.gov.uk/referrals/68ead233-ffdf-4a8e-998b-f3aeadf94f3f/prison-release-form"
Call log:
- expect.toHaveURL with timeout 5000ms
- waiting for locator(':root')
- locator resolved to <html lang="en" class="govuk-template ">…</html>
- unexpected value "https://hmpps-interventions-ui-dev.apps.live-1.cloud-platform.service.justice.gov.uk/referrals/68ead233-ffdf-4a8e-998b-f3aeadf94f3f/prison-release-form"
- locator resolved to <html lang="en" class="govuk-template ">…</html>
- unexpected value "https://hmpps-interventions-ui-dev.apps.live-1.cloud-platform.service.justice.gov.uk/referrals/68ead233-ffdf-4a8e-998b-f3aeadf94f3f/prison-release-form"
- locator resolved to <html lang="en" class="govuk-template ">…</html>
- unexpected value "https://hmpps-interventions-ui-dev.apps.live-1.cloud-platform.service.justice.gov.uk/referrals/68ead233-ffdf-4a8e-998b-f3aeadf94f3f/prison-release-form"
- locator resolved to <html lang="en" class="govuk-template ">…</html>
- unexpected value "https://hmpps-interventions-ui-dev.apps.live-1.cloud-platform.service.justice.gov.uk/referrals/68ead233-ffdf-4a8e-998b-f3aeadf94f3f/prison-release-form"
- locator resolved to <html lang="en" class="govuk-template ">…</html>
- unexpected value "https://hmpps-interventions-ui-dev.apps.live-1.cloud-platform.service.justice.gov.uk/referrals/68ead233-ffdf-4a8e-998b-f3aeadf94f3f/prison-release-form"
- locator resolved to <html lang="en" class="govuk-template ">…</html>
- unexpected value "https://hmpps-interventions-ui-dev.apps.live-1.cloud-platform.service.justice.gov.uk/referrals/68ead233-ffdf-4a8e-998b-f3aeadf94f3f/prison-release-form"
- locator resolved to <html lang="en" class="govuk-template ">…</html>
- unexpected value "https://hmpps-interventions-ui-dev.apps.live-1.cloud-platform.service.justice.gov.uk/referrals/68ead233-ffdf-4a8e-998b-f3aeadf94f3f/prison-release-form"
- locator resolved to <html lang="en" class="govuk-template ">…</html>
- unexpected value "https://hmpps-interventions-ui-dev.apps.live-1.cloud-platform.service.justice.gov.uk/referrals/68ead233-ffdf-4a8e-998b-f3aeadf94f3f/prison-release-form"
at ../steps/referandmonitor/referral.ts:35
33 | await page.locator('input[name="service-user-crn"]').fill(crn)
34 | await page.locator('text=Continue').click()
> 35 | await expect(page).toHaveURL(/\/referrals\/.*\/form/)
| ^
36 |
37 | // Navigate to personal details page
38 | await page.locator('text=Confirm their personal details').click()
at makeReferral (/_work/hmpps-probation-integration-services/hmpps-probation-integration-services/steps/referandmonitor/referral.ts:35:24)
at createAndAssignReferral (/_work/hmpps-probation-integration-services/hmpps-probation-integration-services/tests/refer-and-monitor-and-delius/common.ts:18:33)
at /_work/hmpps-probation-integration-services/hmpps-probation-integration-services/tests/refer-and-monitor-and-delius/create-referral.spec.ts:19:5
attachment #1: screenshot (image/png) ──────────────────────────────────────────────────────────
test-results/refer-and-monitor-and-delius-create-referral-Create-a-referral-and-nsi-is-created-in-delius-default/test-failed-1.png
────────────────────────────────────────────────────────────────────────────────────────────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(received).toHaveURL(expected)
Expected pattern: /\/referrals\/.*\/form/
Received string: "https://hmpps-interventions-ui-dev.apps.live-1.cloud-platform.service.justice.gov.uk/referrals/07c138aa-f9db-4e4d-8380-1cd68ea7cc7b/prison-release-form"
Call log:
- expect.toHaveURL with timeout 5000ms
- waiting for locator(':root')
- locator resolved to <html lang="en" class="govuk-template ">…</html>
- unexpected value "https://hmpps-interventions-ui-dev.apps.live-1.cloud-platform.service.justice.gov.uk/referrals/07c138aa-f9db-4e4d-8380-1cd68ea7cc7b/prison-release-form"
- locator resolved to <html lang="en" class="govuk-template ">…</html>
- unexpected value "https://hmpps-interventions-ui-dev.apps.live-1.cloud-platform.service.justice.gov.uk/referrals/07c138aa-f9db-4e4d-8380-1cd68ea7cc7b/prison-release-form"
- locator resolved to <html lang="en" class="govuk-template ">…</html>
- unexpected value "https://hmpps-interventions-ui-dev.apps.live-1.cloud-platform.service.justice.gov.uk/referrals/07c138aa-f9db-4e4d-8380-1cd68ea7cc7b/prison-release-form"
- locator resolved to <html lang="en" class="govuk-template ">…</html>
- unexpected value "https://hmpps-interventions-ui-dev.apps.live-1.cloud-platform.service.justice.gov.uk/referrals/07c138aa-f9db-4e4d-8380-1cd68ea7cc7b/prison-release-form"
- locator resolved to <html lang="en" class="govuk-template ">…</html>
- unexpected value "https://hmpps-interventions-ui-dev.apps.live-1.cloud-platform.service.justice.gov.uk/referrals/07c138aa-f9db-4e4d-8380-1cd68ea7cc7b/prison-release-form"
- locator resolved to <html lang="en" class="govuk-template ">…</html>
- unexpected value "https://hmpps-interventions-ui-dev.apps.live-1.cloud-platform.service.justice.gov.uk/referrals/07c138aa-f9db-4e4d-8380-1cd68ea7cc7b/prison-release-form"
- locator resolved to <html lang="en" class="govuk-template ">…</html>
- unexpected value "https://hmpps-interventions-ui-dev.apps.live-1.cloud-platform.service.justice.gov.uk/referrals/07c138aa-f9db-4e4d-8380-1cd68ea7cc7b/prison-release-form"
- locator resolved to <html lang="en" class="govuk-template ">…</html>
- unexpected value "https://hmpps-interventions-ui-dev.apps.live-1.cloud-platform.service.justice.gov.uk/referrals/07c138aa-f9db-4e4d-8380-1cd68ea7cc7b/prison-release-form"
- locator resolved to <html lang="en" class="govuk-template ">…</html>
- unexpected value "https://hmpps-interventions-ui-dev.apps.live-1.cloud-platform.service.justice.gov.uk/referrals/07c138aa-f9db-4e4d-8380-1cd68ea7cc7b/prison-release-form"
at ../steps/referandmonitor/referral.ts:35
33 | await page.locator('input[name="service-user-crn"]').fill(crn)
34 | await page.locator('text=Continue').click()
> 35 | await expect(page).toHaveURL(/\/referrals\/.*\/form/)
| ^
36 |
37 | // Navigate to personal details page
38 | await page.locator('text=Confirm their personal details').click()
at makeReferral (/_work/hmpps-probation-integration-services/hmpps-probation-integration-services/steps/referandmonitor/referral.ts:35:24)
at createAndAssignReferral (/_work/hmpps-probation-integration-services/hmpps-probation-integration-services/tests/refer-and-monitor-and-delius/common.ts:18:33)
at /_work/hmpps-probation-integration-services/hmpps-probation-integration-services/tests/refer-and-monitor-and-delius/create-referral.spec.ts:19:5
attachment #1: screenshot (image/png) ──────────────────────────────────────────────────────────
test-results/refer-and-monitor-and-delius-create-referral-Create-a-referral-and-nsi-is-created-in-delius-default-retry1/test-failed-1.png
────────────────────────────────────────────────────────────────────────────────────────────────
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(received).toHaveURL(expected)
Expected pattern: /\/referrals\/.*\/form/
Received string: "https://hmpps-interventions-ui-dev.apps.live-1.cloud-platform.service.justice.gov.uk/referrals/2a0ce1af-ea8e-4971-b9bd-599db66032f3/prison-release-form"
Call log:
- expect.toHaveURL with timeout 5000ms
- waiting for locator(':root')
- locator resolved to <html lang="en" class="govuk-template ">…</html>
- unexpected value "https://hmpps-interventions-ui-dev.apps.live-1.cloud-platform.service.justice.gov.uk/referrals/2a0ce1af-ea8e-4971-b9bd-599db66032f3/prison-release-form"
- locator resolved to <html lang="en" class="govuk-template ">…</html>
- unexpected value "https://hmpps-interventions-ui-dev.apps.live-1.cloud-platform.service.justice.gov.uk/referrals/2a0ce1af-ea8e-4971-b9bd-599db66032f3/prison-release-form"
- locator resolved to <html lang="en" class="govuk-template ">…</html>
- unexpected value "https://hmpps-interventions-ui-dev.apps.live-1.cloud-platform.service.justice.gov.uk/referrals/2a0ce1af-ea8e-4971-b9bd-599db66032f3/prison-release-form"
- locator resolved to <html lang="en" class="govuk-template ">…</html>
- unexpected value "https://hmpps-interventions-ui-dev.apps.live-1.cloud-platform.service.justice.gov.uk/referrals/2a0ce1af-ea8e-4971-b9bd-599db66032f3/prison-release-form"
- locator resolved to <html lang="en" class="govuk-template ">…</html>
- unexpected value "https://hmpps-interventions-ui-dev.apps.live-1.cloud-platform.service.justice.gov.uk/referrals/2a0ce1af-ea8e-4971-b9bd-599db66032f3/prison-release-form"
- locator resolved to <html lang="en" class="govuk-template ">…</html>
- unexpected value "https://hmpps-interventions-ui-dev.apps.live-1.cloud-platform.service.justice.gov.uk/referrals/2a0ce1af-ea8e-4971-b9bd-599db66032f3/prison-release-form"
- locator resolved to <html lang="en" class="govuk-template ">…</html>
- unexpected value "https://hmpps-interventions-ui-dev.apps.live-1.cloud-platform.service.justice.gov.uk/referrals/2a0ce1af-ea8e-4971-b9bd-599db66032f3/prison-release-form"
- locator resolved to <html lang="en" class="govuk-template ">…</html>
- unexpected value "https://hmpps-interventions-ui-dev.apps.live-1.cloud-platform.service.justice.gov.uk/referrals/2a0ce1af-ea8e-4971-b9bd-599db66032f3/prison-release-form"
- locator resolved to <html lang="en" class="govuk-template ">…</html>
- unexpected value "https://hmpps-interventions-ui-dev.apps.live-1.cloud-platform.service.justice.gov.uk/referrals/2a0ce1af-ea8e-4971-b9bd-599db66032f3/prison-release-form"
at ../steps/referandmonitor/referral.ts:35
33 | await page.locator('input[name="service-user-crn"]').fill(crn)
34 | await page.locator('text=Continue').click()
> 35 | await expect(page).toHaveURL(/\/referrals\/.*\/form/)
| ^
36 |
37 | // Navigate to personal details page
38 | await page.locator('text=Confirm their personal details').click()
at makeReferral (/_work/hmpps-probation-integration-services/hmpps-probation-integration-services/steps/referandmonitor/referral.ts:35:24)
at createAndAssignReferral (/_work/hmpps-probation-integration-services/hmpps-probation-integration-services/tests/refer-and-monitor-and-delius/common.ts:18:33)
at /_work/hmpps-probation-integration-services/hmpps-probation-integration-services/tests/refer-and-monitor-and-delius/create-referral.spec.ts:19:5
attachment #1: screenshot (image/png) ──────────────────────────────────────────────────────────
test-results/refer-and-monitor-and-delius-create-referral-Create-a-referral-and-nsi-is-created-in-delius-default-retry2/test-failed-1.png
────────────────────────────────────────────────────────────────────────────────────────────────
Check failure on line 51 in ts
github-actions / End-to-end test results
ts.Allocate new person
allocate-new-person.spec.ts:34:1 Allocate new person
Raw output
[default] › workforce-allocations-to-delius/allocate-new-person.spec.ts:34:1 › Allocate new person
Test timeout of 540000ms exceeded.
Pending operations:
- locator.check at steps/workforce/allocations.ts:29:10
Error: locator.check: Page closed
=========================== logs ===========================
waiting for locator('tr').filter({ hasText: 'Coco Pint' }).getByRole('radio')
============================================================
at ../steps/workforce/allocations.ts:29
27 | .locator('tr', { hasText: `${allocation.staff.firstName} ${allocation.staff.lastName}` })
28 | .getByRole('radio')
> 29 | .check()
| ^
30 | await page.locator('button', { hasText: 'Continue' }).click()
31 |
32 | // Confirm allocation
at allocateCase (/_work/hmpps-probation-integration-services/hmpps-probation-integration-services/steps/workforce/allocations.ts:29:10)
at /_work/hmpps-probation-integration-services/hmpps-probation-integration-services/tests/workforce-allocations-to-delius/allocate-new-person.spec.ts:51:5
attachment #1: screenshot (image/png) ──────────────────────────────────────────────────────────
test-results/workforce-allocations-to-delius-allocate-new-person-Allocate-new-person-default/test-failed-1.png
────────────────────────────────────────────────────────────────────────────────────────────────
attachment #2: screenshot (image/png) ──────────────────────────────────────────────────────────
test-results/workforce-allocations-to-delius-allocate-new-person-Allocate-new-person-default/test-failed-2.png
────────────────────────────────────────────────────────────────────────────────────────────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Test timeout of 540000ms exceeded.
Pending operations:
- locator.check at steps/workforce/allocations.ts:29:10
Error: locator.check: Target closed
=========================== logs ===========================
waiting for locator('tr').filter({ hasText: 'Coco Pint' }).getByRole('radio')
============================================================
at ../steps/workforce/allocations.ts:29
27 | .locator('tr', { hasText: `${allocation.staff.firstName} ${allocation.staff.lastName}` })
28 | .getByRole('radio')
> 29 | .check()
| ^
30 | await page.locator('button', { hasText: 'Continue' }).click()
31 |
32 | // Confirm allocation
at allocateCase (/_work/hmpps-probation-integration-services/hmpps-probation-integration-services/steps/workforce/allocations.ts:29:10)
at /_work/hmpps-probation-integration-services/hmpps-probation-integration-services/tests/workforce-allocations-to-delius/allocate-new-person.spec.ts:51:5
attachment #1: screenshot (image/png) ──────────────────────────────────────────────────────────
test-results/workforce-allocations-to-delius-allocate-new-person-Allocate-new-person-default-retry1/test-failed-1.png
────────────────────────────────────────────────────────────────────────────────────────────────
attachment #2: screenshot (image/png) ──────────────────────────────────────────────────────────
test-results/workforce-allocations-to-delius-allocate-new-person-Allocate-new-person-default-retry1/test-failed-2.png
────────────────────────────────────────────────────────────────────────────────────────────────
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Test timeout of 540000ms exceeded.
Pending operations:
- locator.check at steps/workforce/allocations.ts:29:10
Error: locator.check: Page closed
=========================== logs ===========================
waiting for locator('tr').filter({ hasText: 'Coco Pint' }).getByRole('radio')
============================================================
at ../steps/workforce/allocations.ts:29
27 | .locator('tr', { hasText: `${allocation.staff.firstName} ${allocation.staff.lastName}` })
28 | .getByRole('radio')
> 29 | .check()
| ^
30 | await page.locator('button', { hasText: 'Continue' }).click()
31 |
32 | // Confirm allocation
at allocateCase (/_work/hmpps-probation-integration-services/hmpps-probation-integration-services/steps/workforce/allocations.ts:29:10)
at /_work/hmpps-probation-integration-services/hmpps-probation-integration-services/tests/workforce-allocations-to-delius/allocate-new-person.spec.ts:51:5
attachment #1: screenshot (image/png) ──────────────────────────────────────────────────────────
test-results/workforce-allocations-to-delius-allocate-new-person-Allocate-new-person-default-retry2/test-failed-1.png
────────────────────────────────────────────────────────────────────────────────────────────────
attachment #2: screenshot (image/png) ──────────────────────────────────────────────────────────
test-results/workforce-allocations-to-delius-allocate-new-person-Allocate-new-person-default-retry2/test-failed-2.png
────────────────────────────────────────────────────────────────────────────────────────────────
Check failure on line 122 in ts
github-actions / End-to-end test results
ts.Allocate currently-managed person
allocate-new-person.spec.ts:65:1 Allocate currently-managed person
Raw output
[default] › workforce-allocations-to-delius/allocate-new-person.spec.ts:65:1 › Allocate currently-managed person
Test timeout of 540000ms exceeded.
Pending operations:
- locator.check at steps/workforce/allocations.ts:29:10
Error: locator.check: Page closed
=========================== logs ===========================
waiting for locator('tr').filter({ hasText: 'Coco Pint' }).getByRole('radio')
============================================================
at ../steps/workforce/allocations.ts:29
27 | .locator('tr', { hasText: `${allocation.staff.firstName} ${allocation.staff.lastName}` })
28 | .getByRole('radio')
> 29 | .check()
| ^
30 | await page.locator('button', { hasText: 'Continue' }).click()
31 |
32 | // Confirm allocation
at allocateCase (/_work/hmpps-probation-integration-services/hmpps-probation-integration-services/steps/workforce/allocations.ts:29:10)
at /_work/hmpps-probation-integration-services/hmpps-probation-integration-services/tests/workforce-allocations-to-delius/allocate-new-person.spec.ts:79:5
attachment #1: screenshot (image/png) ──────────────────────────────────────────────────────────
test-results/workforce-allocations-to-delius-allocate-new-person-Allocate-currently-managed-person-default/test-failed-1.png
────────────────────────────────────────────────────────────────────────────────────────────────
attachment #2: screenshot (image/png) ──────────────────────────────────────────────────────────
test-results/workforce-allocations-to-delius-allocate-new-person-Allocate-currently-managed-person-default/test-failed-2.png
────────────────────────────────────────────────────────────────────────────────────────────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(received).toHaveTitle(expected)
Expected pattern: /Event Details/
Received string: "Create New Event"
Call log:
- expect.toHaveTitle with timeout 5000ms
- waiting for locator(':root')
- locator resolved to <html lang="en" xmlns="http://www.w3.org/1999/xhtml">…</html>
- unexpected value "Create New Event"
- locator resolved to <html lang="en" xmlns="http://www.w3.org/1999/xhtml">…</html>
- unexpected value "Create New Event"
- locator resolved to <html lang="en" xmlns="http://www.w3.org/1999/xhtml">…</html>
- unexpected value "Create New Event"
- locator resolved to <html lang="en" xmlns="http://www.w3.org/1999/xhtml">…</html>
- unexpected value "Create New Event"
- locator resolved to <html lang="en" xmlns="http://www.w3.org/1999/xhtml">…</html>
- unexpected value "Create New Event"
- locator resolved to <html lang="en" xmlns="http://www.w3.org/1999/xhtml">…</html>
- unexpected value "Create New Event"
- locator resolved to <html lang="en" xmlns="http://www.w3.org/1999/xhtml">…</html>
- unexpected value "Create New Event"
- locator resolved to <html lang="en" xmlns="http://www.w3.org/1999/xhtml">…</html>
- unexpected value "Create New Event"
- locator resolved to <html lang="en" xmlns="http://www.w3.org/1999/xhtml">…</html>
- unexpected value "Create New Event"
at ../steps/delius/event/create-event.ts:81
79 | await expect(page).toHaveTitle(/Add Court Report/)
80 | } else {
> 81 | await expect(page).toHaveTitle(/Event Details/)
| ^
82 | }
83 | return createdEvent
84 | }
at createEvent (/_work/hmpps-probation-integration-services/hmpps-probation-integration-services/steps/delius/event/create-event.ts:81:28)
at /_work/hmpps-probation-integration-services/hmpps-probation-integration-services/tests/workforce-allocations-to-delius/allocate-new-person.spec.ts:70:5
"afterAll" hook timeout of 540000ms exceeded.
120 |
121 | //If any test fails, allocate in Delius to prevent allocations lists continually build up
> 122 | test.afterAll(async () => {
| ^
123 | test.slow()
124 | if (crns.length > 0) {
125 | const browser = await chromium.launch()
at /_work/hmpps-probation-integration-services/hmpps-probation-integration-services/tests/workforce-allocations-to-delius/allocate-new-person.spec.ts:122:6
attachment #1: screenshot (image/png) ──────────────────────────────────────────────────────────
test-results/workforce-allocations-to-delius-allocate-new-person-Allocate-currently-managed-person-default-retry1/test-failed-1.png
────────────────────────────────────────────────────────────────────────────────────────────────
attachment #2: screenshot (image/png) ──────────────────────────────────────────────────────────
test-results/workforce-allocations-to-delius-allocate-new-person-Allocate-currently-managed-person-default-retry1/test-failed-2.png
────────────────────────────────────────────────────────────────────────────────────────────────
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(received).toHaveTitle(expected)
Expected pattern: /Event Details/
Received string: "Create New Event"
Call log:
- expect.toHaveTitle with timeout 5000ms
- waiting for locator(':root')
- locator resolved to <html lang="en" xmlns="http://www.w3.org/1999/xhtml">…</html>
- unexpected value "Create New Event"
- locator resolved to <html lang="en" xmlns="http://www.w3.org/1999/xhtml">…</html>
- unexpected value "Create New Event"
- locator resolved to <html lang="en" xmlns="http://www.w3.org/1999/xhtml">…</html>
- unexpected value "Create New Event"
- locator resolved to <html lang="en" xmlns="http://www.w3.org/1999/xhtml">…</html>
- unexpected value "Create New Event"
- locator resolved to <html lang="en" xmlns="http://www.w3.org/1999/xhtml">…</html>
- unexpected value "Create New Event"
- locator resolved to <html lang="en" xmlns="http://www.w3.org/1999/xhtml">…</html>
- unexpected value "Create New Event"
- locator resolved to <html lang="en" xmlns="http://www.w3.org/1999/xhtml">…</html>
- unexpected value "Create New Event"
- locator resolved to <html lang="en" xmlns="http://www.w3.org/1999/xhtml">…</html>
- unexpected value "Create New Event"
- locator resolved to <html lang="en" xmlns="http://www.w3.org/1999/xhtml">…</html>
- unexpected value "Create New Event"
at ../steps/delius/event/create-event.ts:81
79 | await expect(page).toHaveTitle(/Add Court Report/)
80 | } else {
> 81 | await expect(page).toHaveTitle(/Event Details/)
| ^
82 | }
83 | return createdEvent
84 | }
at createEvent (/_work/hmpps-probation-integration-services/hmpps-probation-integration-services/steps/delius/event/create-event.ts:81:28)
at /_work/hmpps-probation-integration-services/hmpps-probation-integration-services/tests/workforce-allocations-to-delius/allocate-new-person.spec.ts:70:5
"afterAll" hook timeout of 540000ms exceeded.
120 |
121 | //If any test fails, allocate in Delius to prevent allocations lists continually build up
> 122 | test.afterAll(async () => {
| ^
123 | test.slow()
124 | if (crns.length > 0) {
125 | const browser = await chromium.launch()
at /_work/hmpps-probation-integration-services/hmpps-probation-integration-services/tests/workforce-allocations-to-delius/allocate-new-person.spec.ts:122:6
attachment #1: screenshot (image/png) ──────────────────────────────────────────────────────────
test-results/workforce-allocations-to-delius-allocate-new-person-Allocate-currently-managed-person-default-retry2/test-failed-1.png
────────────────────────────────────────────────────────────────────────────────────────────────
attachment #2: screenshot (image/png) ──────────────────────────────────────────────────────────
test-results/workforce-allocations-to-delius-allocate-new-person-Allocate-currently-managed-person-default-retry2/test-failed-2.png
────────────────────────────────────────────────────────────────────────────────────────────────
Check failure on line 108 in ts
github-actions / End-to-end test results
ts.Allocate previously-managed person
allocate-new-person.spec.ts:92:1 Allocate previously-managed person
Raw output
[default] › workforce-allocations-to-delius/allocate-new-person.spec.ts:92:1 › Allocate previously-managed person
Test timeout of 540000ms exceeded.
Pending operations:
- locator.check at steps/workforce/allocations.ts:29:10
Error: locator.check: Page closed
=========================== logs ===========================
waiting for locator('tr').filter({ hasText: 'Coco Pint' }).getByRole('radio')
============================================================
at ../steps/workforce/allocations.ts:29
27 | .locator('tr', { hasText: `${allocation.staff.firstName} ${allocation.staff.lastName}` })
28 | .getByRole('radio')
> 29 | .check()
| ^
30 | await page.locator('button', { hasText: 'Continue' }).click()
31 |
32 | // Confirm allocation
at allocateCase (/_work/hmpps-probation-integration-services/hmpps-probation-integration-services/steps/workforce/allocations.ts:29:10)
at /_work/hmpps-probation-integration-services/hmpps-probation-integration-services/tests/workforce-allocations-to-delius/allocate-new-person.spec.ts:108:5
attachment #1: screenshot (image/png) ──────────────────────────────────────────────────────────
test-results/workforce-allocations-to-delius-allocate-new-person-Allocate-previously-managed-person-default/test-failed-1.png
────────────────────────────────────────────────────────────────────────────────────────────────
attachment #2: screenshot (image/png) ──────────────────────────────────────────────────────────
test-results/workforce-allocations-to-delius-allocate-new-person-Allocate-previously-managed-person-default/test-failed-2.png
────────────────────────────────────────────────────────────────────────────────────────────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Test timeout of 540000ms exceeded.
Pending operations:
- locator.check at steps/workforce/allocations.ts:29:10
Error: locator.check: Page closed
=========================== logs ===========================
waiting for locator('tr').filter({ hasText: 'Coco Pint' }).getByRole('radio')
============================================================
at ../steps/workforce/allocations.ts:29
27 | .locator('tr', { hasText: `${allocation.staff.firstName} ${allocation.staff.lastName}` })
28 | .getByRole('radio')
> 29 | .check()
| ^
30 | await page.locator('button', { hasText: 'Continue' }).click()
31 |
32 | // Confirm allocation
at allocateCase (/_work/hmpps-probation-integration-services/hmpps-probation-integration-services/steps/workforce/allocations.ts:29:10)
at /_work/hmpps-probation-integration-services/hmpps-probation-integration-services/tests/workforce-allocations-to-delius/allocate-new-person.spec.ts:108:5
attachment #1: screenshot (image/png) ──────────────────────────────────────────────────────────
test-results/workforce-allocations-to-delius-allocate-new-person-Allocate-previously-managed-person-default-retry1/test-failed-1.png
────────────────────────────────────────────────────────────────────────────────────────────────
attachment #2: screenshot (image/png) ──────────────────────────────────────────────────────────
test-results/workforce-allocations-to-delius-allocate-new-person-Allocate-previously-managed-person-default-retry1/test-failed-2.png
────────────────────────────────────────────────────────────────────────────────────────────────
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Test timeout of 540000ms exceeded.
Pending operations:
- locator.check at steps/workforce/allocations.ts:29:10
Error: locator.check: Target closed
=========================== logs ===========================
waiting for locator('tr').filter({ hasText: 'Coco Pint' }).getByRole('radio')
============================================================
at ../steps/workforce/allocations.ts:29
27 | .locator('tr', { hasText: `${allocation.staff.firstName} ${allocation.staff.lastName}` })
28 | .getByRole('radio')
> 29 | .check()
| ^
30 | await page.locator('button', { hasText: 'Continue' }).click()
31 |
32 | // Confirm allocation
at allocateCase (/_work/hmpps-probation-integration-services/hmpps-probation-integration-services/steps/workforce/allocations.ts:29:10)
at /_work/hmpps-probation-integration-services/hmpps-probation-integration-services/tests/workforce-allocations-to-delius/allocate-new-person.spec.ts:108:5
attachment #1: screenshot (image/png) ──────────────────────────────────────────────────────────
test-results/workforce-allocations-to-delius-allocate-new-person-Allocate-previously-managed-person-default-retry2/test-failed-1.png
────────────────────────────────────────────────────────────────────────────────────────────────
attachment #2: screenshot (image/png) ──────────────────────────────────────────────────────────
test-results/workforce-allocations-to-delius-allocate-new-person-Allocate-previously-managed-person-default-retry2/test-failed-2.png
────────────────────────────────────────────────────────────────────────────────────────────────