Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Attempt to fix intermittent test failure
Browse files Browse the repository at this point in the history
  • Loading branch information
seanf committed Feb 2, 2015
1 parent 6663681 commit f9a01ff
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Expand Up @@ -42,7 +42,7 @@ public class CreateVersionGroupPage extends BasePage {
"letters, numbers, periods, underscores and hyphens.";

private By groupIdField = By.id("group-form:slugField:slug");
private By groupNameField = By.id("group-form:nameField:name");
public By groupNameField = By.id("group-form:nameField:name");
private By groupDescriptionField = By.id("group-form:descriptionField:description");
private By saveButton = By.id("group-form:group-create-new");
private By createNewButton = By.id("group-form:group-create-new");
Expand Down
Expand Up @@ -26,6 +26,7 @@
import org.junit.Rule;
import org.junit.Test;
import org.junit.experimental.categories.Category;
import org.openqa.selenium.By;
import org.zanata.feature.Feature;
import org.zanata.feature.testharness.ZanataTestCase;
import org.zanata.feature.testharness.TestPlan.BasicAcceptanceTest;
Expand Down Expand Up @@ -214,8 +215,9 @@ public void inputValidationForID() throws Exception {
CreateVersionGroupPage groupPage = versionGroupsPageBase
.createNewGroup()
.inputGroupId(inputText)
.inputGroupName(inputText)
.saveGroupFailure();
.inputGroupName(inputText);
groupPage.defocus(groupPage.groupNameField);
groupPage.saveGroupFailure();

assertThat(groupPage.expectError(
CreateVersionGroupPage.VALIDATION_ERROR))
Expand Down

0 comments on commit f9a01ff

Please sign in to comment.