Skip to content
Snippets Groups Projects
Unverified Commit f68480ea authored by Oana-Lavinia Florean's avatar Oana-Lavinia Florean Committed by GitHub
Browse files

XWIKI-20092: Enable the lightbox view for images by default (#1918)

parent c8b5bca2
No related branches found
No related tags found
No related merge requests found
...@@ -46,15 +46,17 @@ ...@@ -46,15 +46,17 @@
/** /**
* Functional tests for the image lightbox. * Functional tests for the image lightbox.
* *
* @version $Id$ * @version $Id$
* @since 14.1RC1 * @since 14.1RC1
*/ */
@UITest(properties = { @UITest(properties = {
// Add the FileUploadPlugin which is needed by the test to upload attachment files // Add the FileUploadPlugin which is needed by the test to upload attachment files
"xwikiCfgPlugins=com.xpn.xwiki.plugin.fileupload.FileUploadPlugin"}) "xwikiCfgPlugins=com.xpn.xwiki.plugin.fileupload.FileUploadPlugin" })
class LightboxIT class LightboxIT
{ {
private static final String USER_NAME = "JohnDoe";
private static final DocumentReference LIGHTBOX_CONFIGURATION_REFERENCE = private static final DocumentReference LIGHTBOX_CONFIGURATION_REFERENCE =
new DocumentReference("xwiki", Arrays.asList("XWiki", "Lightbox"), "LightboxConfiguration"); new DocumentReference("xwiki", Arrays.asList("XWiki", "Lightbox"), "LightboxConfiguration");
...@@ -62,8 +64,6 @@ class LightboxIT ...@@ -62,8 +64,6 @@ class LightboxIT
private static final List<String> IMAGES = Arrays.asList("image1.png", "image2.png", "missingImage.png"); private static final List<String> IMAGES = Arrays.asList("image1.png", "image2.png", "missingImage.png");
public static final String USER_NAME = "JohnDoe";
@BeforeAll @BeforeAll
void beforeAll(TestUtils testUtils) void beforeAll(TestUtils testUtils)
{ {
......
...@@ -312,7 +312,7 @@ ...@@ -312,7 +312,7 @@
<validationScript/> <validationScript/>
<isLightboxEnabled> <isLightboxEnabled>
<customDisplay/> <customDisplay/>
<defaultValue>0</defaultValue> <defaultValue>1</defaultValue>
<disabled>0</disabled> <disabled>0</disabled>
<displayFormType>select</displayFormType> <displayFormType>select</displayFormType>
<displayType/> <displayType/>
...@@ -327,7 +327,7 @@ ...@@ -327,7 +327,7 @@
</isLightboxEnabled> </isLightboxEnabled>
</class> </class>
<property> <property>
<isLightboxEnabled>0</isLightboxEnabled> <isLightboxEnabled>1</isLightboxEnabled>
</property> </property>
</object> </object>
</xwikidoc> </xwikidoc>
...@@ -48,7 +48,7 @@ ...@@ -48,7 +48,7 @@
<validationScript/> <validationScript/>
<isLightboxEnabled> <isLightboxEnabled>
<customDisplay/> <customDisplay/>
<defaultValue>0</defaultValue> <defaultValue>1</defaultValue>
<disabled>0</disabled> <disabled>0</disabled>
<displayFormType>select</displayFormType> <displayFormType>select</displayFormType>
<displayType/> <displayType/>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment