1 /** 2 * Copyright 2005-2015 The Kuali Foundation 3 * 4 * Licensed under the Educational Community License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.opensource.org/licenses/ecl2.php 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 package org.kuali.rice.krad.labs; 17 18 import org.junit.Test; 19 import org.kuali.rice.testtools.selenium.WebDriverLegacyITBase; 20 import org.openqa.selenium.Keys; 21 22 /** 23 * @author Kuali Rice Team (rice.collab@kuali.org) 24 */ 25 public class LabsKsaTransactionAft extends WebDriverLegacyITBase { 26 27 /** 28 * /kr-krad/transaction?viewId=TransactionView 29 */ 30 public static final String BOOKMARK_URL = "/kr-krad/transaction?viewId=TransactionView"; 31 32 @Override 33 protected String getBookmarkUrl() { 34 return BOOKMARK_URL; 35 } 36 37 @Override 38 protected void navigate() throws Exception { 39 waitAndClickByLinkText("KSA Transaction"); 40 } 41 42 protected void testKsaTransaction() throws InterruptedException { 43 jGrowl("Expanding First row"); 44 waitAndClickById("rollupList1_detLink_line0"); 45 waitForTextPresent("Transactions"); 46 47 jGrowl("Clicking Delete"); 48 waitAndClickById("rollupList1_del_line0"); 49 waitForTextPresent("You have deleted an item from Roll-Up"); 50 51 waitAndTypeByName("testField", "a"); 52 typeTab(); 53 waitForTextNotPresent("You have deleted an item from Roll-Up"); 54 55 //waitAndTypeByName("testField","a"); 56 //assertTextPresent("Charges"); 57 //jGrowl("Click Delete"); 58 //waitAndClickById("rollupList1_del_line0"); 59 //waitForTextPresent("You have deleted an item from Roll-Up"); 60 //jGrowl("Expand first row"); 61 //waitAndClickByXpath("//img[@class='actionImage leftActionImage uif-image']"); 62 //checkForIncidentReport(); // there is a history of getting freemarker exceptions here that don't prevent the test from continuing assertTextPresent("Deleting Line"); 63 //jGrowl("Click Delete"); 64 //waitAndClickById("rollupList1_detLink_line1"); 65 //checkForIncidentReport(); // there is a history of getting freemarker exceptions here that don't prevent the test from continuing assertTextPresent("Deleting Line"); 66 //waitForTextPresent("You have deleted an item from Roll-Up"); 67 } 68 69 @Test 70 public void testKsaTransactionBookmark() throws Exception { 71 testKsaTransaction(); 72 passed(); 73 } 74 75 @Test 76 public void testKsaTransactionNav() throws Exception { 77 testKsaTransaction(); 78 passed(); 79 } 80 }