Fix failing e2e test for Initiative G
#1030 (closed) introduced e2e tests for HCP Initiative G. However, test G_002.7 kept failing:
I get the following error:
AssertionError: Timed out retrying after 4000ms: expected '<a.email-link>' to be 'visible'
This element `<a.email-link>` is not visible because it has CSS property: `position: fixed` and it's being covered by another element:
`<a _ngcontent-ng-c1118131681="" href="tel:+49 (0) 30 209 654 055">+49 (0)...</a>`
Obviously the email is visible. I can't see that it would be covered up in the Cypress GUI (Chrome) either (see image).
If I switch email and phone number in the HTML, the test for phone number fails – so it has to do with positioning, not with the email itself.
Even more strangely, this test was actually written by James for A_002 and it worked there.
UPDATE: Please also add the test to PAT Iniative G
Edited by Noel Simmel