From 8dd34cf16d5d50a2a3af97e345a36cf8490f54cf Mon Sep 17 00:00:00 2001 From: Alexei Barantsev Date: Tue, 7 Nov 2017 09:16:29 +0300 Subject: [PATCH] Ignoring failed tests, regression in marionette. Bug-reports submitted and referenced in the tests. --- java/client/test/org/openqa/selenium/SvgElementTest.java | 4 ++++ .../org/openqa/selenium/firefox/FirefoxDriverTest.java | 7 +++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/java/client/test/org/openqa/selenium/SvgElementTest.java b/java/client/test/org/openqa/selenium/SvgElementTest.java index 04f7db8032c25..fa0472014a471 100644 --- a/java/client/test/org/openqa/selenium/SvgElementTest.java +++ b/java/client/test/org/openqa/selenium/SvgElementTest.java @@ -22,11 +22,13 @@ import static org.junit.Assume.assumeFalse; import static org.openqa.selenium.WaitingConditions.elementTextToEqual; import static org.openqa.selenium.testing.Driver.HTMLUNIT; +import static org.openqa.selenium.testing.Driver.MARIONETTE; import static org.openqa.selenium.testing.TestUtilities.isOldIe; import org.junit.Test; import org.openqa.selenium.testing.Ignore; import org.openqa.selenium.testing.JUnit4TestBase; +import org.openqa.selenium.testing.NotYetImplemented; import java.util.List; @@ -34,6 +36,7 @@ public class SvgElementTest extends JUnit4TestBase { @Test @Ignore(value = HTMLUNIT, reason="test should enable JavaScript") + @NotYetImplemented(value = MARIONETTE, reason = "https://bugzilla.mozilla.org/show_bug.cgi?id=1415068") public void testShouldClickOnGraphVisualElements() { assumeFalse("IE version < 9 doesn't support SVG", isOldIe(driver)); @@ -68,6 +71,7 @@ private static WebElement findAppleElement(List textElements) { @Test @Ignore(value = HTMLUNIT, reason="test should enable JavaScript") + @NotYetImplemented(value = MARIONETTE, reason = "https://bugzilla.mozilla.org/show_bug.cgi?id=1415068") public void testShouldClickOnGraphTextElements() { assumeFalse("IE version < 9 doesn't support SVG", isOldIe(driver)); diff --git a/java/client/test/org/openqa/selenium/firefox/FirefoxDriverTest.java b/java/client/test/org/openqa/selenium/firefox/FirefoxDriverTest.java index 591d894604f75..7ace3e71a5c8b 100644 --- a/java/client/test/org/openqa/selenium/firefox/FirefoxDriverTest.java +++ b/java/client/test/org/openqa/selenium/firefox/FirefoxDriverTest.java @@ -66,6 +66,7 @@ import org.openqa.selenium.testing.NeedsFreshDriver; import org.openqa.selenium.testing.NeedsLocalEnvironment; import org.openqa.selenium.testing.NoDriverAfterTest; +import org.openqa.selenium.testing.NotYetImplemented; import org.openqa.selenium.testing.drivers.SauceDriver; import org.openqa.selenium.testing.drivers.WebDriverBuilder; @@ -563,9 +564,11 @@ public void searchingByCssDoesNotOverwriteExistingSizzleDefinition() { } @Test + @NotYetImplemented(value = MARIONETTE, reason = "https://bugzilla.mozilla.org/show_bug.cgi?id=1415067") public void testFirefoxCanNativelyClickOverlappingElements() { - Capabilities caps = new ImmutableCapabilities(CapabilityType.OVERLAPPING_CHECK_DISABLED, true); - WebDriver secondDriver = new FirefoxDriver(caps); + FirefoxOptions options = new FirefoxOptions(); + options.setCapability(CapabilityType.OVERLAPPING_CHECK_DISABLED, true); + WebDriver secondDriver = new FirefoxDriver(options); try { secondDriver.get(appServer.whereIs("click_tests/overlapping_elements.html")); secondDriver.findElement(By.id("under")).click();