Search in sources :

Example 1 with CoralCheckbox

use of com.adobe.cq.testing.selenium.pagewidgets.coral.CoralCheckbox in project aem-core-wcm-components by Adobe-Marketing-Cloud.

the class CarouselIT method testAutoplayGroup.

@Test
@DisplayName("Test: Autoplay group toggle")
public void testAutoplayGroup() throws InterruptedException {
    createItems();
    CarouselEditDialog editDialog = carousel.openEditDialog(cmpPath);
    editDialog.openEditDialogProperties();
    CoralCheckbox autoplay = editDialog.getAutoplay();
    assertTrue(autoplay.isChecked() == false, "Autoplay should be unchecked");
    assertTrue(editDialog.getAutoplayGroup().isDisplayed() == false, "Autoplay Group should not be visible");
    autoplay.setSelected(true);
    assertTrue(editDialog.getAutoplayGroup().isDisplayed() == true, "Autoplay Group should be visible");
    autoplay.setSelected(false);
    assertTrue(editDialog.getAutoplayGroup().isDisplayed() == false, "Autoplay Group should not be visible");
}
Also used : CarouselEditDialog(com.adobe.cq.wcm.core.components.it.seljup.util.components.carousel.CarouselEditDialog) CoralCheckbox(com.adobe.cq.testing.selenium.pagewidgets.coral.CoralCheckbox) AuthorBaseUITest(com.adobe.cq.wcm.core.components.it.seljup.AuthorBaseUITest) Test(org.junit.jupiter.api.Test) DisplayName(org.junit.jupiter.api.DisplayName)

Example 2 with CoralCheckbox

use of com.adobe.cq.testing.selenium.pagewidgets.coral.CoralCheckbox in project aem-core-wcm-components by Adobe-Marketing-Cloud.

the class ListEditDialog method clickShowModificationDate.

public void clickShowModificationDate() {
    CoralCheckbox checkbox = new CoralCheckbox(showModificationDate);
    checkbox.click();
}
Also used : CoralCheckbox(com.adobe.cq.testing.selenium.pagewidgets.coral.CoralCheckbox)

Example 3 with CoralCheckbox

use of com.adobe.cq.testing.selenium.pagewidgets.coral.CoralCheckbox in project aem-core-wcm-components by Adobe-Marketing-Cloud.

the class NavigationEditDialog method clickCollectAllPages.

public void clickCollectAllPages() {
    CoralCheckbox checkbox = new CoralCheckbox(collectAllPages);
    checkbox.click();
}
Also used : CoralCheckbox(com.adobe.cq.testing.selenium.pagewidgets.coral.CoralCheckbox)

Example 4 with CoralCheckbox

use of com.adobe.cq.testing.selenium.pagewidgets.coral.CoralCheckbox in project aem-core-wcm-components by Adobe-Marketing-Cloud.

the class Page method setGenerateSitemap.

public void setGenerateSitemap(boolean enabled) {
    CoralCheckbox coralCheckbox = new CoralCheckbox(generateSitemap);
    coralCheckbox.setSelected(enabled);
}
Also used : CoralCheckbox(com.adobe.cq.testing.selenium.pagewidgets.coral.CoralCheckbox)

Example 5 with CoralCheckbox

use of com.adobe.cq.testing.selenium.pagewidgets.coral.CoralCheckbox in project aem-core-wcm-components by Adobe-Marketing-Cloud.

the class FormTextEditDialog method setReadOnly.

public void setReadOnly() {
    CoralCheckbox checkbox = new CoralCheckbox("[name='./readOnly']");
    checkbox.click();
}
Also used : CoralCheckbox(com.adobe.cq.testing.selenium.pagewidgets.coral.CoralCheckbox)

Aggregations

CoralCheckbox (com.adobe.cq.testing.selenium.pagewidgets.coral.CoralCheckbox)34 PropertiesPage (com.adobe.cq.testing.selenium.pageobject.cq.sites.PropertiesPage)3 AuthorBaseUITest (com.adobe.cq.wcm.core.components.it.seljup.AuthorBaseUITest)2 DisplayName (org.junit.jupiter.api.DisplayName)2 Test (org.junit.jupiter.api.Test)2 AdvancedTab (com.adobe.cq.testing.selenium.pagewidgets.cq.tabs.AdvancedTab)1 AccordionEditDialog (com.adobe.cq.wcm.core.components.it.seljup.util.components.accordion.AccordionEditDialog)1 CarouselEditDialog (com.adobe.cq.wcm.core.components.it.seljup.util.components.carousel.CarouselEditDialog)1 ArrayList (java.util.ArrayList)1