@aemey, "parent is null" in NPE refers to the first argument on the
create method which is nothing but the parent resource under which we
are trying to create a resource. Resource resource =
folderName,folderProperties);Cross check that the AemContext object in
Test class is aware/set to the parent resource.
Hi, Thank you the response. Provided above examples are related to apply
styles at page level policy. I am looking for layout level. Please check
below screen shot. I don't see any issue for non-spa templates when I
apply styles at layout level. Issue occurs only on SPA.Thanks
Hi, Is it possible to apply styles at layout level in SPA. I tried your
above example without writing any code and worked as expected in SPA
page level. Is there any reference/documentation to point out layout
level for SPA. Thanks.