/** AONE-15604:Form - Items */
  @Test(groups = "Hybrid", enabled = true)
  public void AONE_15604() throws Exception {
    String testName = getTestName() + System.currentTimeMillis();
    String user1 = getUserNameForDomain(testName + "opUser", testDomain);
    String cloudUser = getUserNameForDomain(testName + "cloudUser", testDomain);
    String cloudSite = getSiteName(testName) + "CL" + "-3";
    String opSite = getSiteName(testName) + "-OP";
    String fileName1 = getFileName(testName) + ".txt";
    String dueDate = getDueDateString();

    createCloudAccount(testName);

    ShareUser.login(hybridDrone, cloudUser, DEFAULT_PASSWORD);
    ShareUser.createSite(hybridDrone, cloudSite, SITE_VISIBILITY_PUBLIC);
    ShareUser.logout(hybridDrone);

    // Login as OP user
    ShareUser.login(drone, user1, DEFAULT_PASSWORD);

    ShareUser.openSiteDocumentLibraryFromSearch(drone, opSite);

    // Start Simple Cloud Task Workflow
    CloudTaskOrReviewPage cloudTaskOrReviewPage =
        ShareUserWorkFlow.startWorkFlowFromDocumentLibraryPage(drone, fileName1).render();

    // ---- Step 1 ----
    // --- Step action ---
    // Fill in all the fields except Assignee/Reviewers.
    // --- Expected results ---
    /** Performed correctly. */
    cloudTaskOrReviewPage.selectAfterCompleteDropDown(KeepContentStrategy.KEEPCONTENT);
    cloudTaskOrReviewPage.enterDueDateText(dueDate);
    cloudTaskOrReviewPage.selectLockOnPremiseCheckbox(true);
    cloudTaskOrReviewPage.selectPriorityDropDown(Priority.HIGH);
    DestinationAndAssigneePage destinationAndAssigneePage =
        cloudTaskOrReviewPage.selectDestinationAndAssigneePage().render();
    destinationAndAssigneePage.selectSite(cloudSite);
    destinationAndAssigneePage.selectSubmitButtonToSync();

    // ---- Step 2 ----
    // --- Step action ---
    // Click on Start Workflow button
    // --- Expected results ---
    // 'The value cannot be empty.' balloon pop-up is displayed above the the Assignee/Reviewers
    // section.
    cloudTaskOrReviewPage.clickStartWorkflow();
    Assert.assertTrue(
        cloudTaskOrReviewPage.isErrorBalloonPresent(),
        "Baloon error is not displayed when Assignee is not specified");
    Assert.assertEquals(
        cloudTaskOrReviewPage.getErrorBalloonMessage(), "The value cannot be empty.");
  }
  /** AONE-15603:Negative case - Destination is not specified */
  @Test(groups = "Hybrid", enabled = true)
  public void AONE_15603() throws Exception {
    String testName = getTestName() + System.currentTimeMillis();
    String user1 = getUserNameForDomain(testName + "opUser", testDomain);
    String opSite = getSiteName(testName) + "-OP";
    String fileName1 = getFileName(testName) + ".txt";
    String dueDate = getDueDateString();

    createCloudAccount(testName);

    // Login as OP user
    ShareUser.login(drone, user1, DEFAULT_PASSWORD);

    ShareUser.openSiteDocumentLibraryFromSearch(drone, opSite);

    // Start Simple Cloud Task Workflow
    CloudTaskOrReviewPage cloudTaskOrReviewPage =
        ShareUserWorkFlow.startWorkFlowFromDocumentLibraryPage(drone, fileName1).render();

    // ---- Step 1 ----
    // --- Step action ---
    // Fill in all the fields except Destination
    // --- Expected results ---
    // Performed correctly.
    cloudTaskOrReviewPage.enterDueDateText(dueDate);
    cloudTaskOrReviewPage.selectLockOnPremiseCheckbox(true);
    cloudTaskOrReviewPage.selectPriorityDropDown(Priority.MEDIUM);

    // ---- Step 2 ----
    // --- Step action ---
    // Click on Start Workflow button
    // --- Expected results ---
    // 'The value cannot be empty.' baloon pop-up is displayed above the Destination section.
    cloudTaskOrReviewPage.clickStartWorkflow();
    Assert.assertTrue(
        cloudTaskOrReviewPage.isErrorBalloonPresent(),
        "Baloon error is not displayed when Destination is not specified");
    Assert.assertEquals(
        cloudTaskOrReviewPage.getErrorBalloonMessage(), "The value cannot be empty.");

    ShareUser.logout(drone);
  }