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

Make c8yclient command timeout configurable #63

Closed hnaether-c8y closed 9 months ago

hnaether-c8y commented 9 months ago

Currently cy.c8yclient is treated like an ordinary cy command. This leads to the problem that requests being run via c8yclient could time out easily as the (globally configurable) defaultCommandTimeout is 4s. As user of the framework I want to be able to just tweak the timeout for requests being made by cy.c8yclient without causing a potential test delay for all other cy commands.

=> Don't use defaultCommandTimeout for c8yclient but rather the requestTimeout/responseTimeout. See https://docs.cypress.io/guides/references/configuration