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

Commit

Permalink
fix function test for modified UI in add new language member
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Eng committed Aug 26, 2013
1 parent b89e462 commit ffd12a1
Showing 1 changed file with 2 additions and 7 deletions.
Expand Up @@ -26,9 +26,8 @@ public class ManageLanguageTeamMemberPage extends BasePage
private WebElement memberPanel;

public static final int USERNAME_COLUMN = 0;
public static final int SEARCH_RESULT_SELECTED_COLUMN = 0;
public static final int SEARCH_RESULT_PERSON_COLUMN = 1;
public static final int ISTRANSLATOR_COLUMN = 3;
public static final int SEARCH_RESULT_PERSON_COLUMN = 0;
public static final int ISTRANSLATOR_COLUMN = 2;

public ManageLanguageTeamMemberPage(WebDriver driver)
{
Expand Down Expand Up @@ -116,10 +115,6 @@ public ManageLanguageTeamMemberPage apply(WebDriver driver)

final String personUsername = firstRow.getCellContents().get(SEARCH_RESULT_PERSON_COLUMN);
log.info("username to be added: {}", personUsername);
WebElement selectRowToUpdateCheckBox = firstRow.getCells().get(SEARCH_RESULT_SELECTED_COLUMN).findElement(By.tagName("input"));
Checkbox.of(selectRowToUpdateCheckBox).check(); // this causes a row redraw

firstRow = tryGetFirstRowInSearchPersonResult(driver, personName);
WebElement isTranslatorCheckBox = firstRow.getCells().get(ISTRANSLATOR_COLUMN).findElement(By.tagName("input"));
Checkbox.of(isTranslatorCheckBox).check();

Expand Down

0 comments on commit ffd12a1

Please sign in to comment.