Skip to content
Browse files

[misc] Fixed/ignored tests that need updating

  • Loading branch information...
1 parent f8ed2b3 commit b1db01b85b6ace816b8744c0ea19fe86f17c37f0 @sdumitriu sdumitriu committed Aug 20, 2012
View
7 ...nterprise-test/xwiki-enterprise-test-ui/src/test/it/org/xwiki/test/ui/AttachmentTest.java
@@ -22,6 +22,7 @@
import org.apache.commons.lang.math.RandomUtils;
import org.junit.Assert;
import org.junit.Before;
+import org.junit.Ignore;
import org.junit.Test;
import org.openqa.selenium.By;
import org.xwiki.test.ui.browser.IgnoreBrowser;
@@ -53,6 +54,7 @@ public void setUp() throws Exception
}
@Test
+ @Ignore("WebDriver doesn't support uploading multiple files in one input, see http://code.google.com/p/selenium/issues/detail?id=2239")
@IgnoreBrowsers({
@IgnoreBrowser(value = "internet.*", version = "8\\.*", reason="See http://jira.xwiki.org/browse/XE-1146"),
@IgnoreBrowser(value = "internet.*", version = "9\\.*", reason="See http://jira.xwiki.org/browse/XE-1177")
@@ -104,11 +106,6 @@ public void testAttachAndViewGifImage()
// Attach the GIF image.
AttachmentsPane attachmentsPane = viewPage.openAttachmentsDocExtraPane();
attachmentsPane.setFileToUpload(getClass().getResource("/image.gif").getPath());
- attachmentsPane.clickAttachFiles();
- // clickAttachFiles should wait for the page to load but it doesn't..
- viewPage.waitUntilPageIsLoaded();
- // XWIKI-5896 shows that the file name becomes image.png
- attachmentsPane = viewPage.openAttachmentsDocExtraPane();
Assert.assertTrue(attachmentsPane.attachmentExistsByFileName("image.gif"));
}
}

1 comment on commit b1db01b

@vmassol
XWiki member

I think our best practice is to create a jira issue to not forget to fix this.

Please sign in to comment.
Something went wrong with that request. Please try again.