https://cypress.io logo
```typescript cy.wait('@firstChart').then((data: a...
# e2e-testing
h
Copy code
typescript
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