Skip to content

PI-1528 (#2366)

PI-1528 (#2366) #1752

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

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

Annotations

Check failure on line 47 in ts

See this annotation in the file changed.

@github-actions 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
    ────────────────────────────────────────────────────────────────────────────────────────────────