Skip to content

Commit

Permalink
Update Cypress’s BaseUrl to the new dev domain
Browse files Browse the repository at this point in the history
All e2e tests started to fail when we went on in all environments. It’s not clear why the timeout however the cypress feedback trace quotes the old domain name:

```
1) Manage Temporary Accommodation - Lost beds
       Marking a bedspace as void:
     AssertionError: Timed out retrying after 4000ms: Expected to find content: 'Manage estate' within the element: <h1.govuk-heading-l> but never did.
      at _DashboardPage.checkOnPage (https://temporary-accommodation-dev.hmpps.service.justice.gov.uk/__cypress/****s?p=e2e/****s/lostBed.feature:31898:24)
      at new _Page (https://temporary-accommodation-dev.hmpps.service.justice.gov.uk/__cypress/****s?p=e2e/****s/lostBed.feature:31886:16)
      at new _DashboardPage (https://temporary-accommodation-dev.hmpps.service.justice.gov.uk/__cypress/****s?p=e2e/****s/lostBed.feature:33288:11)
      at _Page.verifyOnPage (https://temporary-accommodation-dev.hmpps.service.justice.gov.uk/__cypress/****s?p=e2e/****s/lostBed.feature:31889:18)
      at Context.eval (https://temporary-accommodation-dev.hmpps.service.justice.gov.uk/__cypress/****s?p=e2e/****s/lostBed.feature:45737:36)
      at Registry.runStepDefininition (https://temporary-accommodation-dev.hmpps.service.justice.gov.uk/__cypress/****s?p=e2e/****s/lostBed.feature:8566:48)
      at Object.fn (https://temporary-accommodation-dev.hmpps.service.justice.gov.uk/__cypress/****s?p=e2e/****s/lostBed.feature:15014:43)
      at runStepWithLogGroup (https://temporary-accommodation-dev.hmpps.service.justice.gov.uk/__cypress/****s?p=e2e/****s/lostBed.feature:14648:29)
      at Context.eval (https://temporary-accommodation-dev.hmpps.service.justice.gov.uk/__cypress/****s?p=e2e/****s/lostBed.feature:15010:62)
```

The running theory is that the redirect we’re now doing is causing these to not be a match.
  • Loading branch information
tahb committed Nov 13, 2023
1 parent bd7ae99 commit aa34267
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ jobs:
command: |
npm run test:e2e:ci --\
--env "assessor_username=${CYPRESS_ASSESSOR_USERNAME_<< parameters.environment >>},assessor_password=${CYPRESS_ASSESSOR_PASSWORD_<< parameters.environment >>},referrer_username=${CYPRESS_REFERRER_USERNAME_<< parameters.environment >>},referrer_password=${CYPRESS_REFERRER_PASSWORD_<< parameters.environment >>},acting_user_probation_region_id=${CYPRESS_ACTING_USER_PROBATION_REGION_ID_<< parameters.environment >>},acting_user_probation_region_name=${CYPRESS_ACTING_USER_PROBATION_REGION_NAME_<< parameters.environment >>},environment=${CYPRESS_ENVIRONMENT_<< parameters.environment >>}"\
--config baseUrl=https://temporary-accommodation-<< parameters.environment >>.hmpps.service.justice.gov.uk
--config baseUrl=https://transitional-accommodation-<< parameters.environment >>.hmpps.service.justice.gov.uk
- store_artifacts:
path: e2e/screenshots
destination: screenshots
Expand Down

0 comments on commit aa34267

Please sign in to comment.