happy-dinner-13480
10/23/2022, 11:13 AMtypescript
cy.wait('@firstChart').then((data: any) => {
expect(data.response.statusCode).to.eq(200);
expect(data.request.body.document_types).to.deep.eq(['receipt', 'invoice']);
expect(data.request.body.filters[0]).to.deep.equal({
comparison_operator: '==',
field: 'purchase_date',
type: 'field_value',
value: 'this_year',
});
});
this works