You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem is, to make the tests work, we need to wrap the arguments in an object and have now a second path in the code, checking for the presence of cypress to then check if the payload has an arguments property to then handle that correctly. But we cannot change the interface of the microservices. So this is not very nice:
The side path in the fgrontend looks similar to this:
this._connection.on('onEntity',(entityType: string|any,entities: Entity[],count: number)=>{// the new cypress signalr mock can not send multiple arguments, we need to spread itif(entityType.arguments){this.process(entityType.arguments[0],entityType.arguments[1],entityType.arguments[2]);}else{this.process(entityType,entities,count);}});
I would like to avoid having t6hat separate path in the real code that is only needed in cypress testing.
The text was updated successfully, but these errors were encountered:
we use signalr not with a single payload, but with multiple arguments. The other signalr cypress plugin supported this.
The problem is, to make the tests work, we need to wrap the arguments in an object and have now a second path in the code, checking for the presence of cypress to then check if the payload has an arguments property to then handle that correctly. But we cannot change the interface of the microservices. So this is not very nice:
The side path in the fgrontend looks similar to this:
I would like to avoid having t6hat separate path in the real code that is only needed in cypress testing.
The text was updated successfully, but these errors were encountered: