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

public class DataLocationInCustomLayoutTest extends SingleBrowserTest {

    @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(DataLocationInCustomLayout.BUTTON_ID))
                        .size(),
                is(1));
    }
}