Search in sources :

Example 1 with ContentFragment

use of com.adobe.cq.wcm.core.components.it.seljup.util.components.contentfragment.v1.ContentFragment in project aem-core-wcm-components by Adobe-Marketing-Cloud.

the class ContentFragmentListIT method setup.

protected void setup() throws ClientException {
    // create the test page, store page path in 'testPagePath'
    testPage = adminClient.createPage("testPage", "Test Page Title", rootPage, defaultPageTemplate).getSlingPath();
    // create a proxy component
    proxyPath = Commons.createProxyComponent(adminClient, contentFragmentListRT, Commons.proxyPath, null, null);
    // add the core form container component
    cmpPath = Commons.addComponent(adminClient, proxyPath, testPage + Commons.relParentCompPath, "formtext", null);
    contentFragment = new ContentFragment();
    contentFragmentList = new ContentFragmentList();
    // open the page in the editor
    editorPage = new PageEditorPage(testPage);
    editorPage.open();
}
Also used : ContentFragment(com.adobe.cq.wcm.core.components.it.seljup.util.components.contentfragment.v1.ContentFragment) ContentFragmentList(com.adobe.cq.wcm.core.components.it.seljup.util.components.contentfragmentlist.v1.ContentFragmentList) PageEditorPage(com.adobe.cq.testing.selenium.pageobject.PageEditorPage)

Example 2 with ContentFragment

use of com.adobe.cq.wcm.core.components.it.seljup.util.components.contentfragment.v1.ContentFragment in project aem-core-wcm-components by Adobe-Marketing-Cloud.

the class ContentFragmentIT method setupBeforeEach.

@BeforeEach
public void setupBeforeEach() throws ClientException {
    // create the test page, store page path in 'testPagePath'
    testPage = adminClient.createPage("testPage", "Test Page Title", rootPage, defaultPageTemplate).getSlingPath();
    // create a proxy component
    proxyPath = Commons.createProxyComponent(adminClient, Commons.rtContentFragment_v1, Commons.proxyPath, null, null);
    // add the core form container component
    cmpPath = Commons.addComponent(adminClient, proxyPath, testPage + Commons.relParentCompPath, "formtext", null);
    contentFragment = new ContentFragment();
    // open the page in the editor
    editorPage = new PageEditorPage(testPage);
    editorPage.open();
}
Also used : ContentFragment(com.adobe.cq.wcm.core.components.it.seljup.util.components.contentfragment.v1.ContentFragment) PageEditorPage(com.adobe.cq.testing.selenium.pageobject.PageEditorPage) BeforeEach(org.junit.jupiter.api.BeforeEach)

Aggregations

PageEditorPage (com.adobe.cq.testing.selenium.pageobject.PageEditorPage)2 ContentFragment (com.adobe.cq.wcm.core.components.it.seljup.util.components.contentfragment.v1.ContentFragment)2 ContentFragmentList (com.adobe.cq.wcm.core.components.it.seljup.util.components.contentfragmentlist.v1.ContentFragmentList)1 BeforeEach (org.junit.jupiter.api.BeforeEach)1