white-mouse-85089
01/05/2023, 10:35 PMpurple-afternoon-2408
01/06/2023, 3:39 AMplain-mechanic-5738
01/06/2023, 5:43 AMplain-mechanic-5738
01/06/2023, 6:05 AMnice-lifeguard-81070
01/06/2023, 7:38 AMrough-van-84956
01/06/2023, 9:23 AMfull-application-86498
01/06/2023, 10:47 AMrich-pharmacist-74804
01/06/2023, 11:11 AMbitter-fountain-36713
01/06/2023, 2:25 PMbrave-doctor-62978
01/06/2023, 3:07 PM.should('be.calledWith',
but search for a value in an object passed?brave-doctor-62978
01/06/2023, 3:07 PMbrave-doctor-62978
01/06/2023, 3:07 PM// expect(trackSpy).toHaveBeenLastCalledWith(ATTENDANCE_ONBOARDING, expect.objectContaining({
// action: Actions.COMPLETED_STEP,
// currentStep: STEPS.PAYROLL,
// mobileApp: true,
// payPeriodEndDate: '2015-09-03',
// payPeriodLength: 'weekly',
// personalComputer: true,
// strictMode: true,
// }));
brave-doctor-62978
01/06/2023, 3:07 PMgray-kilobyte-89541
01/06/2023, 3:34 PMbrave-doctor-62978
01/06/2023, 3:35 PMbrave-doctor-62978
01/06/2023, 3:35 PMcy.get('@setName').should(
'have.been.calledOnceWith',
Cypress.sinon.match.string,
'Smith',
)
is pretty closegray-kilobyte-89541
01/06/2023, 3:49 PMbrave-doctor-62978
01/06/2023, 3:51 PMgray-kilobyte-89541
01/06/2023, 3:54 PMbrave-doctor-62978
01/06/2023, 3:55 PMcy.get('@mercuryTracker').debug()
but that's not quite what i wantbrave-doctor-62978
01/06/2023, 3:58 PMbrave-doctor-62978
01/06/2023, 4:04 PMcy.get('@mercuryTracker')
.should('have.callCount', 6)
.its('lastCall.args.1')
.should('deep.include', {
action: Actions.COMPLETED_STEP,
currentStep: STEPS.PAYROLL,
mobileApp: true,
payPeriodEndDate: '2021-11-30',
payPeriodLength: 'weekly',
personalComputer: true,
strictMode: true,
})
gray-kilobyte-89541
01/06/2023, 4:15 PMbrave-doctor-62978
01/06/2023, 4:57 PMbrave-doctor-62978
01/06/2023, 4:58 PMcy.wait('@submission').its('request.body').should('deep.include', { endTime: expectedEnd });
my life would be perfectbrave-doctor-62978
01/06/2023, 4:58 PMcool-truck-21040
01/06/2023, 5:47 PMgray-kilobyte-89541
01/06/2023, 5:54 PMbrave-doctor-62978
01/06/2023, 5:58 PM