aboutsummaryrefslogtreecommitdiffstats
path: root/uitest/src/test/java/com/vaadin/tests/components/ui/InitialFragmentEventTest.java
blob: 26a80bd3c0b92135200a9277294481700f4076ba (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
package com.vaadin.tests.components.ui;

import static org.junit.Assert.assertEquals;

import org.junit.Test;

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

public class InitialFragmentEventTest extends MultiBrowserTest {

    @Test
    public void testChangeFragmentOnServerToMatchClient() {
        openTestURL("#foo");

        assertEquals("Log should not contain any text initially", " ",
                getLogRow(0));

        $(ButtonElement.class).caption("Set fragment to 'foo'").first().click();

        assertEquals("Log should not contain any text after clicking button",
                " ", getLogRow(0));
    }
}