blob: 7e1fefe2060bd94583f69cedc13d83e15e756ca2 (
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
25
26
27
28
29
30
31
|
package com.vaadin.tests.components.datefield;
import static org.junit.Assert.assertTrue;
import org.openqa.selenium.WebElement;
import com.vaadin.testbench.elements.DateFieldElement;
/**
* Test for date field popup calendar position in reindeer theme.
*
* Test method is defined in super class.
*
* @author Vaadin Ltd
*/
public class ReindeerDateFieldPopupPositionTest
extends DateFieldPopupPositionTest {
@Override
protected void checkPopupPosition() {
DateFieldElement field = $(DateFieldElement.class).first();
int right = field.getLocation().getX() + field.getSize().getWidth();
WebElement popup = getPopup();
assertTrue(
"Calendar popup has wrong X coordinate="
+ popup.getLocation().getX()
+ " , right side of the field is " + right,
popup.getLocation().getX() >= right);
}
}
|