/firestore-emulator-cypress

Repo showing issue of Cypress tests not being able to connect to Firestore emulator

Primary LanguageJavaScript

Firestore Emulator Cypress

This project how the browser opened by Cypress cannot connect to the Firestore emulator.

Running

  1. Start the emulators: yarn emulators
  2. In a new terminal window, seed the emulated datbases with data: yarn seed (calls scripts/seeddb.js)
  3. Start the app by running: yarn start
  4. Visit localhost:3000 in your browser - notice that data loads from both emulated databases
  5. In another terminal window, open the test runner by running: yarn test
  6. Run the projects tests by clicking on "Projects.spec.js"

NOTE When running in normal browser Projects appear for both databases, but when running in Cypress, only Real Time Database emulator works (not Firestore):

image

Error Closeup: image