aboutsummaryrefslogtreecommitdiffstats
path: root/uitest/src/test/java/com/vaadin/tests/layouts/customlayout/DefaultLocationInCustomLayoutTest.java
blob: 08e323a322ef3c4c10d2b37049fe808734a15ed4 (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.layouts.customlayout;

import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.MatcherAssert.assertThat;

import org.junit.Test;
import org.openqa.selenium.By;

import com.vaadin.tests.tb3.MultiBrowserTest;

public class DefaultLocationInCustomLayoutTest extends MultiBrowserTest {

    @Test
    public void buttonExistsInLayout() {
        openTestURL();

        // We don't use TestBench's ElementQuery here because we need to check
        // the DOM for buttons existence.
        assertThat(
                driver.findElements(
                        By.id(DefaultLocationInCustomLayout.BUTTON_ID)).size(),
                is(1));
    }
}