Skip to content

Commit

Permalink
more test de-flaking in travis, hopefully.
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeis committed Oct 24, 2016
1 parent a119fc1 commit b4ef4ec
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
import static org.openqa.selenium.testing.Driver.MARIONETTE;

import org.junit.Test;
import org.openqa.selenium.support.ui.ExpectedConditions;
import org.openqa.selenium.testing.Ignore;
import org.openqa.selenium.testing.JUnit4TestBase;
import org.openqa.selenium.testing.JavascriptEnabled;
Expand Down Expand Up @@ -336,7 +337,7 @@ public void testCanRetrieveTheCurrentValueOfATextFormField_textInput() {
WebElement element = driver.findElement(By.id("working"));
assertEquals("", element.getAttribute("value"));
element.sendKeys("hello world");
assertEquals("hello world", element.getAttribute("value"));
shortWait.until(ExpectedConditions.attributeToBe(element, "value", "hello world"));
}

@Test
Expand All @@ -346,7 +347,7 @@ public void testCanRetrieveTheCurrentValueOfATextFormField_emailInput() {
WebElement element = driver.findElement(By.id("email"));
assertEquals("", element.getAttribute("value"));
element.sendKeys("hello@example.com");
assertEquals("hello@example.com", element.getAttribute("value"));
shortWait.until(ExpectedConditions.attributeToBe(element, "value", "hello@example.com"));
}

@Test
Expand All @@ -356,7 +357,7 @@ public void testCanRetrieveTheCurrentValueOfATextFormField_textArea() {
WebElement element = driver.findElement(By.id("emptyTextArea"));
assertEquals("", element.getAttribute("value"));
element.sendKeys("hello world");
assertEquals("hello world", element.getAttribute("value"));
shortWait.until(ExpectedConditions.attributeToBe(element, "value", "hello world"));
}

@Ignore({MARIONETTE})
Expand Down

0 comments on commit b4ef4ec

Please sign in to comment.