Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Test Fixes - portal/dbupgrade/sampledatalatest/documentlibrary

  • Loading branch information...
commit b3381361ae452e97dafd356acdc3a39bb05e1030 1 parent 3b06cd3
@brianchiu brianchiu authored brianchandotcom committed
Showing with 84 additions and 102 deletions.
  1. +4 −4 ...dbupgrade/sampledatalatest/documentlibrary/pagescope/ConfigurePage2PortletDLScopeLayoutCurrentPageTest.html
  2. +3 −3 ...dbupgrade/sampledatalatest/documentlibrary/pagescope/ConfigurePage2PortletDLScopeLayoutCurrentPageTest.java
  3. +4 −4 ...ortal/dbupgrade/sampledatalatest/documentlibrary/pagescope/ConfigurePage3PortletDLScopeLayoutPage2Test.html
  4. +3 −3 ...ortal/dbupgrade/sampledatalatest/documentlibrary/pagescope/ConfigurePage3PortletDLScopeLayoutPage2Test.java
  5. +2 −2 ...feray/portalweb/portal/dbupgrade/sampledatalatest/documentlibrary/pagescope/Guest_ViewPage2Folder2Test.html
  6. +2 −4 ...feray/portalweb/portal/dbupgrade/sampledatalatest/documentlibrary/pagescope/Guest_ViewPage2Folder2Test.java
  7. +2 −2 ...feray/portalweb/portal/dbupgrade/sampledatalatest/documentlibrary/pagescope/Guest_ViewPage2Folder3Test.html
  8. +2 −2 ...feray/portalweb/portal/dbupgrade/sampledatalatest/documentlibrary/pagescope/Guest_ViewPage2Folder3Test.java
  9. +2 −2 ...feray/portalweb/portal/dbupgrade/sampledatalatest/documentlibrary/pagescope/Guest_ViewPage2Folder4Test.html
  10. +2 −2 ...feray/portalweb/portal/dbupgrade/sampledatalatest/documentlibrary/pagescope/Guest_ViewPage2Folder4Test.java
  11. +2 −2 ...feray/portalweb/portal/dbupgrade/sampledatalatest/documentlibrary/pagescope/Guest_ViewPage2Folder5Test.html
  12. +2 −2 ...feray/portalweb/portal/dbupgrade/sampledatalatest/documentlibrary/pagescope/Guest_ViewPage2Folder5Test.java
  13. +2 −2 ...feray/portalweb/portal/dbupgrade/sampledatalatest/documentlibrary/pagescope/Guest_ViewPage2Folder6Test.html
  14. +2 −2 ...feray/portalweb/portal/dbupgrade/sampledatalatest/documentlibrary/pagescope/Guest_ViewPage2Folder6Test.java
  15. +2 −2 ...feray/portalweb/portal/dbupgrade/sampledatalatest/documentlibrary/pagescope/Guest_ViewPage2Folder7Test.html
  16. +2 −3 ...feray/portalweb/portal/dbupgrade/sampledatalatest/documentlibrary/pagescope/Guest_ViewPage2Folder7Test.java
  17. +2 −3 .../portalweb/portal/dbupgrade/sampledatalatest/documentlibrary/pagescope/ViewPage1DLFolder1Document1Test.html
  18. +2 −4 .../portalweb/portal/dbupgrade/sampledatalatest/documentlibrary/pagescope/ViewPage1DLFolder1Document1Test.java
  19. +1 −1  ...m/liferay/portalweb/portal/dbupgrade/sampledatalatest/documentlibrary/pagescope/ViewPage1DLFolder1Test.html
  20. +1 −2  ...m/liferay/portalweb/portal/dbupgrade/sampledatalatest/documentlibrary/pagescope/ViewPage1DLFolder1Test.java
  21. +4 −5 .../portalweb/portal/dbupgrade/sampledatalatest/documentlibrary/pagescope/ViewPage2DLFolder2Document2Test.html
  22. +4 −8 .../portalweb/portal/dbupgrade/sampledatalatest/documentlibrary/pagescope/ViewPage2DLFolder2Document2Test.java
  23. +4 −5 .../portalweb/portal/dbupgrade/sampledatalatest/documentlibrary/pagescope/ViewPage2DLFolder2Document3Test.html
  24. +4 −6 .../portalweb/portal/dbupgrade/sampledatalatest/documentlibrary/pagescope/ViewPage2DLFolder2Document3Test.java
  25. +2 −2 ...m/liferay/portalweb/portal/dbupgrade/sampledatalatest/documentlibrary/pagescope/ViewPage2DLFolder2Test.html
  26. +2 −4 ...m/liferay/portalweb/portal/dbupgrade/sampledatalatest/documentlibrary/pagescope/ViewPage2DLFolder2Test.java
  27. +2 −2 ...m/liferay/portalweb/portal/dbupgrade/sampledatalatest/documentlibrary/pagescope/ViewPage2DLFolder3Test.html
  28. +2 −2 ...m/liferay/portalweb/portal/dbupgrade/sampledatalatest/documentlibrary/pagescope/ViewPage2DLFolder3Test.java
  29. +2 −2 ...m/liferay/portalweb/portal/dbupgrade/sampledatalatest/documentlibrary/pagescope/ViewPage2DLFolder4Test.html
  30. +2 −2 ...m/liferay/portalweb/portal/dbupgrade/sampledatalatest/documentlibrary/pagescope/ViewPage2DLFolder4Test.java
  31. +2 −2 ...m/liferay/portalweb/portal/dbupgrade/sampledatalatest/documentlibrary/pagescope/ViewPage2DLFolder5Test.html
  32. +2 −2 ...m/liferay/portalweb/portal/dbupgrade/sampledatalatest/documentlibrary/pagescope/ViewPage2DLFolder5Test.java
  33. +2 −2 ...m/liferay/portalweb/portal/dbupgrade/sampledatalatest/documentlibrary/pagescope/ViewPage2DLFolder6Test.html
  34. +2 −2 ...m/liferay/portalweb/portal/dbupgrade/sampledatalatest/documentlibrary/pagescope/ViewPage2DLFolder6Test.java
  35. +2 −2 ...m/liferay/portalweb/portal/dbupgrade/sampledatalatest/documentlibrary/pagescope/ViewPage2DLFolder7Test.html
  36. +2 −3 ...m/liferay/portalweb/portal/dbupgrade/sampledatalatest/documentlibrary/pagescope/ViewPage2DLFolder7Test.java
