owncloud / web

:dragon_face: Next generation frontend for ownCloud Infinite Scale
https://owncloud.dev/clients/web/
GNU Affero General Public License v3.0
420 stars 156 forks source link

e2e tests for sse (server sent events) #10839

Closed ScharfViktor closed 1 month ago

ScharfViktor commented 2 months ago

related tasks and PRs:

e2e tests for SSE:

spaces resources:

creating:

updating:

space:

share:

event in the eventStream in the GET api/v1/notifications/sse request:

NOTIFICATION = 'userlog-notification',
  POSTPROCESSING_FINISHED = 'postprocessing-finished',
  FILE_LOCKED = 'file-locked',
  FILE_UNLOCKED = 'file-unlocked',
  FILE_TOUCHED = 'file-touched',
  ITEM_RENAMED = 'item-renamed',
  ITEM_TRASHED = 'item-trashed',
  ITEM_RESTORED = 'item-restored',
  ITEM_MOVED = 'item-moved',
  FOLDER_CREATED = 'folder-created',
  SPACE_MEMBER_ADDED = 'space-member-added',
  SPACE_MEMBER_REMOVED = 'space-member-removed',
  SPACE_SHARE_UPDATED = 'space-share-updated',
  SHARE_CREATED = 'share-created',
  SHARE_REMOVED = 'share-removed',
  SHARE_UPDATED = 'share-updated',
  LINK_CREATED = 'link-created',
  LINK_REMOVED = 'link-removed',
  LINK_UPDATED = 'link-updated'

Besides the appearance/disappearance of resources on the web page, we usually check the api responses. but checking notifications/sse seems tricky. We need to somehow listen GET api/v1/notifications/sse during the whole test, which is triggered only once after login and gets 200 with an empty response.

ScharfViktor commented 1 month ago

The sse is not yet fully implemented. Therefore, only this test suite is available for now

saw-jan commented 1 month ago

The sse is not yet fully implemented. Therefore, only this test suite is available for now

So we are skipping these for now. :+1:

space:

  • [ ] disable
  • [ ] enable
  • [ ] delete
  • [ ] change description/space image/space icon