Skip to content

Commit

Permalink
Ignoring new test in the browsers that fail it on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
barancev committed May 14, 2014
1 parent 7638bbb commit f085b0d
Showing 1 changed file with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
import static org.openqa.selenium.testing.TestUtilities.isFirefox;
import static org.openqa.selenium.testing.TestUtilities.isInternetExplorer;
import static org.openqa.selenium.testing.TestUtilities.isNativeEventsEnabled;
import static org.openqa.selenium.support.ui.ExpectedConditions.presenceOfElementLocated;

import org.junit.Test;
import org.openqa.selenium.By;
Expand All @@ -48,7 +49,6 @@
import org.openqa.selenium.Point;
import org.openqa.selenium.WaitingConditions;
import org.openqa.selenium.WebElement;
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 @@ -185,7 +185,7 @@ public void testControlClickingOnCustomMultiSelectionList() {
private void navigateToClicksPageAndClickLink() {
driver.get(pages.clicksPage);

wait.until(ExpectedConditions.presenceOfElementLocated(By.id("normal")));
wait.until(presenceOfElementLocated(By.id("normal")));
WebElement link = driver.findElement(By.id("normal"));

new Actions(driver)
Expand All @@ -208,7 +208,7 @@ public void testCanClickOnLinks() {
public void testCanClickOnLinksWithAnOffset() {
driver.get(pages.clicksPage);

wait.until(ExpectedConditions.presenceOfElementLocated(By.id("normal")));
wait.until(presenceOfElementLocated(By.id("normal")));
WebElement link = driver.findElement(By.id("normal"));

new Actions(driver)
Expand All @@ -220,7 +220,7 @@ public void testCanClickOnLinksWithAnOffset() {
}

@Ignore(
value = {HTMLUNIT, IPHONE},
value = {HTMLUNIT, IPHONE, CHROME, IE, OPERA, SAFARI},
reason = "HtmlUnit: Advanced mouse actions only implemented in rendered browsers")
@Test
public void testClickAfterMoveToAnElementWithAnOffsetShouldUseLastMousePosition() {
Expand All @@ -236,6 +236,8 @@ public void testClickAfterMoveToAnElementWithAnOffsetShouldUseLastMousePosition(
.click()
.perform();

wait.until(presenceOfElementLocated(By.id("pageX")));

int x = Integer.parseInt(driver.findElement(By.id("pageX")).getText());
int y = Integer.parseInt(driver.findElement(By.id("pageY")).getText());

Expand Down Expand Up @@ -347,7 +349,7 @@ public void testHoldingDownShiftKeyWhileClicking() {
new Actions(driver).keyDown(Keys.SHIFT).click(toClick).keyUp(Keys.SHIFT).perform();

WebElement shiftInfo =
wait.until(ExpectedConditions.presenceOfElementLocated(By.id("shiftKey")));
wait.until(presenceOfElementLocated(By.id("shiftKey")));
assertThat(shiftInfo.getText(), equalTo("true"));
}

Expand Down

0 comments on commit f085b0d

Please sign in to comment.