aboutsummaryrefslogtreecommitdiffstats
path: root/uitest/src/test/java/com/vaadin/tests/components/popupview/PopupViewAndFragmentTest.java
blob: 79baa4ab1ea195f0d3e26f25969e94621cb6143d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package com.vaadin.tests.components.popupview;

import org.junit.Test;

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

public class PopupViewAndFragmentTest extends MultiBrowserTest {

    @Test
    public void changeFragmentAndOpenPopupView() throws Exception {
        openTestURL();
        $(ButtonElement.class).first().click();
        // Wait for popup view to fully open
        sleep(1000);
        compareScreen("changedFragment");
    }
}