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
// Create spycy.window().then((win)=>cy.spy(win.Meteor,'call').as('meteorCall'));// … do something that calls Meteor.call()cy.get('@meteorCall').should('be.calledWith','someMethodName',Cypress.sinon.match({userId: Cypress.sinon.string,amount: 14,status: 'PAID',createdAt: newDate('2022-01-06T00:00:00.000Z'),billingInfo: {fullName: 'Joe Doe',},}),)// Reset spy// I haven't found a way to make it work with cy.get('@meteorCall').invoke('resetHistory')cy.window().then((win)=>cy.spy(win.Meteor,'call').as('meteorCall'));// … do something elsecy.get('@meteorCall').should('be.calledWith','someMethodName',{/* ... */})