| 1 |
|
|
| 2 |
|
|
| 3 |
|
|
| 4 |
|
|
| 5 |
|
|
| 6 |
|
|
| 7 |
|
|
| 8 |
|
|
| 9 |
|
|
| 10 |
|
|
| 11 |
|
|
| 12 |
|
|
| 13 |
|
|
| 14 |
|
|
| 15 |
|
|
| 16 |
|
|
| 17 |
|
|
| 18 |
|
|
| 19 |
|
|
| 20 |
|
package org.xwiki.test.wysiwyg; |
| 21 |
|
|
| 22 |
|
import java.util.HashMap; |
| 23 |
|
import java.util.Map; |
| 24 |
|
|
| 25 |
|
import org.junit.runner.RunWith; |
| 26 |
|
import org.xwiki.repository.test.SolrTestUtils; |
| 27 |
|
import org.xwiki.test.ui.PageObjectSuite; |
| 28 |
|
import org.xwiki.test.ui.PersistentTestContext; |
| 29 |
|
|
| 30 |
|
|
| 31 |
|
|
| 32 |
|
|
| 33 |
|
@version |
| 34 |
|
|
| 35 |
|
@RunWith(PageObjectSuite.class) |
| |
|
| 100% |
Uncovered Elements: 0 (13) |
Complexity: 3 |
Complexity Density: 0.3 |
|
| 36 |
|
public class AllTests extends org.xwiki.test.selenium.AllTests |
| 37 |
|
{ |
| |
|
| 100% |
Uncovered Elements: 0 (4) |
Complexity: 1 |
Complexity Density: 0.25 |
|
| 38 |
1 |
@PageObjectSuite.PostStart... |
| 39 |
|
@Override |
| 40 |
|
public void postStart(PersistentTestContext context) throws Exception |
| 41 |
|
{ |
| 42 |
1 |
super.postStart(context); |
| 43 |
|
|
| 44 |
1 |
displayHiddenDocumentsForAdmin(context); |
| 45 |
1 |
enableAllEditingFeatures(context); |
| 46 |
|
|
| 47 |
1 |
new SolrTestUtils(context.getUtil()).waitEmpyQueue(); |
| 48 |
|
} |
| 49 |
|
|
| |
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
| 50 |
1 |
private void displayHiddenDocumentsForAdmin(PersistentTestContext context)... |
| 51 |
|
{ |
| 52 |
1 |
context.getUtil().loginAsAdmin(); |
| 53 |
1 |
context.getUtil().gotoPage("XWiki", "Admin", "save", "XWiki.XWikiUsers_0_displayHiddenDocuments=1"); |
| 54 |
|
} |
| 55 |
|
|
| |
|
| 100% |
Uncovered Elements: 0 (4) |
Complexity: 1 |
Complexity Density: 0.25 |
|
| 56 |
1 |
private void enableAllEditingFeatures(PersistentTestContext context)... |
| 57 |
|
{ |
| 58 |
1 |
Map<String, String> params = new HashMap<>(); |
| 59 |
1 |
params.put("XWiki.WysiwygEditorConfigClass_0_plugins", |
| 60 |
|
"submit readonly line separator embed text valign list " |
| 61 |
|
+ "indent history format symbol link image " + "table macro import color justify font"); |
| 62 |
1 |
params.put("XWiki.WysiwygEditorConfigClass_0_toolBar", |
| 63 |
|
"bold italic underline strikethrough teletype | subscript superscript | " |
| 64 |
|
+ "justifyleft justifycenter justifyright justifyfull | unorderedlist orderedlist | outdent indent | " |
| 65 |
|
+ "undo redo | format | fontname fontsize forecolor backcolor | hr removeformat symbol | " |
| 66 |
|
+ " paste | macro:velocity"); |
| 67 |
1 |
context.getUtil().gotoPage("XWiki", "WysiwygEditorConfig", "save", params); |
| 68 |
|
} |
| 69 |
|
} |