|
1234567891011121314151617181920212223242526272829 |
- package com.vaadin.tests.components.datefield;
-
- import java.io.IOException;
-
- import org.junit.Test;
- import org.openqa.selenium.By;
-
- import com.vaadin.testbench.elements.AbstractDateFieldElement;
- import com.vaadin.tests.tb3.MultiBrowserTest;
-
- public class DateFieldPopupClosingOnDetachTest extends MultiBrowserTest {
-
- @Test
- public void testDateFieldPopupClosingLongClick()
- throws InterruptedException, IOException {
- openTestURL();
-
- // Open the DateField popup.
- AbstractDateFieldElement df = $(AbstractDateFieldElement.class).first();
- df.findElement(By.tagName("button")).click();
-
- // Test UI will remove the DateField after 1 second.
- waitForElementNotPresent(By.className("v-datefield"));
-
- // The popup should be also removed now.
- assertElementNotPresent(By.className("v-datefield-popup"));
- }
-
- }
|