/**
   * CaseId: 70588 + 70589 + 70590 -> Add, edit, remove application when edit layout for portal's
   * page
   */
  @Test
  public void test06_AddEditRemoveAppWhenEditLayout_PortalPage() {
    String pageName = "Sniffportalnavigation06";

    info("Create new page of portal with empty layout and applications");
    pageE.createNewPageEmptyLayout(pageName);

    info("Add application when edit layout of page");
    navTool.goToEditPageEditor();
    click(By.linkText("Content"));
    dragAndDropToObject(ELEMENT_CONTENTS_LIST_VIEWER_PORTLET, ELEMENT_DROP_TARGET_NO_LAYOUT);
    click(ELEMENT_SWITCH_VIEW_MODE);
    waitForAndGetElement(ELEMENT_CLV_PORTLET);
    click(ELEMENT_SWITCH_VIEW_MODE);
    pageE.finishEditLayout();

    info("Edit application when edit layout of page");
    navTool.goToEditPageEditor();
    pageE.selectCLVPath("General Drives/Sites Management/acme", "documents");
    click(ELEMENT_SWITCH_VIEW_MODE);
    waitForTextPresent("offices.jpg");
    waitForTextPresent("metro.pdf");
    waitForTextPresent("conditions.doc");
    click(ELEMENT_SWITCH_VIEW_MODE);
    pageE.finishEditLayout();

    info("Remove application when edit layout of page");
    navTool.goToEditPageEditor();
    pageE.removePortlet(ELEMENT_FRAME_CONTAIN_PORTLET, ELEMENT_DELETE_PORTLET_ICON);
    waitForElementNotPresent(ELEMENT_CLV_PORTLET);

    info("Delete page");
    pageMag.deletePageAtManagePageAndPortalNavigation(pageName, true, "intranet", false, null);
  }
Пример #2
0
  /** CaseId: 68860 Change application when edit layout for user's page */
  @Test
  public void test00_ChangeAppWhenEditingPageLayout() {
    String pageName = "gateinsniff05";

    navTool.goToDashboard();
    pageE.createNewPageWithLayout(pageName, 2);
    navTool.goToEditPageEditor();

    info("Add new application to page");
    addContentListPortletForPage();
    click(ELEMENT_SWITCH_VIEW_MODE);

    info("Edit portlet");
    pageE.selectCLVPath("General Drives/Sites Management/acme", "documents");
    click(ELEMENT_SWITCH_VIEW_MODE);
    waitForTextPresent("offices.jpg");
    waitForTextPresent("metro.pdf");
    waitForTextPresent("conditions.doc");
    click(ELEMENT_SWITCH_VIEW_MODE);

    info("Move portlet to row 2");
    pageE.movePortletOnContainer(
        ELEMENT_FRAME_CONTAIN_PORTLET,
        By.xpath("//*[text()='Content List']/..//*[@class='uiIconDragDrop uiIconWhite']"),
        ELEMENT_DROP_TARGET_HAS_LAYOUT);

    info("Delete portlet");
    pageE.removePortlet(ELEMENT_FRAME_CONTAIN_PORTLET, ELEMENT_DELETE_PORTLET_ICON);
    waitForTextNotPresent("Sorry, no articles are available.");
    waitForTextNotPresent("offices.jpg");

    deleteTabOnDashboard(pageName);
  }