1 package com.vaadin.v7.tests.components.grid.basicfeatures.server;
3 import java.io.IOException;
6 import org.openqa.selenium.interactions.Actions;
8 import com.vaadin.v7.tests.components.grid.basicfeatures.GridBasicFeaturesTest;
9 import com.vaadin.v7.tests.components.grid.basicfeatures.GridSidebarFeatures;
11 public class GridSidebarThemeTest extends GridBasicFeaturesTest {
14 public void testValo() throws Exception {
15 runTestSequence("valo");
19 public void testValoDark() throws Exception {
20 runTestSequence("tests-valo-dark");
24 protected Class<?> getUIClass() {
25 return GridSidebarFeatures.class;
28 private void runTestSequence(String theme) throws IOException {
29 openTestURL("theme=" + theme);
31 compareScreen(theme + "-SidebarClosed");
32 getSidebarOpenButton().click();
34 compareScreen(theme + "-SidebarOpen");
36 new Actions(getDriver()).moveToElement(getColumnHidingToggle(2), 5, 5)
39 compareScreen(theme + "-OnMouseOverNotHiddenToggle");
41 getColumnHidingToggle(2).click();
42 getColumnHidingToggle(3).click();
43 getColumnHidingToggle(6).click();
45 new Actions(getDriver()).moveToElement(getSidebarOpenButton())
49 compareScreen(theme + "-TogglesTriggered");
51 new Actions(getDriver()).moveToElement(getColumnHidingToggle(2))
55 compareScreen(theme + "-OnMouseOverHiddenToggle");
57 getSidebarOpenButton().click();
59 compareScreen(theme + "-SidebarClosed2");