blob: 3846f9f23a25e0c3432e4b1ca01fcf88bd3abd91 (
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
32
|
package com.vaadin.tests.layouts.gridlayout;
import java.io.IOException;
import org.junit.Test;
import com.vaadin.testbench.elements.ButtonElement;
import com.vaadin.tests.tb3.MultiBrowserTest;
public class GridLayoutMoveComponentTest extends MultiBrowserTest {
@Test
public void componentsShouldMoveRight() throws IOException {
openTestURL();
compareScreen("all-left");
clickButtonWithCaption("Shift label right");
compareScreen("label-right");
clickButtonWithCaption("Shift button right");
compareScreen("label-button-right");
clickButtonWithCaption("Shift text field right");
compareScreen("label-button-textfield-right");
}
private void clickButtonWithCaption(String caption) {
$(ButtonElement.class).caption(caption).first().click();
}
}
|