View
8 ...talatest/documentlibrary/pagescope/ConfigurePage2PortletDLScopeLayoutCurrentPageTest.html
@@ -86,17 +86,17 @@
<tr>
<td>select</td>
<td>//select[@id='_86_scopeType']</td>
- <td>Select Layout</td>
+ <td>Select Page</td>
</tr>
<tr>
<td>waitForVisible</td>
<td>//label[@for='scopeLayoutUuid']</td>
- <td>Scope Layout</td>
+ <td>Scope Page</td>
</tr>
<tr>
<td>assertText</td>
<td>//label[@for='scopeLayoutUuid']</td>
- <td>Scope Layout</td>
+ <td>Scope Page</td>
</tr>
<tr>
<td>select</td>
@@ -116,7 +116,7 @@
<tr>
<td>assertSelectedLabel</td>
<td>//select[@id='_86_scopeType']</td>
- <td>Select Layout</td>
+ <td>Select Page</td>
</tr>
<tr>
<td>assertSelectedLabel</td>
View
6 ...talatest/documentlibrary/pagescope/ConfigurePage2PortletDLScopeLayoutCurrentPageTest.java
@@ -134,7 +134,7 @@ public void testConfigurePage2PortletDLScopeLayoutCurrentPage()
assertEquals(RuntimeVariables.replace("Scope"),
selenium.getText("//label[@for='scopeType']"));
selenium.select("//select[@id='_86_scopeType']",
- RuntimeVariables.replace("Select Layout"));
+ RuntimeVariables.replace("Select Page"));
for (int second = 0;; second++) {
if (second >= 90) {
@@ -152,7 +152,7 @@ public void testConfigurePage2PortletDLScopeLayoutCurrentPage()
Thread.sleep(1000);
}
- assertEquals(RuntimeVariables.replace("Scope Layout"),
+ assertEquals(RuntimeVariables.replace("Scope Page"),
selenium.getText("//label[@for='scopeLayoutUuid']"));
selenium.select("//select[@id='_86_scopeLayoutUuid']",
RuntimeVariables.replace("Current Page (DL Page2 Name)"));
@@ -163,7 +163,7 @@ public void testConfigurePage2PortletDLScopeLayoutCurrentPage()
assertEquals(RuntimeVariables.replace(
"You have successfully updated the setup."),
selenium.getText("//div[@class='portlet-msg-success']"));
- assertEquals("Select Layout",
+ assertEquals("Select Page",
selenium.getSelectedLabel("//select[@id='_86_scopeType']"));
assertEquals("Current Page (DL Page2 Name)",
selenium.getSelectedLabel("//select[@id='_86_scopeLayoutUuid']"));
View
8 ...mpledatalatest/documentlibrary/pagescope/ConfigurePage3PortletDLScopeLayoutPage2Test.html
@@ -86,17 +86,17 @@
<tr>
<td>select</td>
<td>//select[@id='_86_scopeType']</td>
- <td>Select Layout</td>
+ <td>Select Page</td>
</tr>
<tr>
<td>waitForVisible</td>
<td>//label[@for='scopeLayoutUuid']</td>
- <td>Scope Layout</td>
+ <td>Scope Page</td>
</tr>
<tr>
<td>assertText</td>
<td>//label[@for='scopeLayoutUuid']</td>
- <td>Scope Layout</td>
+ <td>Scope Page</td>
</tr>
<tr>
<td>select</td>
@@ -116,7 +116,7 @@
<tr>
<td>assertSelectedLabel</td>
<td>//select[@id='_86_scopeType']</td>
- <td>Select Layout</td>
+ <td>Select Page</td>
</tr>
<tr>
<td>assertSelectedLabel</td>
View
6 ...mpledatalatest/documentlibrary/pagescope/ConfigurePage3PortletDLScopeLayoutPage2Test.java
@@ -133,7 +133,7 @@ public void testConfigurePage3PortletDLScopeLayoutPage2()
assertEquals(RuntimeVariables.replace("Scope"),
selenium.getText("//label[@for='scopeType']"));
selenium.select("//select[@id='_86_scopeType']",
- RuntimeVariables.replace("Select Layout"));
+ RuntimeVariables.replace("Select Page"));
for (int second = 0;; second++) {
if (second >= 90) {
@@ -151,7 +151,7 @@ public void testConfigurePage3PortletDLScopeLayoutPage2()
Thread.sleep(1000);
}
- assertEquals(RuntimeVariables.replace("Scope Layout"),
+ assertEquals(RuntimeVariables.replace("Scope Page"),
selenium.getText("//label[@for='scopeLayoutUuid']"));
selenium.select("//select[@id='_86_scopeLayoutUuid']",
RuntimeVariables.replace("DL Page2 Name"));
@@ -162,7 +162,7 @@ public void testConfigurePage3PortletDLScopeLayoutPage2()
assertEquals(RuntimeVariables.replace(
"You have successfully updated the setup."),
selenium.getText("//div[@class='portlet-msg-success']"));
- assertEquals("Select Layout",
+ assertEquals("Select Page",
selenium.getSelectedLabel("//select[@id='_86_scopeType']"));
assertEquals("DL Page2 Name",
selenium.getSelectedLabel("//select[@id='_86_scopeLayoutUuid']"));
View
4 ...rtal/dbupgrade/sampledatalatest/documentlibrary/pagescope/Guest_ViewPage2Folder2Test.html
@@ -35,7 +35,7 @@
</tr>
<tr>
<td>assertVisible</td>
- <td>//img[@src='/html/themes/classic/images/file_system/large/folder_full_document.png']</td>
+ <td>//span[@class='document-thumbnail']/img</td>
<td>Folder Image</td>
</tr>
<tr>
@@ -105,7 +105,7 @@
</tr>
<tr>
<td>assertVisible</td>
- <td>//img[@src='/html/themes/classic/images/file_system/large/folder_full_document.png']</td>
+ <td>//span[@class='document-thumbnail']/img</td>
<td>Folder Image</td>
</tr>
<tr>
View
6 ...rtal/dbupgrade/sampledatalatest/documentlibrary/pagescope/Guest_ViewPage2Folder2Test.java
@@ -68,8 +68,7 @@ public void testGuest_ViewPage2Folder2() throws Exception {
assertEquals(RuntimeVariables.replace(
"Documents and Media (DL Page2 Name)"),
selenium.getText("//span[@class='portlet-title-text']"));
- assertTrue(selenium.isVisible(
- "//img[@src='/html/themes/classic/images/file_system/large/folder_full_document.png']"));
+ assertTrue(selenium.isVisible("//span[@class='document-thumbnail']/img"));
assertEquals(RuntimeVariables.replace("DL Folder2 Name"),
selenium.getText(
"//a[contains(@class,'document-link')]/span[@class='entry-title']"));
@@ -153,8 +152,7 @@ public void testGuest_ViewPage2Folder2() throws Exception {
assertEquals(RuntimeVariables.replace(
"Documents and Media (DL Page2 Name)"),
selenium.getText("//span[@class='portlet-title-text']"));
- assertTrue(selenium.isVisible(
- "//img[@src='/html/themes/classic/images/file_system/large/folder_full_document.png']"));
+ assertTrue(selenium.isVisible("//span[@class='document-thumbnail']/img"));
assertEquals(RuntimeVariables.replace("DL Folder2 Name"),
selenium.getText(
"//a[contains(@class,'document-link')]/span[@class='entry-title']"));
View
4 ...rtal/dbupgrade/sampledatalatest/documentlibrary/pagescope/Guest_ViewPage2Folder3Test.html
@@ -35,7 +35,7 @@
</tr>
<tr>
<td>assertVisible</td>
- <td>//img[@src='/html/themes/classic/images/file_system/large/folder_empty.png']</td>
+ <td>xPath=(//span[@class='document-thumbnail']/img)[2]</td>
<td>Folder Image</td>
</tr>
<tr>
@@ -105,7 +105,7 @@
</tr>
<tr>
<td>assertVisible</td>
- <td>//img[@src='/html/themes/classic/images/file_system/large/folder_empty.png']</td>
+ <td>xPath=(//span[@class='document-thumbnail']/img)[2]</td>
<td>Folder Image</td>
</tr>
<tr>
View
4 ...rtal/dbupgrade/sampledatalatest/documentlibrary/pagescope/Guest_ViewPage2Folder3Test.java
@@ -69,7 +69,7 @@ public void testGuest_ViewPage2Folder3() throws Exception {
"Documents and Media (DL Page2 Name)"),
selenium.getText("//span[@class='portlet-title-text']"));
assertTrue(selenium.isVisible(
- "//img[@src='/html/themes/classic/images/file_system/large/folder_empty.png']"));
+ "xPath=(//span[@class='document-thumbnail']/img)[2]"));
assertEquals(RuntimeVariables.replace("DL Folder3 Name"),
selenium.getText(
"xPath=(//a[contains(@class,'document-link')]/span[@class='entry-title'])[2]"));
@@ -154,7 +154,7 @@ public void testGuest_ViewPage2Folder3() throws Exception {
"Documents and Media (DL Page2 Name)"),
selenium.getText("//span[@class='portlet-title-text']"));
assertTrue(selenium.isVisible(
- "//img[@src='/html/themes/classic/images/file_system/large/folder_empty.png']"));
+ "xPath=(//span[@class='document-thumbnail']/img)[2]"));
assertEquals(RuntimeVariables.replace("DL Folder3 Name"),
selenium.getText(
"xPath=(//a[contains(@class,'document-link')]/span[@class='entry-title'])[2]"));
View
4 ...rtal/dbupgrade/sampledatalatest/documentlibrary/pagescope/Guest_ViewPage2Folder4Test.html
@@ -35,7 +35,7 @@
</tr>
<tr>
<td>assertVisible</td>
- <td>xPath=(//img[@src='/html/themes/classic/images/file_system/large/folder_empty.png'])[2]</td>
+ <td>xPath=(//span[@class='document-thumbnail']/img)[3]</td>
<td>Folder Image</td>
</tr>
<tr>
@@ -105,7 +105,7 @@
</tr>
<tr>
<td>assertVisible</td>
- <td>xPath=(//img[@src='/html/themes/classic/images/file_system/large/folder_empty.png'])[2]</td>
+ <td>xPath=(//span[@class='document-thumbnail']/img)[3]</td>
<td>Folder Image</td>
</tr>
<tr>
View
4 ...rtal/dbupgrade/sampledatalatest/documentlibrary/pagescope/Guest_ViewPage2Folder4Test.java
@@ -69,7 +69,7 @@ public void testGuest_ViewPage2Folder4() throws Exception {
"Documents and Media (DL Page2 Name)"),
selenium.getText("//span[@class='portlet-title-text']"));
assertTrue(selenium.isVisible(
- "xPath=(//img[@src='/html/themes/classic/images/file_system/large/folder_empty.png'])[2]"));
+ "xPath=(//span[@class='document-thumbnail']/img)[3]"));
assertEquals(RuntimeVariables.replace("DL Folder4 Name"),
selenium.getText(
"xPath=(//a[contains(@class,'document-link')]/span[@class='entry-title'])[3]"));
@@ -154,7 +154,7 @@ public void testGuest_ViewPage2Folder4() throws Exception {
"Documents and Media (DL Page2 Name)"),
selenium.getText("//span[@class='portlet-title-text']"));
assertTrue(selenium.isVisible(
- "xPath=(//img[@src='/html/themes/classic/images/file_system/large/folder_empty.png'])[2]"));
+ "xPath=(//span[@class='document-thumbnail']/img)[3]"));
assertEquals(RuntimeVariables.replace("DL Folder4 Name"),
selenium.getText(
"xPath=(//a[contains(@class,'document-link')]/span[@class='entry-title'])[3]"));
View
4 ...rtal/dbupgrade/sampledatalatest/documentlibrary/pagescope/Guest_ViewPage2Folder5Test.html
@@ -35,7 +35,7 @@
</tr>
<tr>
<td>assertVisible</td>
- <td>xPath=(//img[@src='/html/themes/classic/images/file_system/large/folder_empty.png'])[3]</td>
+ <td>xPath=(//span[@class='document-thumbnail']/img)[4]</td>
<td>Folder Image</td>
</tr>
<tr>
@@ -105,7 +105,7 @@
</tr>
<tr>
<td>assertVisible</td>
- <td>xPath=(//img[@src='/html/themes/classic/images/file_system/large/folder_empty.png'])[3]</td>
+ <td>xPath=(//span[@class='document-thumbnail']/img)[4]</td>
<td>Folder Image</td>
</tr>
<tr>
View
4 ...rtal/dbupgrade/sampledatalatest/documentlibrary/pagescope/Guest_ViewPage2Folder5Test.java
@@ -69,7 +69,7 @@ public void testGuest_ViewPage2Folder5() throws Exception {
"Documents and Media (DL Page2 Name)"),
selenium.getText("//span[@class='portlet-title-text']"));
assertTrue(selenium.isVisible(
- "xPath=(//img[@src='/html/themes/classic/images/file_system/large/folder_empty.png'])[3]"));
+ "xPath=(//span[@class='document-thumbnail']/img)[4]"));
assertEquals(RuntimeVariables.replace("DL Folder5 Name"),
selenium.getText(
"xPath=(//a[contains(@class,'document-link')]/span[@class='entry-title'])[4]"));
@@ -154,7 +154,7 @@ public void testGuest_ViewPage2Folder5() throws Exception {
"Documents and Media (DL Page2 Name)"),
selenium.getText("//span[@class='portlet-title-text']"));
assertTrue(selenium.isVisible(
- "xPath=(//img[@src='/html/themes/classic/images/file_system/large/folder_empty.png'])[3]"));
+ "xPath=(//span[@class='document-thumbnail']/img)[4]"));
assertEquals(RuntimeVariables.replace("DL Folder5 Name"),
selenium.getText(
"xPath=(//a[contains(@class,'document-link')]/span[@class='entry-title'])[4]"));
View
4 ...rtal/dbupgrade/sampledatalatest/documentlibrary/pagescope/Guest_ViewPage2Folder6Test.html
@@ -35,7 +35,7 @@
</tr>
<tr>
<td>assertVisible</td>
- <td>xPath=(//img[@src='/html/themes/classic/images/file_system/large/folder_empty.png'])[4]</td>
+ <td>xPath=(//span[@class='document-thumbnail']/img)[5]</td>
<td>Folder Image</td>
</tr>
<tr>
@@ -105,7 +105,7 @@
</tr>
<tr>
<td>assertVisible</td>
- <td>xPath=(//img[@src='/html/themes/classic/images/file_system/large/folder_empty.png'])[4]</td>
+ <td>xPath=(//span[@class='document-thumbnail']/img)[5]</td>
<td>Folder Image</td>
</tr>
<tr>
View
4 ...rtal/dbupgrade/sampledatalatest/documentlibrary/pagescope/Guest_ViewPage2Folder6Test.java
@@ -69,7 +69,7 @@ public void testGuest_ViewPage2Folder6() throws Exception {
"Documents and Media (DL Page2 Name)"),
selenium.getText("//span[@class='portlet-title-text']"));
assertTrue(selenium.isVisible(
- "xPath=(//img[@src='/html/themes/classic/images/file_system/large/folder_empty.png'])[4]"));
+ "xPath=(//span[@class='document-thumbnail']/img)[5]"));
assertEquals(RuntimeVariables.replace("DL Folder6 Name"),
selenium.getText(
"xPath=(//a[contains(@class,'document-link')]/span[@class='entry-title'])[5]"));
@@ -154,7 +154,7 @@ public void testGuest_ViewPage2Folder6() throws Exception {
"Documents and Media (DL Page2 Name)"),
selenium.getText("//span[@class='portlet-title-text']"));
assertTrue(selenium.isVisible(
- "xPath=(//img[@src='/html/themes/classic/images/file_system/large/folder_empty.png'])[4]"));
+ "xPath=(//span[@class='document-thumbnail']/img)[5]"));
assertEquals(RuntimeVariables.replace("DL Folder6 Name"),
selenium.getText(
"xPath=(//a[contains(@class,'document-link')]/span[@class='entry-title'])[5]"));
View
4 ...rtal/dbupgrade/sampledatalatest/documentlibrary/pagescope/Guest_ViewPage2Folder7Test.html
@@ -55,7 +55,7 @@
</tr>
<tr>
<td>assertVisible</td>
- <td>//img[@src='/html/themes/classic/images/file_system/large/folder_empty.png']</td>
+ <td>//span[@class='document-thumbnail']/img</td>
<td>Folder Image</td>
</tr>
<tr>
@@ -125,7 +125,7 @@
</tr>
<tr>
<td>assertVisible</td>
- <td>xPath=(//img[@src='/html/themes/classic/images/file_system/large/folder_empty.png'])[5]</td>
+ <td>xPath=(//span[@class='document-thumbnail']/img)[6]</td>
<td>Folder Image</td>
</tr>
<tr>
View
5 ...rtal/dbupgrade/sampledatalatest/documentlibrary/pagescope/Guest_ViewPage2Folder7Test.java
@@ -92,8 +92,7 @@ public void testGuest_ViewPage2Folder7() throws Exception {
Thread.sleep(1000);
}
- assertTrue(selenium.isVisible(
- "//img[@src='/html/themes/classic/images/file_system/large/folder_empty.png']"));
+ assertTrue(selenium.isVisible("//span[@class='document-thumbnail']/img"));
assertEquals(RuntimeVariables.replace("DL Folder7 Name"),
selenium.getText(
"//a[contains(@class,'document-link')]/span[@class='entry-title']"));
@@ -178,7 +177,7 @@ public void testGuest_ViewPage2Folder7() throws Exception {
"Documents and Media (DL Page2 Name)"),
selenium.getText("//span[@class='portlet-title-text']"));
assertTrue(selenium.isVisible(
- "xPath=(//img[@src='/html/themes/classic/images/file_system/large/folder_empty.png'])[5]"));
+ "xPath=(//span[@class='document-thumbnail']/img)[6]"));
assertEquals(RuntimeVariables.replace("DL Folder7 Name"),
selenium.getText(
"xPath=(//a[contains(@class,'document-link')]/span[@class='entry-title'])[6]"));
View
5 ...dbupgrade/sampledatalatest/documentlibrary/pagescope/ViewPage1DLFolder1Document1Test.html
@@ -50,7 +50,7 @@
</tr>
<tr>
<td>assertVisible</td>
- <td>//img[@src='/html/themes/classic/images/file_system/large/document.png']</td>
+ <td>//span[@class='document-thumbnail']/img</td>
<td>Document&nbsp;&nbsp;Image</td>
</tr>
<tr>
@@ -80,7 +80,7 @@
</tr>
<tr>
<td>assertVisible</td>
- <td>//img[@src='/html/themes/classic/images/file_system/large/document.png']</td>
+ <td>//span[@class='document-thumbnail']/img</td>
<td>Document&nbsp;&nbsp;Image</td>
</tr>
<tr>
@@ -133,7 +133,6 @@
<td>//tr[3]/td[4]</td>
<td>Approved</td>
</tr>
-
</tbody></table>
</body>
</html>
View
6 ...dbupgrade/sampledatalatest/documentlibrary/pagescope/ViewPage1DLFolder1Document1Test.java
@@ -90,8 +90,7 @@ public void testViewPage1DLFolder1Document1() throws Exception {
Thread.sleep(1000);
}
- assertTrue(selenium.isVisible(
- "//img[@src='/html/themes/classic/images/file_system/large/document.png']"));
+ assertTrue(selenium.isVisible("//span[@class='document-thumbnail']/img"));
assertEquals(RuntimeVariables.replace("DL Folder1 Document1 Title.doc"),
selenium.getText(
"//a[contains(@class,'document-link')]/span[@class='entry-title']"));
@@ -118,8 +117,7 @@ public void testViewPage1DLFolder1Document1() throws Exception {
selenium.getText("//h1[@class='header-title']/span"));
assertEquals(RuntimeVariables.replace("DL Folder1 Document1 Title.doc"),
selenium.getText("//h2[@class='document-title']"));
- assertTrue(selenium.isVisible(
- "//img[@src='/html/themes/classic/images/file_system/large/document.png']"));
+ assertTrue(selenium.isVisible("//span[@class='document-thumbnail']/img"));
assertTrue(selenium.isPartialText("//span[@class='user-date']",
"Uploaded by Joe Bloggs"));
assertEquals(RuntimeVariables.replace("Version 1.0"),
View
2  ...b/portal/dbupgrade/sampledatalatest/documentlibrary/pagescope/ViewPage1DLFolder1Test.html
@@ -35,7 +35,7 @@
</tr>
<tr>
<td>assertVisible</td>
- <td>//img[@src='/html/themes/classic/images/file_system/large/folder_full_document.png']</td>
+ <td>//span[@class='document-thumbnail']/img</td>
<td>Folder Image</td>
</tr>
<tr>
View
3  ...b/portal/dbupgrade/sampledatalatest/documentlibrary/pagescope/ViewPage1DLFolder1Test.java
@@ -66,8 +66,7 @@ public void testViewPage1DLFolder1() throws Exception {
assertEquals(RuntimeVariables.replace("Documents and Media"),
selenium.getText("//span[@class='portlet-title-text']"));
- assertTrue(selenium.isVisible(
- "//img[@src='/html/themes/classic/images/file_system/large/folder_full_document.png']"));
+ assertTrue(selenium.isVisible("//span[@class='document-thumbnail']/img"));
assertEquals(RuntimeVariables.replace("DL Folder1 Name"),
selenium.getText(
"//a[contains(@class,'document-link')]/span[@class='entry-title']"));
View
9 ...dbupgrade/sampledatalatest/documentlibrary/pagescope/ViewPage2DLFolder2Document2Test.html
@@ -50,7 +50,7 @@
</tr>
<tr>
<td>assertVisible</td>
- <td>//img[@src='/html/themes/classic/images/file_system/large/spreadsheet.png']</td>
+ <td>//span[@class='document-thumbnail']/img</td>
<td>Document&nbsp;&nbsp;Image</td>
</tr>
<tr>
@@ -80,7 +80,7 @@
</tr>
<tr>
<td>assertVisible</td>
- <td>//img[@src='/html/themes/classic/images/file_system/large/spreadsheet.png']</td>
+ <td>//span[@class='document-thumbnail']/img</td>
<td>Document&nbsp;&nbsp;Image</td>
</tr>
<tr>
@@ -175,7 +175,7 @@
</tr>
<tr>
<td>assertVisible</td>
- <td>//img[@src='/html/themes/classic/images/file_system/large/spreadsheet.png']</td>
+ <td>//span[@class='document-thumbnail']/img</td>
<td>Document&nbsp;&nbsp;Image</td>
</tr>
<tr>
@@ -205,7 +205,7 @@
</tr>
<tr>
<td>assertVisible</td>
- <td>//img[@src='/html/themes/classic/images/file_system/large/spreadsheet.png']</td>
+ <td>//span[@class='document-thumbnail']/img</td>
<td>Document&nbsp;&nbsp;Image</td>
</tr>
<tr>
@@ -258,7 +258,6 @@
<td>//tr[3]/td[4]</td>
<td>Approved</td>
</tr>
-
</tbody></table>
</body>
</html>
View
12 ...dbupgrade/sampledatalatest/documentlibrary/pagescope/ViewPage2DLFolder2Document2Test.java
@@ -92,8 +92,7 @@ public void testViewPage2DLFolder2Document2() throws Exception {
Thread.sleep(1000);
}
- assertTrue(selenium.isVisible(
- "//img[@src='/html/themes/classic/images/file_system/large/spreadsheet.png']"));
+ assertTrue(selenium.isVisible("//span[@class='document-thumbnail']/img"));
assertEquals(RuntimeVariables.replace("DL Folder2 Document2 Title.xls"),
selenium.getText(
"//a[contains(@class,'document-link')]/span[@class='entry-title']"));
@@ -120,8 +119,7 @@ public void testViewPage2DLFolder2Document2() throws Exception {
selenium.getText("//h1[@class='header-title']/span"));
assertEquals(RuntimeVariables.replace("DL Folder2 Document2 Title.xls"),
selenium.getText("//h2[@class='document-title']"));
- assertTrue(selenium.isVisible(
- "//img[@src='/html/themes/classic/images/file_system/large/spreadsheet.png']"));
+ assertTrue(selenium.isVisible("//span[@class='document-thumbnail']/img"));
assertTrue(selenium.isPartialText("//span[@class='user-date']",
"Uploaded by Joe Bloggs"));
assertEquals(RuntimeVariables.replace("Version 1.0"),
@@ -213,8 +211,7 @@ public void testViewPage2DLFolder2Document2() throws Exception {
Thread.sleep(1000);
}
- assertTrue(selenium.isVisible(
- "//img[@src='/html/themes/classic/images/file_system/large/spreadsheet.png']"));
+ assertTrue(selenium.isVisible("//span[@class='document-thumbnail']/img"));
assertEquals(RuntimeVariables.replace("DL Folder2 Document2 Title.xls"),
selenium.getText(
"//a[contains(@class,'document-link')]/span[@class='entry-title']"));
@@ -241,8 +238,7 @@ public void testViewPage2DLFolder2Document2() throws Exception {
selenium.getText("//h1[@class='header-title']/span"));
assertEquals(RuntimeVariables.replace("DL Folder2 Document2 Title.xls"),
selenium.getText("//h2[@class='document-title']"));
- assertTrue(selenium.isVisible(
- "//img[@src='/html/themes/classic/images/file_system/large/spreadsheet.png']"));
+ assertTrue(selenium.isVisible("//span[@class='document-thumbnail']/img"));
assertTrue(selenium.isPartialText("//span[@class='user-date']",
"Uploaded by Joe Bloggs"));
assertEquals(RuntimeVariables.replace("Version 1.0"),
View
9 ...dbupgrade/sampledatalatest/documentlibrary/pagescope/ViewPage2DLFolder2Document3Test.html
@@ -50,7 +50,7 @@
</tr>
<tr>
<td>assertVisible</td>
- <td>//img[@src='/html/themes/classic/images/file_system/large/default.png']</td>
+ <td>xPath=(//span[@class='document-thumbnail']/img)[2]</td>
<td>Document&nbsp;&nbsp;Image</td>
</tr>
<tr>
@@ -80,7 +80,7 @@
</tr>
<tr>
<td>assertVisible</td>
- <td>//img[@src='/html/themes/classic/images/file_system/large/default.png']</td>
+ <td>//span[@class='document-thumbnail']/img</td>
<td>Document&nbsp;&nbsp;Image</td>
</tr>
<tr>
@@ -175,7 +175,7 @@
</tr>
<tr>
<td>assertVisible</td>
- <td>//img[@src='/html/themes/classic/images/file_system/large/default.png']</td>
+ <td>xPath=(//span[@class='document-thumbnail']/img)[2]</td>
<td>Document&nbsp;&nbsp;Image</td>
</tr>
<tr>
@@ -205,7 +205,7 @@
</tr>
<tr>
<td>assertVisible</td>
- <td>//img[@src='/html/themes/classic/images/file_system/large/default.png']</td>
+ <td>//span[@class='document-thumbnail']/img</td>
<td>Document&nbsp;&nbsp;Image</td>
</tr>
<tr>
@@ -258,7 +258,6 @@
<td>//tr[3]/td[5]</td>
<td>Approved</td>
</tr>
-
</tbody></table>
</body>
</html>
View
10 ...dbupgrade/sampledatalatest/documentlibrary/pagescope/ViewPage2DLFolder2Document3Test.java
@@ -93,7 +93,7 @@ public void testViewPage2DLFolder2Document3() throws Exception {
}
assertTrue(selenium.isVisible(
- "//img[@src='/html/themes/classic/images/file_system/large/default.png']"));
+ "xPath=(//span[@class='document-thumbnail']/img)[2]"));
assertEquals(RuntimeVariables.replace("DL Folder2 Document3 Title.txt"),
selenium.getText(
"xPath=(//a[contains(@class,'document-link')]/span[@class='entry-title'])[2]"));
@@ -120,8 +120,7 @@ public void testViewPage2DLFolder2Document3() throws Exception {
selenium.getText("//h1[@class='header-title']/span"));
assertEquals(RuntimeVariables.replace("DL Folder2 Document3 Title.txt"),
selenium.getText("//h2[@class='document-title']"));
- assertTrue(selenium.isVisible(
- "//img[@src='/html/themes/classic/images/file_system/large/default.png']"));
+ assertTrue(selenium.isVisible("//span[@class='document-thumbnail']/img"));
assertTrue(selenium.isPartialText("//span[@class='user-date']",
"Uploaded by Joe Bloggs"));
assertEquals(RuntimeVariables.replace("Version 1.0"),
@@ -213,7 +212,7 @@ public void testViewPage2DLFolder2Document3() throws Exception {
}
assertTrue(selenium.isVisible(
- "//img[@src='/html/themes/classic/images/file_system/large/default.png']"));
+ "xPath=(//span[@class='document-thumbnail']/img)[2]"));
assertEquals(RuntimeVariables.replace("DL Folder2 Document3 Title.txt"),
selenium.getText(
"xPath=(//a[contains(@class,'document-link')]/span[@class='entry-title'])[2]"));
@@ -240,8 +239,7 @@ public void testViewPage2DLFolder2Document3() throws Exception {
selenium.getText("//h1[@class='header-title']/span"));
assertEquals(RuntimeVariables.replace("DL Folder2 Document3 Title.txt"),
selenium.getText("//h2[@class='document-title']"));
- assertTrue(selenium.isVisible(
- "//img[@src='/html/themes/classic/images/file_system/large/default.png']"));
+ assertTrue(selenium.isVisible("//span[@class='document-thumbnail']/img"));
assertTrue(selenium.isPartialText("//span[@class='user-date']",
"Uploaded by Joe Bloggs"));
assertEquals(RuntimeVariables.replace("Version 1.0"),
View
4 ...b/portal/dbupgrade/sampledatalatest/documentlibrary/pagescope/ViewPage2DLFolder2Test.html
@@ -65,7 +65,7 @@
</tr>
<tr>
<td>assertVisible</td>
- <td>//img[@src='/html/themes/classic/images/file_system/large/folder_full_document.png']</td>
+ <td>//span[@class='document-thumbnail']/img</td>
<td>Folder Image</td>
</tr>
<tr>
@@ -135,7 +135,7 @@
</tr>
<tr>
<td>assertVisible</td>
- <td>//img[@src='/html/themes/classic/images/file_system/large/folder_full_document.png']</td>
+ <td>//span[@class='document-thumbnail']/img</td>
<td>Folder Image</td>
</tr>
<tr>
View
6 ...b/portal/dbupgrade/sampledatalatest/documentlibrary/pagescope/ViewPage2DLFolder2Test.java
@@ -113,8 +113,7 @@ public void testViewPage2DLFolder2() throws Exception {
assertEquals(RuntimeVariables.replace(
"Documents and Media (DL Page2 Name)"),
selenium.getText("//span[@class='portlet-title-text']"));
- assertTrue(selenium.isVisible(
- "//img[@src='/html/themes/classic/images/file_system/large/folder_full_document.png']"));
+ assertTrue(selenium.isVisible("//span[@class='document-thumbnail']/img"));
assertEquals(RuntimeVariables.replace("DL Folder2 Name"),
selenium.getText(
"//a[contains(@class,'document-link')]/span[@class='entry-title']"));
@@ -198,8 +197,7 @@ public void testViewPage2DLFolder2() throws Exception {
assertEquals(RuntimeVariables.replace(
"Documents and Media (DL Page2 Name)"),
selenium.getText("//span[@class='portlet-title-text']"));
- assertTrue(selenium.isVisible(
- "//img[@src='/html/themes/classic/images/file_system/large/folder_full_document.png']"));
+ assertTrue(selenium.isVisible("//span[@class='document-thumbnail']/img"));
assertEquals(RuntimeVariables.replace("DL Folder2 Name"),
selenium.getText(
"//a[contains(@class,'document-link')]/span[@class='entry-title']"));
View
4 ...b/portal/dbupgrade/sampledatalatest/documentlibrary/pagescope/ViewPage2DLFolder3Test.html
@@ -65,7 +65,7 @@
</tr>
<tr>
<td>assertVisible</td>
- <td>//img[@src='/html/themes/classic/images/file_system/large/folder_empty.png']</td>
+ <td>xPath=(//span[@class='document-thumbnail']/img)[2]</td>
<td>Folder Image</td>
</tr>
<tr>
@@ -135,7 +135,7 @@
</tr>
<tr>
<td>assertVisible</td>
- <td>//img[@src='/html/themes/classic/images/file_system/large/folder_empty.png']</td>
+ <td>xPath=(//span[@class='document-thumbnail']/img)[2]</td>
<td>Folder Image</td>
</tr>
<tr>
View
4 ...b/portal/dbupgrade/sampledatalatest/documentlibrary/pagescope/ViewPage2DLFolder3Test.java
@@ -114,7 +114,7 @@ public void testViewPage2DLFolder3() throws Exception {
"Documents and Media (DL Page2 Name)"),
selenium.getText("//span[@class='portlet-title-text']"));
assertTrue(selenium.isVisible(
- "//img[@src='/html/themes/classic/images/file_system/large/folder_empty.png']"));
+ "xPath=(//span[@class='document-thumbnail']/img)[2]"));
assertEquals(RuntimeVariables.replace("DL Folder3 Name"),
selenium.getText(
"xPath=(//a[contains(@class,'document-link')]/span[@class='entry-title'])[2]"));
@@ -199,7 +199,7 @@ public void testViewPage2DLFolder3() throws Exception {
"Documents and Media (DL Page2 Name)"),
selenium.getText("//span[@class='portlet-title-text']"));
assertTrue(selenium.isVisible(
- "//img[@src='/html/themes/classic/images/file_system/large/folder_empty.png']"));
+ "xPath=(//span[@class='document-thumbnail']/img)[2]"));
assertEquals(RuntimeVariables.replace("DL Folder3 Name"),
selenium.getText(
"xPath=(//a[contains(@class,'document-link')]/span[@class='entry-title'])[2]"));
View
4 ...b/portal/dbupgrade/sampledatalatest/documentlibrary/pagescope/ViewPage2DLFolder4Test.html
@@ -65,7 +65,7 @@
</tr>
<tr>
<td>assertVisible</td>
- <td>xPath=(//img[@src='/html/themes/classic/images/file_system/large/folder_empty.png'])[2]</td>
+ <td>xPath=(//span[@class='document-thumbnail']/img)[3]</td>
<td>Folder Image</td>
</tr>
<tr>
@@ -135,7 +135,7 @@
</tr>
<tr>
<td>assertVisible</td>
- <td>xPath=(//img[@src='/html/themes/classic/images/file_system/large/folder_empty.png'])[2]</td>
+ <td>xPath=(//span[@class='document-thumbnail']/img)[3]</td>
<td>Folder Image</td>
</tr>
<tr>
View
4 ...b/portal/dbupgrade/sampledatalatest/documentlibrary/pagescope/ViewPage2DLFolder4Test.java
@@ -114,7 +114,7 @@ public void testViewPage2DLFolder4() throws Exception {
"Documents and Media (DL Page2 Name)"),
selenium.getText("//span[@class='portlet-title-text']"));
assertTrue(selenium.isVisible(
- "xPath=(//img[@src='/html/themes/classic/images/file_system/large/folder_empty.png'])[2]"));
+ "xPath=(//span[@class='document-thumbnail']/img)[3]"));
assertEquals(RuntimeVariables.replace("DL Folder4 Name"),
selenium.getText(
"xPath=(//a[contains(@class,'document-link')]/span[@class='entry-title'])[3]"));
@@ -199,7 +199,7 @@ public void testViewPage2DLFolder4() throws Exception {
"Documents and Media (DL Page2 Name)"),
selenium.getText("//span[@class='portlet-title-text']"));
assertTrue(selenium.isVisible(
- "xPath=(//img[@src='/html/themes/classic/images/file_system/large/folder_empty.png'])[2]"));
+ "xPath=(//span[@class='document-thumbnail']/img)[3]"));
assertEquals(RuntimeVariables.replace("DL Folder4 Name"),
selenium.getText(
"xPath=(//a[contains(@class,'document-link')]/span[@class='entry-title'])[3]"));
View
4 ...b/portal/dbupgrade/sampledatalatest/documentlibrary/pagescope/ViewPage2DLFolder5Test.html
@@ -65,7 +65,7 @@
</tr>
<tr>
<td>assertVisible</td>
- <td>xPath=(//img[@src='/html/themes/classic/images/file_system/large/folder_empty.png'])[3]</td>
+ <td>xPath=(//span[@class='document-thumbnail']/img)[4]</td>
<td>Folder Image</td>
</tr>
<tr>
@@ -135,7 +135,7 @@
</tr>
<tr>
<td>assertVisible</td>
- <td>xPath=(//img[@src='/html/themes/classic/images/file_system/large/folder_empty.png'])[2]</td>
+ <td>xPath=(//span[@class='document-thumbnail']/img)[4]</td>
<td>Folder Image</td>
</tr>
<tr>
View
4 ...b/portal/dbupgrade/sampledatalatest/documentlibrary/pagescope/ViewPage2DLFolder5Test.java
@@ -114,7 +114,7 @@ public void testViewPage2DLFolder5() throws Exception {
"Documents and Media (DL Page2 Name)"),
selenium.getText("//span[@class='portlet-title-text']"));
assertTrue(selenium.isVisible(
- "xPath=(//img[@src='/html/themes/classic/images/file_system/large/folder_empty.png'])[3]"));
+ "xPath=(//span[@class='document-thumbnail']/img)[4]"));
assertEquals(RuntimeVariables.replace("DL Folder5 Name"),
selenium.getText(
"xPath=(//a[contains(@class,'document-link')]/span[@class='entry-title'])[4]"));
@@ -199,7 +199,7 @@ public void testViewPage2DLFolder5() throws Exception {
"Documents and Media (DL Page2 Name)"),
selenium.getText("//span[@class='portlet-title-text']"));
assertTrue(selenium.isVisible(
- "xPath=(//img[@src='/html/themes/classic/images/file_system/large/folder_empty.png'])[2]"));
+ "xPath=(//span[@class='document-thumbnail']/img)[4]"));
assertEquals(RuntimeVariables.replace("DL Folder5 Name"),
selenium.getText(
"xPath=(//a[contains(@class,'document-link')]/span[@class='entry-title'])[4]"));
View
4 ...b/portal/dbupgrade/sampledatalatest/documentlibrary/pagescope/ViewPage2DLFolder6Test.html
@@ -65,7 +65,7 @@
</tr>
<tr>
<td>assertVisible</td>
- <td>xPath=(//img[@src='/html/themes/classic/images/file_system/large/folder_empty.png'])[4]</td>
+ <td>xPath=(//span[@class='document-thumbnail']/img)[5]</td>
<td>Folder Image</td>
</tr>
<tr>
@@ -135,7 +135,7 @@
</tr>
<tr>
<td>assertVisible</td>
- <td>xPath=(//img[@src='/html/themes/classic/images/file_system/large/folder_empty.png'])[4]</td>
+ <td>xPath=(//span[@class='document-thumbnail']/img)[5]</td>
<td>Folder Image</td>
</tr>
<tr>
View
4 ...b/portal/dbupgrade/sampledatalatest/documentlibrary/pagescope/ViewPage2DLFolder6Test.java
@@ -114,7 +114,7 @@ public void testViewPage2DLFolder6() throws Exception {
"Documents and Media (DL Page2 Name)"),
selenium.getText("//span[@class='portlet-title-text']"));
assertTrue(selenium.isVisible(
- "xPath=(//img[@src='/html/themes/classic/images/file_system/large/folder_empty.png'])[4]"));
+ "xPath=(//span[@class='document-thumbnail']/img)[5]"));
assertEquals(RuntimeVariables.replace("DL Folder6 Name"),
selenium.getText(
"xPath=(//a[contains(@class,'document-link')]/span[@class='entry-title'])[5]"));
@@ -199,7 +199,7 @@ public void testViewPage2DLFolder6() throws Exception {
"Documents and Media (DL Page2 Name)"),
selenium.getText("//span[@class='portlet-title-text']"));
assertTrue(selenium.isVisible(
- "xPath=(//img[@src='/html/themes/classic/images/file_system/large/folder_empty.png'])[4]"));
+ "xPath=(//span[@class='document-thumbnail']/img)[5]"));
assertEquals(RuntimeVariables.replace("DL Folder6 Name"),
selenium.getText(
"xPath=(//a[contains(@class,'document-link')]/span[@class='entry-title'])[5]"));
View
4 ...b/portal/dbupgrade/sampledatalatest/documentlibrary/pagescope/ViewPage2DLFolder7Test.html
@@ -85,7 +85,7 @@
</tr>
<tr>
<td>assertVisible</td>
- <td>//img[@src='/html/themes/classic/images/file_system/large/folder_empty.png']</td>
+ <td>//span[@class='document-thumbnail']/img</td>
<td>Folder Image</td>
</tr>
<tr>
@@ -155,7 +155,7 @@
</tr>
<tr>
<td>assertVisible</td>
- <td>xPath=(//img[@src='/html/themes/classic/images/file_system/large/folder_empty.png'])[5]</td>
+ <td>xPath=(//span[@class='document-thumbnail']/img)[6]</td>
<td>Folder Image</td>
</tr>
<tr>
View
5 ...b/portal/dbupgrade/sampledatalatest/documentlibrary/pagescope/ViewPage2DLFolder7Test.java
@@ -137,8 +137,7 @@ public void testViewPage2DLFolder7() throws Exception {
Thread.sleep(1000);
}
- assertTrue(selenium.isVisible(
- "//img[@src='/html/themes/classic/images/file_system/large/folder_empty.png']"));
+ assertTrue(selenium.isVisible("//span[@class='document-thumbnail']/img"));
assertEquals(RuntimeVariables.replace("DL Folder7 Name"),
selenium.getText(
"//a[contains(@class,'document-link')]/span[@class='entry-title']"));
@@ -223,7 +222,7 @@ public void testViewPage2DLFolder7() throws Exception {
"Documents and Media (DL Page2 Name)"),
selenium.getText("//span[@class='portlet-title-text']"));
assertTrue(selenium.isVisible(
- "xPath=(//img[@src='/html/themes/classic/images/file_system/large/folder_empty.png'])[5]"));
+ "xPath=(//span[@class='document-thumbnail']/img)[6]"));
assertEquals(RuntimeVariables.replace("DL Folder7 Name"),
selenium.getText(
"xPath=(//a[contains(@class,'document-link')]/span[@class='entry-title'])[6]"));
Please sign in to comment.
Something went wrong with that request. Please try again.