since ‎22-10-2020
‎24-02-2021
RRaj
Level 1
Re: CSP Nonce headers in AEM for Launch
Avatar

RRaj

RRaj
- Adobe Experience Manager
Hi @stephanef891866 did you get some solution around it? How you injecting JS to your pages now with nonce?

Views

60

Likes

0

Replies

0
AemMock in JUnit4 is not able to return page.getTemplate
Avatar

RRaj

RRaj
- Adobe Experience Manager
I am trying to run the test for one of my Model class for Custom Render Condition. Its testing if current is a template allowed to show the tab/field in dialog. When I am running test for this code using AemMock and JUnit4 its failing when debug I found its not able to get template from the page object: final Template pageTemplate = page.getTemplate(); //The above, getTemplate returns null for my Unit test below templatePathOfCurrentPage = pageTemplate.getName(); But at the same time if I change...

Views

174

Likes

0

Replies

0
Likes given to