1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
|
package org.xwiki.administration.test.po; |
21 |
|
|
22 |
|
import org.openqa.selenium.WebElement; |
23 |
|
import org.openqa.selenium.support.FindBy; |
24 |
|
|
25 |
|
|
26 |
|
|
27 |
|
|
28 |
|
@version |
29 |
|
@since |
30 |
|
|
31 |
|
|
|
|
| 0% |
Uncovered Elements: 17 (17) |
Complexity: 8 |
Complexity Density: 0.89 |
|
32 |
|
public class AnnotationsPage extends AdministrationSectionPage |
33 |
|
{ |
34 |
|
@FindBy(id = "AnnotationCode.AnnotationConfig_AnnotationCode.AnnotationConfig_0_activated") |
35 |
|
private WebElement annotationsAreActivatedRadioYes; |
36 |
|
|
37 |
|
@FindBy(id = "AnnotationCode.AnnotationConfig_AnnotationCode.AnnotationConfig_0_activated_false") |
38 |
|
private WebElement annotationsAreActivatedRadioNo; |
39 |
|
|
40 |
|
@FindBy(id = "AnnotationCode.AnnotationConfig_AnnotationCode.AnnotationConfig_0_displayed") |
41 |
|
private WebElement displayAnnotationsByDefaultRadioYes; |
42 |
|
|
43 |
|
@FindBy(id = "AnnotationCode.AnnotationConfig_AnnotationCode.AnnotationConfig_0_displayed_false") |
44 |
|
private WebElement displayAnnotationsByDefaultRadioNo; |
45 |
|
|
46 |
|
@FindBy(id = "AnnotationCode.AnnotationConfig_AnnotationCode.AnnotationConfig_0_displayHighlight") |
47 |
|
private WebElement displayAnnotationsHighlightByDefaultRadioYes; |
48 |
|
|
49 |
|
@FindBy(id = "AnnotationCode.AnnotationConfig_AnnotationCode.AnnotationConfig_0_displayHighlight_false") |
50 |
|
private WebElement displayAnnotationsHighlightByDefaultRadioNo; |
51 |
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
52 |
0 |
public static AnnotationsPage gotoPage()... |
53 |
|
{ |
54 |
0 |
getUtil().gotoPage("XWiki", "XWikiPreferences", "admin", "section=Annotations"); |
55 |
0 |
return new AnnotationsPage(); |
56 |
|
} |
57 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
58 |
0 |
public AnnotationsPage()... |
59 |
|
{ |
60 |
0 |
super("Annotations"); |
61 |
|
} |
62 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
63 |
0 |
public void activateAnnotations()... |
64 |
|
{ |
65 |
0 |
this.annotationsAreActivatedRadioYes.click(); |
66 |
|
} |
67 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
68 |
0 |
public void deactivateAnnotations()... |
69 |
|
{ |
70 |
0 |
this.annotationsAreActivatedRadioNo.click(); |
71 |
|
} |
72 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
73 |
0 |
public void displayAnnotationsByDefault()... |
74 |
|
{ |
75 |
0 |
this.displayAnnotationsByDefaultRadioYes.click(); |
76 |
|
} |
77 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
78 |
0 |
public void hideAnnotationsByDefault()... |
79 |
|
{ |
80 |
0 |
this.displayAnnotationsByDefaultRadioNo.click(); |
81 |
|
} |
82 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
83 |
0 |
public void displayAnnotationsHighlightByDefault()... |
84 |
|
{ |
85 |
0 |
this.displayAnnotationsHighlightByDefaultRadioYes.click(); |
86 |
|
} |
87 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
88 |
0 |
public void hideAnnotationsHighlightByDefault()... |
89 |
|
{ |
90 |
0 |
this.displayAnnotationsHighlightByDefaultRadioNo.click(); |
91 |
|
} |
92 |
|
} |