-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSimpleToolTest.java
More file actions
30 lines (23 loc) · 873 Bytes
/
Copy pathSimpleToolTest.java
File metadata and controls
30 lines (23 loc) · 873 Bytes
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
import com.pdffiller.utils.MyCustomExt;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import step.EditorStep;
import static matchers.CssAttributeMatcher.assertThatCssAttribute;
import static org.hamcrest.core.Is.is;
@ExtendWith( MyCustomExt.class)
public class SimpleToolTest extends BaseTest{
@BeforeEach
void setUp() {
onSite().open(cfg.mainUrl());
baseStep.uploadFile("test.pdf");
editorStep.waitForDocumentOpen();
}
@Test
void shouldCanChangeSimpleToolColor() throws InterruptedException{
int[][] grid = constructorStep.createGrid(10);
editorStep.addSimpleTool("Cross", "cross1", grid);
editorStep.setColorOnToolbar("Red");
assertThatCssAttribute(editorStep.getElementColor("Cross"), is("Red"));
}
}