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.By; |
23 |
|
import org.openqa.selenium.WebElement; |
24 |
|
import org.openqa.selenium.support.FindBy; |
25 |
|
import org.openqa.selenium.support.ui.Select; |
26 |
|
import org.xwiki.test.ui.po.BaseElement; |
27 |
|
import org.xwiki.test.ui.po.ChangesPane; |
28 |
|
|
29 |
|
|
30 |
|
|
31 |
|
|
32 |
|
@version |
33 |
|
@since |
34 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (12) |
Complexity: 5 |
Complexity Density: 0.71 |
|
35 |
|
public class MergeConflictPane extends BaseElement |
36 |
|
{ |
37 |
|
|
38 |
|
|
39 |
|
|
40 |
|
@FindBy(name = "versionToKeep") |
41 |
|
private WebElement versionToKeepSelect; |
42 |
|
|
43 |
|
|
44 |
|
|
45 |
|
|
46 |
|
@FindBy(name = "original") |
47 |
|
private WebElement fromVersionSelect; |
48 |
|
|
49 |
|
|
50 |
|
|
51 |
|
|
52 |
|
@FindBy(name = "revised") |
53 |
|
private WebElement toVersionSelect; |
54 |
|
|
55 |
|
|
56 |
|
|
57 |
|
|
58 |
|
@FindBy(xpath = "//button[@name = 'extensionAction' and @value = 'diff']") |
59 |
|
private WebElement diffButton; |
60 |
|
|
61 |
|
|
62 |
|
@return |
63 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
64 |
1 |
public Select getVersionToKeepSelect()... |
65 |
|
{ |
66 |
|
|
67 |
1 |
return new org.xwiki.test.ui.po.Select(versionToKeepSelect); |
68 |
|
} |
69 |
|
|
70 |
|
|
71 |
|
@return |
72 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
73 |
1 |
public Select getFromVersionSelect()... |
74 |
|
{ |
75 |
1 |
return new Select(fromVersionSelect); |
76 |
|
} |
77 |
|
|
78 |
|
|
79 |
|
@return |
80 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
81 |
1 |
public Select getToVersionSelect()... |
82 |
|
{ |
83 |
1 |
return new Select(toVersionSelect); |
84 |
|
} |
85 |
|
|
86 |
|
|
87 |
|
|
88 |
|
|
89 |
|
@return |
90 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (3) |
Complexity: 1 |
Complexity Density: 0.33 |
|
91 |
1 |
public MergeConflictPane clickShowChanges()... |
92 |
|
{ |
93 |
1 |
diffButton.click(); |
94 |
|
|
95 |
1 |
getDriver().waitUntilElementIsVisible( |
96 |
|
By.xpath("//button[@name = 'extensionAction' and @value = 'diff' and not(@disabled)]")); |
97 |
1 |
return new MergeConflictPane(); |
98 |
|
} |
99 |
|
|
100 |
|
|
101 |
|
@return |
102 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
103 |
2 |
public ChangesPane getChanges()... |
104 |
|
{ |
105 |
2 |
return new ChangesPane(); |
106 |
|
} |
107 |
|
} |