Cumulocity-IoT / cumulocity-cypress

Collection of commands and utilities to be used for automating tests for Cumulocity with Cypress.
Apache License 2.0
8 stars 2 forks source link

c8ypact configuration and setup issues #117

Closed thomaswinkler closed 5 months ago

thomaswinkler commented 5 months ago

There have been reports on less critical issues re: setup and configuration of c8ypact.

  1. cy.mount does not use ignore config value. It should also completely disable c8ypact if mode is set to disabled.
  2. documentation of strictMocking should state it is throwing an error instead of responding with 404.
  3. strictMocking and strictMatching config values are not always used
  4. getConfigValue is broken and is not reading from Cypress.config().c8ypact
  5. recordingMode new has been reported to not work for component tests
  6. plugin is not picking up changed recording files without restarting Cypress tests
thomaswinkler commented 5 months ago

Re 5) This issue is related to setting C8Y_PACT_MODE to mock in global before() of the test suite. If isEnabled() is called before the globale before(), the mode() will resolve to disabled. In the reported case this caused recordings to being loaded so mocking failed.

Fix is already available as of 6).