aboutsummaryrefslogtreecommitdiffstats
path: root/uitest/src/test/java/com/vaadin/tests/components/window/SubWindowWithUndefinedHeightTest.java
blob: 969cf283cada55f7557d29b73b3faf4bf60ee1cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package com.vaadin.tests.components.window;

import java.io.IOException;

import org.junit.Test;

import com.vaadin.testbench.elements.ButtonElement;
import com.vaadin.testbench.elements.TabSheetElement;
import com.vaadin.tests.tb3.MultiBrowserTest;

public class SubWindowWithUndefinedHeightTest extends MultiBrowserTest {

    @Test
    public void testUndefinedWindowSizeUpdate() throws IOException {
        openTestURL();

        $(ButtonElement.class).caption("click me").first().click();
        compareScreen("initial-tab1");

        $(TabSheetElement.class).first().openTab("tab 2");
        compareScreen("select-tab2");

        $(TabSheetElement.class).first().openTab("Tab 1");
        compareScreen("select-tab1");
    }
}