Search in sources :

Example 1 with FormButton

use of com.adobe.cq.wcm.core.components.it.seljup.util.components.formbutton.v2.FormButton in project aem-core-wcm-components by Adobe-Marketing-Cloud.

the class FormButtonIT method setupBefore.

/**
 * Before Test Case
 */
@BeforeEach
public void setupBefore() throws ClientException {
    testPage = authorClient.createPage("testPage", "Test Page", rootPage, defaultPageTemplate, 200, 201).getSlingPath();
    proxyComponentPath = Commons.creatProxyComponent(adminClient, Commons.rtFormButton_v1, "Proxy Form Button", componentName);
    addPathtoComponentPolicy(responsiveGridPath, proxyComponentPath);
    cmpPath = Commons.addComponent(adminClient, proxyComponentPath, testPage + Commons.relParentCompPath, componentName, null);
    formButton = new FormButton();
    editorPage = new PageEditorPage(testPage);
    editorPage.open();
}
Also used : BaseFormButton(com.adobe.cq.wcm.core.components.it.seljup.util.components.formbutton.BaseFormButton) FormButton(com.adobe.cq.wcm.core.components.it.seljup.util.components.formbutton.v1.FormButton) PageEditorPage(com.adobe.cq.testing.selenium.pageobject.PageEditorPage) BeforeEach(org.junit.jupiter.api.BeforeEach)

Example 2 with FormButton

use of com.adobe.cq.wcm.core.components.it.seljup.util.components.formbutton.v2.FormButton in project aem-core-wcm-components by Adobe-Marketing-Cloud.

the class FormButtonIT method setupBefore.

/**
 * Before Test Case
 */
@BeforeEach
public void setupBefore() throws ClientException {
    testPage = authorClient.createPage("testPage", "Test Page", rootPage, defaultPageTemplate, 200, 201).getSlingPath();
    proxyComponentPath = Commons.creatProxyComponent(adminClient, Commons.rtFormButton_v2, "Proxy Form Button", "formbutton");
    addPathtoComponentPolicy(responsiveGridPath, proxyComponentPath);
    cmpPath = Commons.addComponent(adminClient, proxyComponentPath, testPage + Commons.relParentCompPath, componentName, null);
    formButton = new FormButton();
    editorPage = new PageEditorPage(testPage);
    editorPage.open();
}
Also used : FormButton(com.adobe.cq.wcm.core.components.it.seljup.util.components.formbutton.v2.FormButton) PageEditorPage(com.adobe.cq.testing.selenium.pageobject.PageEditorPage) BeforeEach(org.junit.jupiter.api.BeforeEach)

Aggregations

PageEditorPage (com.adobe.cq.testing.selenium.pageobject.PageEditorPage)2 BeforeEach (org.junit.jupiter.api.BeforeEach)2 BaseFormButton (com.adobe.cq.wcm.core.components.it.seljup.util.components.formbutton.BaseFormButton)1 FormButton (com.adobe.cq.wcm.core.components.it.seljup.util.components.formbutton.v1.FormButton)1 FormButton (com.adobe.cq.wcm.core.components.it.seljup.util.components.formbutton.v2.FormButton)1