001/**
002 * Copyright 2005-2016 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.kitchensink.compview;
017
018import org.junit.Ignore;
019import org.junit.Test;
020import org.kuali.rice.testtools.selenium.breadcrumb.BreadcrumbAftBase;
021
022/**
023 * @author Kuali Rice Team (rice.collab@kuali.org)
024 */
025public class LabsBreadcrumbAft extends BreadcrumbAftBase {
026
027    public static final String BOOKMARK_URL = "/kr-krad/uicomponents?viewId=UifCompView";
028
029    public static final String DOWN_TRIANGLE_XPATH = "(//a[@class='uif-breadcrumbSiblingLink'])";
030
031    @Override
032    protected String getBookmarkUrl() {
033        return BOOKMARK_URL;
034    }
035
036    @Override
037    protected void navigate() throws Exception {
038        waitAndClickByLinkText("Kitchen Sink");
039    }
040
041    @Override
042    protected String getTriangleXpath() {
043        return this.DOWN_TRIANGLE_XPATH;
044    }
045
046    @Test
047    @Override
048    public void testBreadcrumbBookmark() throws Exception {
049        testBreadcrumbs();
050        passed();
051    }
052
053    @Test
054    @Override
055    public void testBreadcrumbShuffledBookmark() throws Exception {
056        testBreadcrumbsShuffled();
057        passed();
058    }
059}