GetDKAN / dkan-tools

CLI tools for DKAN site management
https://getdkan.github.io/dkan-tools/
15 stars 14 forks source link

Change Cypress base url from web to $DKTL_PROXY_DOMAIN #238

Closed dgading closed 4 years ago

dgading commented 4 years ago

Fixes GetDKAN/dkan-catalog-frontend#57

When comparing urls in the frontend we are building using $DKTL_PROXY_DOMAIN but the Cypress tests set the base url to web. This causes the dataset file download test to fail as web does not match with sandbox.localtest.me in the Gatsby code.

QA: In a DKAN instance

  1. dktl make --frontend=cypress-updates-07-24 This branch has passing tests for the Gatsby build.
  2. dktl install --demo The data used for the frontend Cypress tests.
  3. dktl drush user:create testuser --password="2jqzOAnXS9mmcLasy" Users needed for backend Cypress tests.
  4. dktl drush user-add-role api_user testuser
  5. dktl drush user:create testeditor --password="testeditor"
  6. dktl drush user-add-role administrator testeditor
  7. dktl dkan:test-cypress Test Cypress Backend
  8. dktl dkan:test-cypress frontend Test Cypress Frontend