Skip to content

PI-1493 Add new role for user details endpoint (#2371) #1754

PI-1493 Add new role for user details endpoint (#2371)

PI-1493 Add new role for user details endpoint (#2371) #1754

GitHub Actions / End-to-end test results failed Oct 5, 2023 in 0s

1 tests run, 0 passed, 0 skipped, 1 failed.

Annotations

Check failure on line 12 in ts

See this annotation in the file changed.

@github-actions github-actions / End-to-end test results

ts.Sign in and check user details

search-for-person.spec.ts:6:1 Sign in and check user details
Raw output
[default] › hmpps-auth-and-delius/search-for-person.spec.ts:6:1 › Sign in and check user details ─

    Error: Timed out 5000ms waiting for expect(received).toHaveTitle(expected)

    Expected pattern: /HMPPS Digital Services - Home/
    Received string:  "Error: HMPPS Digital Services - Sign in"
    Call log:
      - expect.toHaveTitle with timeout 5000ms
      - waiting for locator(':root')
      -   locator resolved to <html lang="en" class="govuk-template">…</html>
      -   unexpected value "Error: HMPPS Digital Services - Sign in"
      -   locator resolved to <html lang="en" class="govuk-template">…</html>
      -   unexpected value "Error: HMPPS Digital Services - Sign in"
      -   locator resolved to <html lang="en" class="govuk-template">…</html>
      -   unexpected value "Error: HMPPS Digital Services - Sign in"
      -   locator resolved to <html lang="en" class="govuk-template">…</html>
      -   unexpected value "Error: HMPPS Digital Services - Sign in"
      -   locator resolved to <html lang="en" class="govuk-template">…</html>
      -   unexpected value "Error: HMPPS Digital Services - Sign in"
      -   locator resolved to <html lang="en" class="govuk-template">…</html>
      -   unexpected value "Error: HMPPS Digital Services - Sign in"
      -   locator resolved to <html lang="en" class="govuk-template">…</html>
      -   unexpected value "Error: HMPPS Digital Services - Sign in"
      -   locator resolved to <html lang="en" class="govuk-template">…</html>
      -   unexpected value "Error: HMPPS Digital Services - Sign in"
      -   locator resolved to <html lang="en" class="govuk-template">…</html>
      -   unexpected value "Error: HMPPS Digital Services - Sign in"


      10 |     await page.fill('#password', process.env.DELIUS_PASSWORD!)
      11 |     await page.click('#submit')
    > 12 |     await expect(page).toHaveTitle(/HMPPS Digital Services - Home/)
         |                        ^
      13 |     await page.locator('[data-test="manage-account-link"]').click()
      14 |     await expect(page.locator('[data-qa="email"]')).toContainText('automatedtestuser')
      15 | })

        at /_work/hmpps-probation-integration-services/hmpps-probation-integration-services/tests/hmpps-auth-and-delius/search-for-person.spec.ts:12:24

    attachment #1: screenshot (image/png) ──────────────────────────────────────────────────────────
    test-results/hmpps-auth-and-delius-search-for-person-Sign-in-and-check-user-details-default/test-failed-1.png
    ────────────────────────────────────────────────────────────────────────────────────────────────

    Retry #1 ───────────────────────────────────────────────────────────────────────────────────────

    Error: Timed out 5000ms waiting for expect(received).toHaveTitle(expected)

    Expected pattern: /HMPPS Digital Services - Home/
    Received string:  "Error: HMPPS Digital Services - Sign in"
    Call log:
      - expect.toHaveTitle with timeout 5000ms
      - waiting for locator(':root')
      -   locator resolved to <html lang="en" class="govuk-template">…</html>
      -   unexpected value "Error: HMPPS Digital Services - Sign in"
      -   locator resolved to <html lang="en" class="govuk-template">…</html>
      -   unexpected value "Error: HMPPS Digital Services - Sign in"
      -   locator resolved to <html lang="en" class="govuk-template">…</html>
      -   unexpected value "Error: HMPPS Digital Services - Sign in"
      -   locator resolved to <html lang="en" class="govuk-template">…</html>
      -   unexpected value "Error: HMPPS Digital Services - Sign in"
      -   locator resolved to <html lang="en" class="govuk-template">…</html>
      -   unexpected value "Error: HMPPS Digital Services - Sign in"
      -   locator resolved to <html lang="en" class="govuk-template">…</html>
      -   unexpected value "Error: HMPPS Digital Services - Sign in"
      -   locator resolved to <html lang="en" class="govuk-template">…</html>
      -   unexpected value "Error: HMPPS Digital Services - Sign in"
      -   locator resolved to <html lang="en" class="govuk-template">…</html>
      -   unexpected value "Error: HMPPS Digital Services - Sign in"
      -   locator resolved to <html lang="en" class="govuk-template">…</html>
      -   unexpected value "Error: HMPPS Digital Services - Sign in"


      10 |     await page.fill('#password', process.env.DELIUS_PASSWORD!)
      11 |     await page.click('#submit')
    > 12 |     await expect(page).toHaveTitle(/HMPPS Digital Services - Home/)
         |                        ^
      13 |     await page.locator('[data-test="manage-account-link"]').click()
      14 |     await expect(page.locator('[data-qa="email"]')).toContainText('automatedtestuser')
      15 | })

        at /_work/hmpps-probation-integration-services/hmpps-probation-integration-services/tests/hmpps-auth-and-delius/search-for-person.spec.ts:12:24

    attachment #1: screenshot (image/png) ──────────────────────────────────────────────────────────
    test-results/hmpps-auth-and-delius-search-for-person-Sign-in-and-check-user-details-default-retry1/test-failed-1.png
    ────────────────────────────────────────────────────────────────────────────────────────────────

    Retry #2 ───────────────────────────────────────────────────────────────────────────────────────

    Error: Timed out 5000ms waiting for expect(received).toHaveTitle(expected)

    Expected pattern: /HMPPS Digital Services - Home/
    Received string:  "Error: HMPPS Digital Services - Sign in"
    Call log:
      - expect.toHaveTitle with timeout 5000ms
      - waiting for locator(':root')
      -   locator resolved to <html lang="en" class="govuk-template">…</html>
      -   unexpected value "Error: HMPPS Digital Services - Sign in"
      -   locator resolved to <html lang="en" class="govuk-template">…</html>
      -   unexpected value "Error: HMPPS Digital Services - Sign in"
      -   locator resolved to <html lang="en" class="govuk-template">…</html>
      -   unexpected value "Error: HMPPS Digital Services - Sign in"
      -   locator resolved to <html lang="en" class="govuk-template">…</html>
      -   unexpected value "Error: HMPPS Digital Services - Sign in"
      -   locator resolved to <html lang="en" class="govuk-template">…</html>
      -   unexpected value "Error: HMPPS Digital Services - Sign in"
      -   locator resolved to <html lang="en" class="govuk-template">…</html>
      -   unexpected value "Error: HMPPS Digital Services - Sign in"
      -   locator resolved to <html lang="en" class="govuk-template">…</html>
      -   unexpected value "Error: HMPPS Digital Services - Sign in"
      -   locator resolved to <html lang="en" class="govuk-template">…</html>
      -   unexpected value "Error: HMPPS Digital Services - Sign in"
      -   locator resolved to <html lang="en" class="govuk-template">…</html>
      -   unexpected value "Error: HMPPS Digital Services - Sign in"


      10 |     await page.fill('#password', process.env.DELIUS_PASSWORD!)
      11 |     await page.click('#submit')
    > 12 |     await expect(page).toHaveTitle(/HMPPS Digital Services - Home/)
         |                        ^
      13 |     await page.locator('[data-test="manage-account-link"]').click()
      14 |     await expect(page.locator('[data-qa="email"]')).toContainText('automatedtestuser')
      15 | })

        at /_work/hmpps-probation-integration-services/hmpps-probation-integration-services/tests/hmpps-auth-and-delius/search-for-person.spec.ts:12:24

    attachment #1: screenshot (image/png) ──────────────────────────────────────────────────────────
    test-results/hmpps-auth-and-delius-search-for-person-Sign-in-and-check-user-details-default-retry2/test-failed-1.png
    ────────────────────────────────────────────────────────────────────────────────────────────────