Skip to content

Commit

Permalink
Skipping a test that fails on Linux in Firefox with native events
Browse files Browse the repository at this point in the history
  • Loading branch information
barancev committed Sep 4, 2013
1 parent d6a1e7e commit e03ee47
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions java/client/test/org/openqa/selenium/AlertsTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import static org.junit.Assert.assertThat;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
import static org.junit.Assume.assumeFalse;
import static org.junit.Assume.assumeTrue;
import static org.openqa.selenium.TestWaiter.waitFor;
import static org.openqa.selenium.WaitingConditions.alertToBePresent;
Expand All @@ -40,6 +41,9 @@
import static org.openqa.selenium.testing.Ignore.Driver.PHANTOMJS;
import static org.openqa.selenium.testing.Ignore.Driver.SAFARI;
import static org.openqa.selenium.testing.Ignore.Driver.OPERA_MOBILE;
import static org.openqa.selenium.testing.TestUtilities.isFirefox;
import static org.openqa.selenium.testing.TestUtilities.isNativeEventsEnabled;
import static org.openqa.selenium.testing.drivers.SauceDriver.getEffectivePlatform;

import org.openqa.selenium.testing.Ignore;
import org.openqa.selenium.testing.JUnit4TestBase;
Expand Down Expand Up @@ -125,6 +129,11 @@ public void testShouldAllowUsersToDismissAnAlertManually() {
@JavascriptEnabled
@Test
public void testShouldAllowAUserToAcceptAPrompt() {
assumeFalse("FIXME: Fails in Firefox on Linux with native events",
isFirefox(driver) &&
isNativeEventsEnabled(driver) &&
getEffectivePlatform().is(Platform.LINUX));

driver.findElement(By.id("prompt")).click();

Alert alert = waitFor(alertToBePresent(driver));
Expand Down

0 comments on commit e03ee47

Please sign in to comment.