Skip to content

Dashboard should not show a video link if no video has been uploaded #2939

Closed
@carlos-granados

Description

@carlos-granados

Current behavior:

If you set videoUploadOnPasses to false, Cypress will not upload a video for successful tests. However, a video link is still shown in the dashboard for these tests and if you click it, you will get a page with the message The media could not be loaded, either because the server or network failed or because the format is not supported

Desired behavior:

If no video was uploaded there should be no video link in the dashboard

Steps to reproduce: (app code and test code)

Set the videoUploadOnPasses option to false and run a successful test. No video will be uploaded. Go to the dashboard and locate this test. It will have a link to play a video. If you click on the link you will get the message posted above

Versions

Cypress 3.1.3

images

This is what we see for a successful test. Notice the video button which can be clicked

screen shot 2018-12-12 at 20 24 15

Then when the button is pressed, we get this:
screen shot 2018-12-12 at 20 25 32

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions