You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 20, 2023. It is now read-only.
Bug is specific for iOS only, for general issues / questions that apply to iOS and Android please raise them in the documentation repository
Bug is not already reported in another issue
Technical details
Device name: Xcode simulator / iPhone 8
iOS version: Xcode simulator / iOS 15
App version: current latest under development / branch release/2.15.x
Describe the bug
In the unit tests for UITesting, the external links are usually mocked. They don't open the given URL, but show a message box instead. The reason for this mock is to reduce external dependencies, especially to the network infrastructure, and to make the unit tests more robust.
However, during analysis of #2179 I found several links that are not mocked in the unit test.
To be more precise, I found the following:
informations in easy language and sign language from App information / About the app - AppStrings.AppInformation.aboutLink
contact form on the Imprint page - AppStrings.AppInformation.imprintSectionContactFormLink
link to the Blog from info page for statistics tiles - AppStrings.Links.statisticsInfoBlog
FAQ from notification settings (only with active notifications) - AppStrings.Links.notificationSettingsFAQ
FAQ from info page for the QR code of a vaccination certificate - AppStrings.CovPass.Information.faqLink
another two links from certificate validation info page - AppStrings.Links.healthCertificateValidationFAQ and AppStrings.Links.healthCertificateValidationEU
FAQ for booster vaccination - AppStrings.Links.healthCertificateBoosterFAQ
ndegendogo
changed the title
[Unit test] Several links on the pages are not mocked
[Unit test] Several external links are not mocked during unit test
Nov 21, 2021
Avoid duplicates
Technical details
Describe the bug
In the unit tests for UITesting, the external links are usually mocked. They don't open the given URL, but show a message box instead. The reason for this mock is to reduce external dependencies, especially to the network infrastructure, and to make the unit tests more robust.
However, during analysis of #2179 I found several links that are not mocked in the unit test.
To be more precise, I found the following:
AppStrings.AppInformation.aboutLink
AppStrings.AppInformation.imprintSectionContactFormLink
AppStrings.Links.statisticsInfoBlog
AppStrings.Links.notificationSettingsFAQ
AppStrings.CovPass.Information.faqLink
AppStrings.Links.healthCertificateValidationFAQ
andAppStrings.Links.healthCertificateValidationEU
AppStrings.Links.healthCertificateBoosterFAQ
Steps to reproduce the issue
Expected: network access is mocked, the URL is shown on a message
Observed: the URL opens
Expected behaviour
During unit testing, the links should be mocked. This will increase robustness of the unit tests
Possible Fix
Additional context
I am volunteering to submit a PR with a fix.
The text was updated successfully, but these errors were encountered: