Parent issue: #148
E2E test for uploading a torrent.
The scaffolding for this test may be tricky.
See the backend version for the same test: https://github.com/torrust/torrust-index-backend/blob/develop/tests/e2e/web/api/v1/contexts/torrent/contract.rs#L306-L333
On the backend, we set up torrent fixtures. Each test creates its torrent from scratch using a command line app called imdl. Maybe for JavaScript, we can find a package instead of building a wrapper for the console command.
See: https://github.com/torrust/torrust-index-backend/blob/develop/tests/common/contexts/torrent/file.rs
That gives you the ability to build any torrent file you might need for your tests.
Parent issue: #148
E2E test for uploading a torrent.
The scaffolding for this test may be tricky.
See the backend version for the same test: https://github.com/torrust/torrust-index-backend/blob/develop/tests/e2e/web/api/v1/contexts/torrent/contract.rs#L306-L333
On the backend, we set up torrent fixtures. Each test creates its torrent from scratch using a command line app called imdl. Maybe for JavaScript, we can find a package instead of building a wrapper for the console command.
See: https://github.com/torrust/torrust-index-backend/blob/develop/tests/common/contexts/torrent/file.rs
That gives you the ability to build any torrent file you might need for your tests.