1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
|
package org.xwiki.test.selenium; |
21 |
|
|
22 |
|
import org.junit.After; |
23 |
|
import org.junit.Test; |
24 |
|
import org.xwiki.test.selenium.framework.AbstractXWikiTestCase; |
25 |
|
|
26 |
|
import static org.junit.Assert.*; |
27 |
|
|
28 |
|
|
29 |
|
|
30 |
|
|
31 |
|
@version |
32 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (12) |
Complexity: 2 |
Complexity Density: 0.2 |
|
33 |
|
public class SkinCustomizationsTest extends AbstractXWikiTestCase |
34 |
|
{ |
|
|
| 100% |
Uncovered Elements: 0 (4) |
Complexity: 1 |
Complexity Density: 0.25 |
|
35 |
1 |
@After... |
36 |
|
public void tearDown() |
37 |
|
{ |
38 |
|
|
39 |
1 |
openAdministrationPage(); |
40 |
1 |
clickLinkWithText("Presentation"); |
41 |
1 |
setFieldValue("XWiki.XWikiPreferences_0_stylesheet", "style.css"); |
42 |
1 |
clickEditSaveAndContinue(); |
43 |
|
} |
44 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (6) |
Complexity: 1 |
Complexity Density: 0.17 |
1PASS
|
|
45 |
1 |
@Test... |
46 |
|
public void testChangeDefaultStyleCss() throws Exception |
47 |
|
{ |
48 |
1 |
openAdministrationPage(); |
49 |
1 |
clickLinkWithText("Presentation"); |
50 |
|
|
51 |
|
|
52 |
1 |
setFieldValue("XWiki.XWikiPreferences_0_stylesheet", "less/style.less.vm"); |
53 |
1 |
clickEditSaveAndContinue(); |
54 |
1 |
open("Main", "WebHome"); |
55 |
1 |
assertTrue(getSelenium().isElementPresent( |
56 |
|
"xpath=//head/link[contains(@href,'/skin/skins/flamingo/less/style.less.vm')]")); |
57 |
|
|
58 |
|
} |
59 |
|
} |