| 1 |
|
|
| 2 |
|
|
| 3 |
|
|
| 4 |
|
|
| 5 |
|
|
| 6 |
|
|
| 7 |
|
|
| 8 |
|
|
| 9 |
|
|
| 10 |
|
|
| 11 |
|
|
| 12 |
|
|
| 13 |
|
|
| 14 |
|
|
| 15 |
|
|
| 16 |
|
|
| 17 |
|
|
| 18 |
|
|
| 19 |
|
|
| 20 |
|
package org.xwiki.test.ui.po; |
| 21 |
|
|
| 22 |
|
import org.openqa.selenium.By; |
| 23 |
|
import org.openqa.selenium.WebElement; |
| 24 |
|
import org.openqa.selenium.support.FindBy; |
| 25 |
|
|
| 26 |
|
|
| 27 |
|
|
| 28 |
|
|
| 29 |
|
|
| 30 |
|
@version |
| 31 |
|
@since |
| 32 |
|
@since |
| 33 |
|
|
| |
|
| 72.7% |
Uncovered Elements: 3 (11) |
Complexity: 4 |
Complexity Density: 0.57 |
|
| 34 |
|
public class CopyOrRenameStatusPage extends BasePage |
| 35 |
|
{ |
| 36 |
|
@FindBy(css = ".job-status .col-lg-6:first-child .breadcrumb > li:last-child a") |
| 37 |
|
private WebElement oldPage; |
| 38 |
|
|
| 39 |
|
@FindBy(css = ".job-status .col-lg-6:last-child .breadcrumb > li:last-child a") |
| 40 |
|
private WebElement newPage; |
| 41 |
|
|
| 42 |
|
@FindBy(css = ".box.successmessage, .box.errormessage") |
| 43 |
|
private WebElement message; |
| 44 |
|
|
| 45 |
|
|
| 46 |
|
|
| 47 |
|
|
| 48 |
|
@return |
| 49 |
|
|
| |
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
| 50 |
4 |
public CopyOrRenameStatusPage waitUntilFinished()... |
| 51 |
|
{ |
| 52 |
4 |
getDriver().waitUntilElementDisappears(By.cssSelector(".job-status .ui-progress")); |
| 53 |
4 |
return this; |
| 54 |
|
} |
| 55 |
|
|
| |
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
| 56 |
0 |
public ViewPage gotoOriginalPage()... |
| 57 |
|
{ |
| 58 |
0 |
this.oldPage.click(); |
| 59 |
0 |
return new ViewPage(); |
| 60 |
|
} |
| 61 |
|
|
| |
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
| 62 |
2 |
public ViewPage gotoNewPage()... |
| 63 |
|
{ |
| 64 |
2 |
this.newPage.click(); |
| 65 |
2 |
return new ViewPage(); |
| 66 |
|
} |
| 67 |
|
|
| |
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 68 |
3 |
public String getInfoMessage()... |
| 69 |
|
{ |
| 70 |
3 |
return this.message.getText(); |
| 71 |
|
} |
| 72 |
|
} |