001 /*
002 * Copyright 2005-2013 The Kuali Foundation
003 *
004 * Licensed under the Educational Community License, Version 2.0 (the "License");
005 * you may not use this file except in compliance with the License.
006 * You may obtain a copy of the License at
007 *
008 * http://www.opensource.org/licenses/ecl2.php
009 *
010 * Unless required by applicable law or agreed to in writing, software
011 * distributed under the License is distributed on an "AS IS" BASIS,
012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013 * See the License for the specific language governing permissions and
014 * limitations under the License.
015 */
016 package edu.samplu.krad.compview;
017
018 import edu.samplu.common.ITUtil;
019 import edu.samplu.common.WebDriverLegacyITBase;
020
021 import org.junit.Assert;
022 import org.junit.Test;
023
024 /**
025 * @author Kuali Rice Team (rice.collab@kuali.org)
026 */
027 public class RichMessagesValidationNavIT extends WebDriverLegacyITBase {
028
029 @Override
030 public void fail(String message) {
031 Assert.fail(message);
032 }
033
034 @Override
035 public String getTestUrl() {
036 return ITUtil.PORTAL;
037 }
038
039 @Test
040 public void testRichMessagesValidationIT() throws Exception {
041 waitAndClickKRAD();
042 waitAndClickByXpath("(//a[contains(text(),'Rich Messages')])[2]");
043 switchToWindow(RICH_MESSAGES_WINDOW_TITLE);
044
045 checkForIncidentReport(RICH_MESSAGES_WINDOW_TITLE);
046 Thread.sleep(9000);
047 // selectWindow(RICH_MESSAGES_WINDOW_TITLE);
048
049 //Verify Basic Functionality Section
050 super.verifyRichMessagesValidationBasicFunctionality();
051
052 //Verify Advanced Functionality Section
053 super.verifyRichMessagesValidationAdvancedFunctionality();
054
055 //Verify Letters and Numbers Validation
056 super.verifyRichMessagesValidationLettersNumbersValidation();
057
058 //Verify Radio and Checkbox groups rich messages Section
059 super.verifyRichMessagesValidationRadioAndCheckBoxGroupFunctionality();
060
061 //Verify Link Declarations Section
062 super.verifyRichMessagesValidationLinkDeclarationsFunctionality();
063 passed();
064 }
065 }