mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-03 12:02:53 +00:00
574 B
574 B
Backend Mocking
The backend must be mocked using fixtures or other methods.
You can use
cy.interceptMultiSearch(...)
cy.interceptSearch({extend: 'fixture', fixture: 'fixture', alias: 'alias'})
cy.interceptGet({uid})
For mocking the responses based on a request.
Paths in the commands will be relative to those, so
cy.interceptSearch({extend: 'request', fixture: 'response'})
will actually pull the fixtures from request.search.req.json
and response.search.res.json respectively.
If fixture is omitted, an empty response will be returned.