corona-warn-app / cwa-website

Corona-Warn-App website. The CWA development ended on May 31, 2023. You still can warn other users until April 30, 2023. More information:
https://coronawarn.app/en/faq/#ramp_down
Apache License 2.0
523 stars 225 forks source link

Fix failing cypress test regarding faq-links and enable logging #3490

Closed thorbenkuro closed 1 year ago

thorbenkuro commented 1 year ago

This Pull Request fixes the cypress test, that was causing the GitHub Action, that runs the e2e tests, to fail. The root cause for the failing test seemed to be the forEach loop, that iterated through every link and softExpected the link to have a certain attribute. The test repeatedly timed out at this point, most likely because of the CPU/RAM resources of the GitHub Actions Runner. I have replaced the forEach-loop with an additional filter, and a check for the length of the filtered list, to work-around the stated issue.

I also added the ability to log to the visible console output, to be able to find the root cause of any upcoming issues quicker.


Internal Tracking ID: EXPOSUREAPP-15135

MikeMcC399 commented 1 year ago