Skip to content

Commit

Permalink
Mark failing Marionette tests as Ignored or NotYetImplemented
Browse files Browse the repository at this point in the history
  • Loading branch information
shs96c committed Oct 12, 2016
1 parent 6395cc3 commit 1d1a092
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 18 deletions.
6 changes: 4 additions & 2 deletions java/client/test/org/openqa/selenium/AlertsTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,8 @@ public void testShouldAllowAUserToSetTheValueOfAPrompt() {
wait.until(textInElementLocated(By.id("text"), "cheese"));
}

@Ignore(value = {CHROME},
reason = "Marionette: https://github.com/jgraham/wires/issues/17")
@Ignore(value = {MARIONETTE, CHROME},
reason = "Marionette: https://github.com/mozilla/geckodriver/issues/274")
@JavascriptEnabled
@Test
public void testSettingTheValueOfAnAlertThrows() {
Expand Down Expand Up @@ -241,6 +241,8 @@ public void testShouldAllowUsersToAcceptAnAlertInAFrame() {
@JavascriptEnabled
@SwitchToTopAfterTest
@Test
@Ignore(value = MARIONETTE,
reason = "Marionette: https://bugzilla.mozilla.org/show_bug.cgi?id=1279211")
public void testShouldAllowUsersToAcceptAnAlertInANestedFrame() {
driver.switchTo().frame("iframeWithIframe").switchTo().frame("iframeWithAlert");

Expand Down
8 changes: 2 additions & 6 deletions java/client/test/org/openqa/selenium/AtomsInjectionTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,16 @@

package org.openqa.selenium;

import static org.junit.Assert.assertEquals;

import org.junit.Test;
import org.openqa.selenium.testing.JUnit4TestBase;
import org.openqa.selenium.testing.JavascriptEnabled;
import org.openqa.selenium.testing.NotYetImplemented;

import static org.junit.Assert.assertEquals;
import static org.openqa.selenium.testing.Driver.MARIONETTE;

public class AtomsInjectionTest extends JUnit4TestBase {

/** http://code.google.com/p/selenium/issues/detail?id=1333 */
@JavascriptEnabled
@Test
@NotYetImplemented({MARIONETTE})
public void testInjectingAtomShouldNotTrampleOnUnderscoreGlobal() {
driver.get(pages.underscorePage);
driver.findElement(By.tagName("body"));
Expand Down
15 changes: 6 additions & 9 deletions java/client/test/org/openqa/selenium/ChildrenFindingTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,22 +17,20 @@

package org.openqa.selenium;

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;

import static org.hamcrest.Matchers.equalTo;
import static org.hamcrest.Matchers.is;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertThat;
import static org.junit.Assert.fail;
import static org.openqa.selenium.testing.Driver.MARIONETTE;
import static org.openqa.selenium.testing.Driver.REMOTE;

import org.junit.Test;
import org.openqa.selenium.testing.Ignore;
import org.openqa.selenium.testing.JUnit4TestBase;

import java.util.List;


public class ChildrenFindingTest extends JUnit4TestBase {
@Test
Expand Down Expand Up @@ -322,7 +320,6 @@ public void testLinkWithTrailingSpace() {
}

@Test
@NotYetImplemented(MARIONETTE)
public void testElementCanGetLinkByLinkTestIgnoringTrailingWhitespace() {
driver.get(pages.simpleTestPage);
WebElement elem = driver.findElement(By.id("links"));
Expand Down
1 change: 1 addition & 0 deletions java/client/test/org/openqa/selenium/ClickTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,7 @@ public void testCanClickOnALinkThatContainsTextWrappedInASpan() {
}

@Test
@Ignore(value = MARIONETTE)
public void testCanClickOnALinkThatContainsEmbeddedBlockElements() {
assumeFalse(
"Fails on Android phones: https://code.google.com/p/chromedriver/issues/detail?id=1022",
Expand Down
3 changes: 3 additions & 0 deletions java/client/test/org/openqa/selenium/FormHandlingTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
import org.junit.Test;
import org.openqa.selenium.testing.Ignore;
import org.openqa.selenium.testing.JUnit4TestBase;
import org.openqa.selenium.testing.NotYetImplemented;
import org.openqa.selenium.testing.TestUtilities;

import java.io.File;
Expand Down Expand Up @@ -94,6 +95,8 @@ public void testShouldSubmitAFormWhenAnyElementWithinThatFormIsSubmitted() {

@Test(expected = NoSuchElementException.class)
@Ignore(value = {PHANTOMJS, SAFARI})
@NotYetImplemented(
value = MARIONETTE, reason = "Delegates to JS and so the wrong exception is returned")
public void testShouldNotBeAbleToSubmitAFormThatDoesNotExist() {
driver.get(pages.formPage);
driver.findElement(By.name("SearchableText")).submit();
Expand Down
3 changes: 2 additions & 1 deletion java/client/test/org/openqa/selenium/ImplicitWaitTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
import static org.openqa.selenium.testing.Driver.IE;
import static org.openqa.selenium.testing.Driver.MARIONETTE;
import static org.openqa.selenium.testing.Driver.PHANTOMJS;
import static org.openqa.selenium.testing.Driver.SAFARI;

Expand Down Expand Up @@ -138,7 +139,7 @@ public void testShouldReturnAfterFirstAttemptToFindManyAfterDisablingImplicitWai

@Test
@JavascriptEnabled
@Ignore({IE, PHANTOMJS, SAFARI})
@Ignore({IE, MARIONETTE, PHANTOMJS, SAFARI})
public void testShouldImplicitlyWaitForAnElementToBeVisibleBeforeInteracting() {
driver.get(pages.dynamicPage);

Expand Down

0 comments on commit 1d1a092

Please sign in to comment.