Skip to content

Cypress tests

Will Lin edited this page Jul 30, 2021 · 14 revisions

Getting it running on bloom-housing/bloom

  • Ensure redis/postgres are running.
  • yarn dev:backend in a separate terminal.
  • yarn test:app:public:headless
    • QueryFailedError: relation "paper_applications" does not exist
    • I wonder if my bloom_test database is not set up correctly?
      • cd backend/core
      • yarn test:e2e:local - this command has the bloom_test database setup
  • yarn test:app:public:headless
    • QueryFailedError: relation "paper_applications" does not exist
    • Maybe it's actually my production database that's not set up correctly.
    • cd backend/core && yarn db:reseed
  • yarn test:app:public:headless
    • All specs pass!

Running on CityOfDetroit/bloom

  • Ensure redis/postgres are running
  • Seed with test data
    • cd backend/core
    • yarn db:reseed
  • yarn dev:backend in a separate terminal

sites/public

  • yarn test:app:public:headless
    • see failures
  • Run once you know the backend is running
    • cd sites/public && yarn test:headless

sites/partners

  • cd sites/partners
  • yarn test:headless
    • [1] Cypress could not verify that this server is running:
      [1]
      [1]   > http://localhost:3000
      
    • Edited cypress.json to have localhost:3001
  • yarn test:headless
    • Broken, also in bloom-housing/bloom.

Interactive

  • @willrlin can't get cypress open to open anything, thus running in non-headless mode is not an option for me.
  • In #171, @anders-schneider said he could get the cypress desktop app to show up but not run the tests.