Skip to content

E2E tests: upload a torrent #180

@josecelano

Description

@josecelano

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions