001/** 002 * Copyright 2005-2015 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 */ 016package org.kuali.rice.krad.labs; 017 018import org.junit.Test; 019import org.kuali.rice.testtools.selenium.WebDriverLegacyITBase; 020 021/** 022 * @author Kuali Rice Team (rice.collab@kuali.org) 023 */ 024public class LabsBootstrapIconsAft extends WebDriverLegacyITBase { 025 026 /** 027 * /kr-krad/labs?viewId=Lab-ActionIconMenu 028 */ 029 public static final String BOOKMARK_URL = "/kr-krad/labs?viewId=Lab-ActionIconMenu"; 030 031 @Override 032 protected String getBookmarkUrl() { 033 return BOOKMARK_URL; 034 } 035 036 @Override 037 protected void navigate() throws Exception { 038 waitAndClickByLinkText("Bootstrap Icons"); 039 } 040 041 protected void testDemoBootstrapIcons() throws InterruptedException { 042 waitForElementPresentByXpath("//button[@class='btn btn-default uif-secondaryActionButton uif-boxLayoutVerticalItem clearfix icon-home']"); 043 waitForElementPresentByXpath("//button[@class='btn btn-primary uif-primaryActionButton uif-boxLayoutVerticalItem clearfix']/span[@class='icon-office']"); 044 waitForElementPresentByXpath("//button[@class='btn btn-primary uif-primaryActionButton uif-boxLayoutVerticalItem clearfix']/span[@class='icon-music']"); 045 waitForElementPresentByXpath("//button[@class='btn btn-primary uif-primaryActionButton uif-boxLayoutVerticalItem clearfix']/span[@class='icon-connection']"); 046 waitForElementPresentByXpath("//a[@class='uif-link uif-boxLayoutVerticalItem clearfix icon-pencil']"); 047 waitForElementPresentByXpath("//button[@class='btn btn-primary uif-primaryActionButton uif-boxLayoutVerticalItem clearfix']/span/img[@class='actionImage bottomActionImage uif-image']"); 048 waitForElementPresentByXpath("//button[@class='btn btn-primary uif-primaryActionButton uif-boxLayoutVerticalItem clearfix']/img[@class='actionImage leftActionImage uif-image']"); 049 waitForElementPresentByXpath("//button[@class='btn btn-primary uif-primaryActionButton uif-boxLayoutVerticalItem clearfix']/img[@class='actionImage rightActionImage uif-image']"); 050 } 051 052 @Test 053 public void testDemoBootstrapIconsBookmark() throws Exception { 054 testDemoBootstrapIcons(); 055 passed(); 056 } 057 058 @Test 059 public void testDemoBootstrapIconsNav() throws Exception { 060 testDemoBootstrapIcons(); 061 passed(); 062 } 063}