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)); } }