project-list.ts 515 B

12345678910111213141516171819202122
  1. export const interceptProjectListing = () => {
  2. cy.intercept('GET', '/user/projects', {
  3. projects: [
  4. {
  5. _id: 'fake-project-1',
  6. accessLevel: 'owner',
  7. name: 'My first project',
  8. },
  9. {
  10. _id: 'fake-project-2',
  11. accessLevel: 'owner',
  12. name: 'My second project',
  13. },
  14. ],
  15. })
  16. cy.intercept('GET', '/project/*/entities', {
  17. entities: [
  18. { path: '/frog.jpg', type: 'file' },
  19. { path: 'figures/unicorn.png', type: 'file' },
  20. ],
  21. })
  22. }