nextcloud / spreed

🗨️ Nextcloud Talk – chat, video & audio calls for Nextcloud
https://nextcloud.com/talk
GNU Affero General Public License v3.0
1.64k stars 437 forks source link

Automated testing for frontend #4440

Open PVince81 opened 4 years ago

PVince81 commented 4 years ago

For Vue components, see https://vuejs.org/v2/guide/testing.html For the plain JS code, we could use Jasmine like in the server.

Reason is that we have some quite complex logic both in the JS code (especially webrtc code) and also some Vues like the CallView has a complex set of flags and view switching based on how many screens, videos, etc are available and what mode the user has selected.

For the CallView, ideally we should simplify/refactor it first as I believe it should be possible to achieve the same with simpler code.

PVince81 commented 3 years ago

some work already started and merged

next up in https://github.com/nextcloud/spreed/pull/5522