-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEditorTest.java
More file actions
44 lines (36 loc) · 1.36 KB
/
Copy pathEditorTest.java
File metadata and controls
44 lines (36 loc) · 1.36 KB
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
33
34
35
36
37
38
39
40
41
42
43
44
import org.junit.jupiter.api.Test;
class EditorTest extends BaseTest {
@Test
void shouldCanClickSimpleTool() throws InterruptedException {
onSite().editor().open(cfg.baseUrl()); //TODO make URL from config
editorStep.clickSimpleToolToolbarElement("Check");
}
@Test
void shouldCanOpenConstructor() throws InterruptedException {
onSite().editor().open(cfg.baseUrl()); //TODO make URL from config
editorStep.openConstructor();
constructorStep.clickSaveBtn();
}
@Test
void addFieldToGrid() throws InterruptedException {
onSite().editor().open(cfg.baseUrl()); //TODO make URL from config
editorStep.openConstructor();
int[][] grid = constructorStep.createGrid(10);
constructorStep.addField("Number", "Number1", grid);
constructorStep.addField("Text", "Text1", grid);
constructorStep.clickSaveBtn();
editorStep.enterTextToActiveField("123");
}
@Test
void changePageScale() throws InterruptedException {
onSite().editor().open(cfg.baseUrl()); //TODO make URL from config
editorStep.goToLastDocumentPage();
editorStep.setPercentPageScale("75");
}
@Test
void uploadDoc() throws InterruptedException {
onSite().open(cfg.mainUrl());
baseStep.uploadFile("test.pdf");
Thread.sleep(4000);
}
}