question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Extend Cypress testing to check video links

See original GitHub issue

Feature description

Add video link testing to the Cypress suite in https://github.com/corona-warn-app/cwa-website/tree/master/cypress/integration.

Problem and motivation

Problem

  1. PR https://github.com/corona-warn-app/cwa-website/pull/2434 has implemented a redesign of the CWA FAQs on https://www.coronawarn.app/en/faq/ and https://www.coronawarn.app/de/faq/.
  2. The redesign has caused a video link to fail. See issue https://github.com/corona-warn-app/cwa-website/issues/2588.
  3. The Cypress test suite, run using npm test, did not identify this issue prior to Move-To-Production.

One of the missed bad links was in https://www.coronawarn.app/en/faq/results/index.html with the contents

<video src='../../assets/video/erklaerfilm_en.mp4' class='w-100' controls='' alt='Corona-Warn-App - explanatory film'></video>.

Although at the time the Cypress test suite was not scanning in the the /faq/results directory, even if it had have been scanning there, it was not actually checking video links.

Motivation

Running the Cypress test suite should give a high level of confidence that the website performs as needed, including ensuring that links to videos are correct.

Is this something you’re interested in working on

I don’t have the skills to write Cypress tests. I’m happy to review any PR which adds this functionality though.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:14 (14 by maintainers)

github_iconTop GitHub Comments

2reactions
ahodzic2commented, May 20, 2022

@MikeMcC399

I did see the thread related to the Cypress update. Thank you for the heads up!

My plan is to have it make sure the video is playable, which does not require it to play the entire video. My roadblocks have been related to my inexperience with the particular syntax. I think with some help from the community (PR still on course for this weekend) and/or some additional research, I should have a solution ready to test videos efficiently 😁.

2reactions
MikeMcC399commented, May 20, 2022

@ahodzic2

Please note that the Cypress version has been updated to 9.6.1.

I’m not sure which tests you are implementing. It would be good if they are quick to run and do not try to run each video, which would take longer. In my opinion it would be sufficient if the tests just make sure that the videos exist at the location which tries to call them.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Configuration - Cypress Documentation
Where Cypress will automatically save the video of the test run when tests run with cypress run . video, true, Whether Cypress will...
Read more >
Test And Play Video From Cypress - YouTube
From a Cypress test, we can find the video element, check its properties, invoke play, and wait for the video to finish playing....
Read more >
Working with Configurations and generate video ... - YouTube
In this video we will be working with Configurations and generating video recording and screenshots of test failure with Cypress ...
Read more >
Extend Your Workflow with E2E Testing & Cypress - YouTube
Automated testing often falls under two categories: difficult and ignored. Cypress.io has made strides to package up a polished, ...
Read more >
Load Chrome Extension And More on Cypress Architecture
In this video I've shown : -1. how to Load Chrome Extension in Cypress ? and 2. how Cypress frame you application under...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found