1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
|
package org.xwiki.extension.test.po; |
21 |
|
|
22 |
|
import org.openqa.selenium.WebElement; |
23 |
|
import org.openqa.selenium.support.FindBy; |
24 |
|
import org.xwiki.test.ui.po.ViewPage; |
25 |
|
|
26 |
|
|
27 |
|
|
28 |
|
|
29 |
|
@version |
30 |
|
@since |
31 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (16) |
Complexity: 6 |
Complexity Density: 0.6 |
|
32 |
|
public class ExtensionAdministrationPage extends ViewPage |
33 |
|
{ |
34 |
|
|
35 |
|
|
36 |
|
|
37 |
|
@FindBy(linkText = "Add Extensions") |
38 |
|
private WebElement addExtensionsLink; |
39 |
|
|
40 |
|
|
41 |
|
|
42 |
|
|
43 |
|
@FindBy(linkText = "Installed Extensions") |
44 |
|
private WebElement installedExtensionsLink; |
45 |
|
|
46 |
|
|
47 |
|
|
48 |
|
|
49 |
|
@FindBy(linkText = "Core Extensions") |
50 |
|
private WebElement coreExtensionsLink; |
51 |
|
|
52 |
|
|
53 |
|
|
54 |
|
|
55 |
|
@return |
56 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
57 |
20 |
public static ExtensionAdministrationPage gotoPage()... |
58 |
|
{ |
59 |
20 |
getUtil().gotoPage("XWiki", "XWikiPreferences", "admin"); |
60 |
20 |
return new ExtensionAdministrationPage(); |
61 |
|
} |
62 |
|
|
63 |
|
|
64 |
|
@return |
65 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
66 |
23 |
public SimpleSearchPane getSearchBar()... |
67 |
|
{ |
68 |
23 |
return new SimpleSearchPane(); |
69 |
|
} |
70 |
|
|
71 |
|
|
72 |
|
@return |
73 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
74 |
7 |
public SearchResultsPane getSearchResults()... |
75 |
|
{ |
76 |
7 |
return new SearchResultsPane(); |
77 |
|
} |
78 |
|
|
79 |
|
|
80 |
|
|
81 |
|
|
82 |
|
@return |
83 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
84 |
10 |
public ExtensionAdministrationPage clickAddExtensionsSection()... |
85 |
|
{ |
86 |
10 |
addExtensionsLink.click(); |
87 |
10 |
return new ExtensionAdministrationPage(); |
88 |
|
} |
89 |
|
|
90 |
|
|
91 |
|
|
92 |
|
|
93 |
|
@return |
94 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
95 |
8 |
public ExtensionAdministrationPage clickInstalledExtensionsSection()... |
96 |
|
{ |
97 |
8 |
installedExtensionsLink.click(); |
98 |
8 |
return new ExtensionAdministrationPage(); |
99 |
|
} |
100 |
|
|
101 |
|
|
102 |
|
|
103 |
|
|
104 |
|
@return |
105 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
106 |
5 |
public ExtensionAdministrationPage clickCoreExtensionsSection()... |
107 |
|
{ |
108 |
5 |
coreExtensionsLink.click(); |
109 |
5 |
return new ExtensionAdministrationPage(); |
110 |
|
} |
111 |
|
} |