PI-1466 update to accept noms or crn (#2285) #1709
This check has been archived and is scheduled for deletion.
Learn more about checks retention
GitHub Actions / End-to-end test results
failed
Sep 15, 2023 in 0s
23 tests run, 18 passed, 2 skipped, 3 failed.
Annotations
Check failure on line 50 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
Error: Timed out 5000ms waiting for expect(received).toHaveText(expected)
Expected pattern: /Has [A-Z][a-z'’-]+([ -][A-Z][A-z'’-]+)* ever been convicted of the following offences?/
Received string: "Has the person ever been convicted of the following offences?"
Call log:
- expect.toHaveText with timeout 5000ms
- waiting for locator('#main-content h1')
- locator resolved to <h1 class="govuk-heading-l">Has the person ever been convicted of the followi…</h1>
- unexpected value "Has the person ever been convicted of the following offences?"
- locator resolved to <h1 class="govuk-heading-l">Has the person ever been convicted of the followi…</h1>
- unexpected value "Has the person ever been convicted of the following offences?"
- locator resolved to <h1 class="govuk-heading-l">Has the person ever been convicted of the followi…</h1>
- unexpected value "Has the person ever been convicted of the following offences?"
- locator resolved to <h1 class="govuk-heading-l">Has the person ever been convicted of the followi…</h1>
- unexpected value "Has the person ever been convicted of the following offences?"
- locator resolved to <h1 class="govuk-heading-l">Has the person ever been convicted of the followi…</h1>
- unexpected value "Has the person ever been convicted of the following offences?"
- locator resolved to <h1 class="govuk-heading-l">Has the person ever been convicted of the followi…</h1>
- unexpected value "Has the person ever been convicted of the following offences?"
- locator resolved to <h1 class="govuk-heading-l">Has the person ever been convicted of the followi…</h1>
- unexpected value "Has the person ever been convicted of the following offences?"
- locator resolved to <h1 class="govuk-heading-l">Has the person ever been convicted of the followi…</h1>
- unexpected value "Has the person ever been convicted of the following offences?"
- locator resolved to <h1 class="govuk-heading-l">Has the person ever been convicted of the followi…</h1>
- unexpected value "Has the person ever been convicted of the following offences?"
at ../steps/approved-premises/applications/add-details-managing-risks-needs.ts:12
10 |
11 | // "Has Offender ever been convicted of the following offences" Page
> 12 | await expect(page.locator('#main-content h1')).toHaveText(
| ^
13 | /Has [A-Z][a-z'’-]+([ -][A-Z][A-z'’-]+)* ever been convicted of the following offences?/
14 | )
15 | await page.getByLabel('No').check()
at addRisksNeedsDetails (/_work/hmpps-probation-integration-services/hmpps-probation-integration-services/steps/approved-premises/applications/add-details-managing-risks-needs.ts:12:52)
at submitAPApplication (/_work/hmpps-probation-integration-services/hmpps-probation-integration-services/steps/approved-premises/applications/submit-application-full.ts:69:5)
at /_work/hmpps-probation-integration-services/hmpps-probation-integration-services/tests/approved-premises-and-delius/submit-application.spec.ts:50: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 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(received).toHaveText(expected)
Expected pattern: /Has [A-Z][a-z'’-]+([ -][A-Z][A-z'’-]+)* ever been convicted of the following offences?/
Received string: "Has the person ever been convicted of the following offences?"
Call log:
- expect.toHaveText with timeout 5000ms
- waiting for locator('#main-content h1')
- locator resolved to <h1 class="govuk-heading-l">Has the person ever been convicted of the followi…</h1>
- unexpected value "Has the person ever been convicted of the following offences?"
- locator resolved to <h1 class="govuk-heading-l">Has the person ever been convicted of the followi…</h1>
- unexpected value "Has the person ever been convicted of the following offences?"
- locator resolved to <h1 class="govuk-heading-l">Has the person ever been convicted of the followi…</h1>
- unexpected value "Has the person ever been convicted of the following offences?"
- locator resolved to <h1 class="govuk-heading-l">Has the person ever been convicted of the followi…</h1>
- unexpected value "Has the person ever been convicted of the following offences?"
- locator resolved to <h1 class="govuk-heading-l">Has the person ever been convicted of the followi…</h1>
- unexpected value "Has the person ever been convicted of the following offences?"
- locator resolved to <h1 class="govuk-heading-l">Has the person ever been convicted of the followi…</h1>
- unexpected value "Has the person ever been convicted of the following offences?"
- locator resolved to <h1 class="govuk-heading-l">Has the person ever been convicted of the followi…</h1>
- unexpected value "Has the person ever been convicted of the following offences?"
- locator resolved to <h1 class="govuk-heading-l">Has the person ever been convicted of the followi…</h1>
- unexpected value "Has the person ever been convicted of the following offences?"
- locator resolved to <h1 class="govuk-heading-l">Has the person ever been convicted of the followi…</h1>
- unexpected value "Has the person ever been convicted of the following offences?"
at ../steps/approved-premises/applications/add-details-managing-risks-needs.ts:12
10 |
11 | // "Has Offender ever been convicted of the following offences" Page
> 12 | await expect(page.locator('#main-content h1')).toHaveText(
| ^
13 | /Has [A-Z][a-z'’-]+([ -][A-Z][A-z'’-]+)* ever been convicted of the following offences?/
14 | )
15 | await page.getByLabel('No').check()
at addRisksNeedsDetails (/_work/hmpps-probation-integration-services/hmpps-probation-integration-services/steps/approved-premises/applications/add-details-managing-risks-needs.ts:12:52)
at submitAPApplication (/_work/hmpps-probation-integration-services/hmpps-probation-integration-services/steps/approved-premises/applications/submit-application-full.ts:69:5)
at /_work/hmpps-probation-integration-services/hmpps-probation-integration-services/tests/approved-premises-and-delius/submit-application.spec.ts:50: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 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(received).toHaveText(expected)
Expected pattern: /Has [A-Z][a-z'’-]+([ -][A-Z][A-z'’-]+)* ever been convicted of the following offences?/
Received string: "Has the person ever been convicted of the following offences?"
Call log:
- expect.toHaveText with timeout 5000ms
- waiting for locator('#main-content h1')
- locator resolved to <h1 class="govuk-heading-l">Has the person ever been convicted of the followi…</h1>
- unexpected value "Has the person ever been convicted of the following offences?"
- locator resolved to <h1 class="govuk-heading-l">Has the person ever been convicted of the followi…</h1>
- unexpected value "Has the person ever been convicted of the following offences?"
- locator resolved to <h1 class="govuk-heading-l">Has the person ever been convicted of the followi…</h1>
- unexpected value "Has the person ever been convicted of the following offences?"
- locator resolved to <h1 class="govuk-heading-l">Has the person ever been convicted of the followi…</h1>
- unexpected value "Has the person ever been convicted of the following offences?"
- locator resolved to <h1 class="govuk-heading-l">Has the person ever been convicted of the followi…</h1>
- unexpected value "Has the person ever been convicted of the following offences?"
- locator resolved to <h1 class="govuk-heading-l">Has the person ever been convicted of the followi…</h1>
- unexpected value "Has the person ever been convicted of the following offences?"
- locator resolved to <h1 class="govuk-heading-l">Has the person ever been convicted of the followi…</h1>
- unexpected value "Has the person ever been convicted of the following offences?"
- locator resolved to <h1 class="govuk-heading-l">Has the person ever been convicted of the followi…</h1>
- unexpected value "Has the person ever been convicted of the following offences?"
- locator resolved to <h1 class="govuk-heading-l">Has the person ever been convicted of the followi…</h1>
- unexpected value "Has the person ever been convicted of the following offences?"
at ../steps/approved-premises/applications/add-details-managing-risks-needs.ts:12
10 |
11 | // "Has Offender ever been convicted of the following offences" Page
> 12 | await expect(page.locator('#main-content h1')).toHaveText(
| ^
13 | /Has [A-Z][a-z'’-]+([ -][A-Z][A-z'’-]+)* ever been convicted of the following offences?/
14 | )
15 | await page.getByLabel('No').check()
at addRisksNeedsDetails (/_work/hmpps-probation-integration-services/hmpps-probation-integration-services/steps/approved-premises/applications/add-details-managing-risks-needs.ts:12:52)
at submitAPApplication (/_work/hmpps-probation-integration-services/hmpps-probation-integration-services/steps/approved-premises/applications/submit-application-full.ts:69:5)
at /_work/hmpps-probation-integration-services/hmpps-probation-integration-services/tests/approved-premises-and-delius/submit-application.spec.ts:50: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 29 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 ───────────────────────────────────────────────────────────────────────────────────────
Test timeout of 540000ms exceeded.
Pending operations:
- page.selectOption at steps/delius/utils/inputs.ts:29:16
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/bd768901-805a-4af2-9b97-8310b79bf2d7/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/bd768901-805a-4af2-9b97-8310b79bf2d7/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/bd768901-805a-4af2-9b97-8310b79bf2d7/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/bd768901-805a-4af2-9b97-8310b79bf2d7/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/bd768901-805a-4af2-9b97-8310b79bf2d7/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/bd768901-805a-4af2-9b97-8310b79bf2d7/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/bd768901-805a-4af2-9b97-8310b79bf2d7/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/bd768901-805a-4af2-9b97-8310b79bf2d7/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/bd768901-805a-4af2-9b97-8310b79bf2d7/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/bd768901-805a-4af2-9b97-8310b79bf2d7/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/ef255701-a784-4deb-8584-a75fba64a613/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/ef255701-a784-4deb-8584-a75fba64a613/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/ef255701-a784-4deb-8584-a75fba64a613/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/ef255701-a784-4deb-8584-a75fba64a613/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/ef255701-a784-4deb-8584-a75fba64a613/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/ef255701-a784-4deb-8584-a75fba64a613/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/ef255701-a784-4deb-8584-a75fba64a613/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/ef255701-a784-4deb-8584-a75fba64a613/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/ef255701-a784-4deb-8584-a75fba64a613/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/d5dfe9b7-39f4-47f1-b3f3-f8a8308fb454/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/d5dfe9b7-39f4-47f1-b3f3-f8a8308fb454/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/d5dfe9b7-39f4-47f1-b3f3-f8a8308fb454/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/d5dfe9b7-39f4-47f1-b3f3-f8a8308fb454/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/d5dfe9b7-39f4-47f1-b3f3-f8a8308fb454/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/d5dfe9b7-39f4-47f1-b3f3-f8a8308fb454/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/d5dfe9b7-39f4-47f1-b3f3-f8a8308fb454/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/d5dfe9b7-39f4-47f1-b3f3-f8a8308fb454/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/d5dfe9b7-39f4-47f1-b3f3-f8a8308fb454/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/d5dfe9b7-39f4-47f1-b3f3-f8a8308fb454/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
────────────────────────────────────────────────────────────────────────────────────────────────
Loading