Skip to content

Commit

Permalink
Test Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
rsrisamang authored and brianchandotcom committed Nov 16, 2011
1 parent 3dc9b60 commit e2cee82
Show file tree
Hide file tree
Showing 10 changed files with 17 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@
<td>//strong/a</td>
<td>Options</td>
</tr>
<tr>
<td>clickAt</td>
<td>//strong/a</td>
<td>Options</td>
</tr>
<tr>
<td>waitForVisible</td>
<td>//div[@class='lfr-component lfr-menu-list']/ul/li[2]/a</td>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ public void testConfigurePortletScopePage() throws Exception {
Thread.sleep(5000);
assertEquals(RuntimeVariables.replace("Options"),
selenium.getText("//strong/a"));
selenium.clickAt("//strong/a", RuntimeVariables.replace("Options"));

for (int second = 0;; second++) {
if (second >= 90) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@
<tr>
<td>assertText</td>
<td>xPath=(//div[@class='portlet-msg-error'])[2]</td>
<td>Please enter a valid zip.</td>
<td>Please enter a valid postal code.</td>
</tr>

</tbody></table>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,8 @@ public void testAddOrganizationAddressZipNull() throws Exception {
assertEquals(RuntimeVariables.replace(
"Your request failed to complete."),
selenium.getText("xPath=(//div[@class='portlet-msg-error'])[1]"));
assertEquals(RuntimeVariables.replace("Please enter a valid zip."),
assertEquals(RuntimeVariables.replace(
"Please enter a valid postal code."),
selenium.getText("xPath=(//div[@class='portlet-msg-error'])[2]"));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
<tr>
<td>assertText</td>
<td>xPath=(//div[@class='portlet-msg-error'])[2]</td>
<td>Please enter a valid zip.</td>
<td>Please enter a valid postal code.</td>
</tr>

</tbody></table>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,8 @@ public void testAddSettingsAddressZipNull() throws Exception {
assertEquals(RuntimeVariables.replace(
"Your request failed to complete."),
selenium.getText("xPath=(//div[@class='portlet-msg-error'])[1]"));
assertEquals(RuntimeVariables.replace("Please enter a valid zip."),
assertEquals(RuntimeVariables.replace(
"Please enter a valid postal code."),
selenium.getText("xPath=(//div[@class='portlet-msg-error'])[2]"));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
<tr>
<td>assertText</td>
<td>xPath=(//div[@class='portlet-msg-error'])[2]</td>
<td>Please enter a valid zip.</td>
<td>Please enter a valid postal code.</td>
</tr>

</tbody></table>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,8 @@ public void testAddUserAddressZipNull() throws Exception {
assertEquals(RuntimeVariables.replace(
"Your request failed to complete."),
selenium.getText("xPath=(//div[@class='portlet-msg-error'])[1]"));
assertEquals(RuntimeVariables.replace("Please enter a valid zip."),
assertEquals(RuntimeVariables.replace(
"Please enter a valid postal code."),
selenium.getText("xPath=(//div[@class='portlet-msg-error'])[2]"));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
<td>Select All</td>
</tr>
<tr>
<td>clickAt</td>
<td>clickAtAndWait</td>
<td>//input[@value='Deactivate']</td>
<td>Deactivate</td>
</tr>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ public void testTearDownUser() throws Exception {
"xPath=(//input[@name='_125_allRowIds'])[2]"));
selenium.clickAt("//input[@value='Deactivate']",
RuntimeVariables.replace("Deactivate"));
selenium.waitForPageToLoad("30000");
assertTrue(selenium.getConfirmation()
.matches("^Are you sure you want to deactivate the selected users[\\s\\S]$"));

Expand Down

0 comments on commit e2cee82

Please sign in to comment.