adobe / aem-core-wcm-components

Standardized components to build websites with AEM.
https://docs.adobe.com/content/help/en/experience-manager-core-components/using/introduction.html
Apache License 2.0
737 stars 745 forks source link

ComponentsIT.testEmbed failing #2703

Closed reschke closed 6 months ago

reschke commented 6 months ago

This test has started failing for us in the last ~48 hours:

[2024-03-26T21:53:23.281Z] [INFO] [ERROR] Tests run: 6, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 1.332 s <<< FAILURE! - in com.adobe.cq.wcm.core.components.it.http.ComponentsIT
[2024-03-26T21:53:23.282Z] [INFO] [ERROR] testEmbed(com.adobe.cq.wcm.core.components.it.http.ComponentsIT)  Time elapsed: 0.663 s  <<< FAILURE!
[2024-03-26T21:53:23.282Z] [INFO] org.junit.ComparisonFailure: .embed.embed-v1 does not match embed-v1-url-youtube.html expected:<...er="0" height="113" []src="https://www.you...> but was:<...er="0" height="113" [referrerpolicy="strict-origin-when-cross-origin" ]src="https://www.you...>

So it seems the server is now embedding a reffererpolicy attribute that the test doesn't want to see (as per: https://github.com/adobe/aem-core-wcm-components/blob/main/testing/it/http/src/test/resources/components/embed-v1-url-youtube.html)