aboutsummaryrefslogtreecommitdiffstats
path: root/uitest/src/test/java/com/vaadin/tests/application/RefreshStatePreserveTitleTest.java
blob: 48ff4c08440b2ed8c4bb4c9880df8bd191de8c36 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package com.vaadin.tests.application;

import static org.junit.Assert.assertEquals;

import org.junit.Test;

import com.vaadin.tests.tb3.MultiBrowserTest;

public class RefreshStatePreserveTitleTest extends MultiBrowserTest {
    @Test
    public void testReloadingPageDoesNotResetTitle() throws Exception {
        openTestURL();
        assertTitleText();
        openTestURL();
        assertTitleText();
    }

    private void assertTitleText() {
        assertEquals("Incorrect page title,", "TEST", driver.getTitle());
    }
}