blob: e5aa82ec446869e2c718222ab971d463072ac11b (
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.layouts.layouttester;
import java.io.IOException;
import org.junit.Test;
import com.vaadin.testbench.elements.ButtonElement;
import com.vaadin.tests.tb3.MultiBrowserTest;
public abstract class BaseLayoutMarginSpacingTest extends MultiBrowserTest {
@Test
public void LayoutMarginSpacing() throws IOException, InterruptedException {
openTestURL();
sleep(500);
compareScreen("initial");
String[] states = { "marginOnSpaceOff", "marginOnSpaceOn",
"marginOffSpaceOn" };
ButtonElement marginBtn = $(ButtonElement.class).get(0);
ButtonElement spaceBtn = $(ButtonElement.class).get(1);
marginBtn.click();
sleep(1000);
compareScreen(states[0]);
spaceBtn.click();
sleep(1000);
compareScreen(states[1]);
marginBtn.click();
sleep(1000);
compareScreen(states[2]);
}
}
|