Skip to content

Commit

Permalink
[java] Disabling tests that fail in Chrome 75
Browse files Browse the repository at this point in the history
  • Loading branch information
barancev committed Jun 19, 2019
1 parent 6a1a3cc commit 851acb7
Show file tree
Hide file tree
Showing 9 changed files with 26 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -410,6 +410,7 @@ public void testRetainsCookieSecure() {

@Test
@Ignore(SAFARI)
@NotYetImplemented(CHROME)
public void canHandleHttpOnlyCookie() {
Cookie addedCookie =
new Cookie.Builder("fish", "cod")
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 @@ -22,6 +22,7 @@
import static org.junit.Assume.assumeFalse;
import static org.openqa.selenium.support.ui.ExpectedConditions.alertIsPresent;
import static org.openqa.selenium.support.ui.ExpectedConditions.titleIs;
import static org.openqa.selenium.testing.drivers.Browser.CHROME;
import static org.openqa.selenium.testing.drivers.Browser.EDGE;
import static org.openqa.selenium.testing.drivers.Browser.IE;
import static org.openqa.selenium.testing.drivers.Browser.MARIONETTE;
Expand Down Expand Up @@ -91,6 +92,8 @@ public void testShouldSubmitAFormWhenAnyElementWithinThatFormIsSubmitted() {
@NotYetImplemented(EDGE)
@NotYetImplemented(value = IE,
reason = "Throws JavascriptException: Error from JavaScript: Unable to find owning document")
@NotYetImplemented(value = CHROME,
reason = "Throws JavascriptException: Error from JavaScript: Unable to find owning document")
public void testShouldNotBeAbleToSubmitAFormThatDoesNotExist() {
driver.get(pages.formPage);
WebElement element = driver.findElement(By.name("SearchableText"));
Expand Down
2 changes: 1 addition & 1 deletion java/client/test/org/openqa/selenium/PageLoadingTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
import static org.openqa.selenium.support.ui.ExpectedConditions.titleIs;
import static org.openqa.selenium.support.ui.ExpectedConditions.visibilityOfElementLocated;
import static org.openqa.selenium.testing.drivers.Browser.CHROME;
import static org.openqa.selenium.testing.drivers.Browser.CHROMIUMEDGE;;
import static org.openqa.selenium.testing.drivers.Browser.CHROMIUMEDGE;
import static org.openqa.selenium.testing.drivers.Browser.EDGE;
import static org.openqa.selenium.testing.drivers.Browser.FIREFOX;
import static org.openqa.selenium.testing.drivers.Browser.HTMLUNIT;
Expand Down
6 changes: 4 additions & 2 deletions java/client/test/org/openqa/selenium/PositionAndSizeTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,10 @@ public void testShouldGetCoordinatesOfAnElementInAFrame() {
@SwitchToTopAfterTest
@Test
@NotYetImplemented(SAFARI)
@Ignore(MARIONETTE)
@NotYetImplemented(MARIONETTE)
@NotYetImplemented(EDGE)
@NotYetImplemented(IE)
@NotYetImplemented(CHROME)
public void testShouldGetCoordinatesInViewPortOfAnElementInAFrame() {
driver.get(appServer.whereIs("coordinates_tests/element_in_frame.html"));
driver.switchTo().frame("ifr");
Expand All @@ -125,9 +126,10 @@ public void testShouldGetCoordinatesInViewPortOfAnElementInAFrame() {
@SwitchToTopAfterTest
@Test
@NotYetImplemented(SAFARI)
@Ignore(MARIONETTE)
@NotYetImplemented(MARIONETTE)
@NotYetImplemented(EDGE)
@NotYetImplemented(IE)
@NotYetImplemented(CHROME)
public void testShouldGetCoordinatesInViewPortOfAnElementInANestedFrame() {
driver.get(appServer.whereIs("coordinates_tests/element_in_nested_frame.html"));
driver.switchTo().frame("ifr");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,16 @@
import org.openqa.selenium.testing.JUnit4TestBase;
import org.openqa.selenium.testing.NotYetImplemented;

public class LocationContextTest extends JUnit4TestBase {
public class LocationContextTest extends JUnit4TestBase {

@Before
public void hasLocationContext() {
assumeTrue(driver instanceof LocationContext);
}

@Test
@NotYetImplemented(CHROME)
@NotYetImplemented(CHROMIUMEDGE)
public void testShouldSetAndGetLatitude() {
driver.get(pages.html5Page);

Expand All @@ -46,6 +48,8 @@ public void testShouldSetAndGetLatitude() {
}

@Test
@NotYetImplemented(CHROME)
@NotYetImplemented(CHROMIUMEDGE)
public void testShouldSetAndGetLongitude() {
driver.get(pages.html5Page);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assertions.assertThatExceptionOfType;
import static org.junit.Assume.assumeFalse;
import static org.openqa.selenium.testing.drivers.Browser.CHROME;
import static org.openqa.selenium.testing.drivers.Browser.EDGE;
import static org.openqa.selenium.testing.drivers.Browser.HTMLUNIT;
import static org.openqa.selenium.testing.drivers.Browser.IE;
Expand Down Expand Up @@ -222,6 +223,7 @@ public void canGenerateKeyboardShortcuts() {

@Test
@NotYetImplemented(value = MARIONETTE, reason = "https://bugzilla.mozilla.org/show_bug.cgi?id=1422583")
@NotYetImplemented(CHROME)
public void testSelectionSelectBySymbol() {
driver.get(appServer.whereIs("single_text_input.html"));

Expand All @@ -245,6 +247,7 @@ public void testSelectionSelectBySymbol() {
@Test
@Ignore(IE)
@NotYetImplemented(value = MARIONETTE, reason = "https://bugzilla.mozilla.org/show_bug.cgi?id=1422583")
@NotYetImplemented(CHROME)
public void testSelectionSelectByWord() {
assumeFalse(
"MacOS has alternative keyboard",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,7 @@ public void testMovingMouseByRelativeOffset() {
@NotYetImplemented(HTMLUNIT)
@NotYetImplemented(SAFARI)
@NotYetImplemented(EDGE)
@NotYetImplemented(CHROME)
public void testMovingMouseToRelativeElementOffset() {
driver.get(pages.mouseTrackerPage);

Expand All @@ -388,6 +389,7 @@ public void testMovingMouseToRelativeElementOffset() {
@NotYetImplemented(HTMLUNIT)
@NotYetImplemented(SAFARI)
@NotYetImplemented(EDGE)
@NotYetImplemented(CHROME)
public void testMovingMouseToRelativeZeroElementOffset() {
driver.get(pages.mouseTrackerPage);

Expand Down Expand Up @@ -423,6 +425,7 @@ public void testMoveRelativeToBody() {
@NotYetImplemented(HTMLUNIT)
@NotYetImplemented(SAFARI)
@NotYetImplemented(EDGE)
@NotYetImplemented(CHROME)
public void testMoveMouseByOffsetOverAndOutOfAnElement() {
driver.get(pages.mouseOverPage);

Expand Down Expand Up @@ -453,6 +456,7 @@ public void testMoveMouseByOffsetOverAndOutOfAnElement() {
@NotYetImplemented(HTMLUNIT)
@NotYetImplemented(SAFARI)
@NotYetImplemented(EDGE)
@NotYetImplemented(CHROME)
public void testCanMoveOverAndOutOfAnElement() {
driver.get(pages.mouseOverPage);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import static org.openqa.selenium.WaitingConditions.windowHandleCountToBe;
import static org.openqa.selenium.support.ui.ExpectedConditions.presenceOfElementLocated;
import static org.openqa.selenium.support.ui.ExpectedConditions.titleIs;
import static org.openqa.selenium.testing.drivers.Browser.CHROME;
import static org.openqa.selenium.testing.drivers.Browser.EDGE;
import static org.openqa.selenium.testing.drivers.Browser.FIREFOX;
import static org.openqa.selenium.testing.drivers.Browser.HTMLUNIT;
Expand Down Expand Up @@ -222,6 +223,7 @@ public void testCanClickOnLinksWithAnOffset() {
@NotYetImplemented(HTMLUNIT)
@NotYetImplemented(SAFARI)
@NotYetImplemented(EDGE)
@NotYetImplemented(CHROME)
public void testClickAfterMoveToAnElementWithAnOffsetShouldUseLastMousePosition() {
driver.get(pages.clickEventPage);

Expand Down Expand Up @@ -277,6 +279,7 @@ public void testMouseMovementWorksWhenNavigatingToAnotherPage() {
@Test
@Ignore(value = MARIONETTE, issue = "https://github.com/mozilla/geckodriver/issues/646")
@NotYetImplemented(EDGE)
@NotYetImplemented(CHROME)
public void testChordControlCutAndPaste() {
assumeFalse("FIXME: macs don't have CONTROL key", getEffectivePlatform().is(Platform.MAC));
assumeFalse("Windows: native events library does not support storing modifiers state yet",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ public void testDragAndDropElementWithOffsetInIframeAtBottom() {
@Ignore(MARIONETTE)
@NotYetImplemented(SAFARI)
@NotYetImplemented(EDGE)
@NotYetImplemented(CHROME)
public void testDragAndDropElementWithOffsetInScrolledDiv() {
driver.get(appServer.whereIs("dragAndDropInsideScrolledDiv.html"));

Expand Down Expand Up @@ -214,6 +215,7 @@ public void testDragAndDropOnJQueryItems() {
@NotYetImplemented(SAFARI)
@Ignore(MARIONETTE)
@NotYetImplemented(EDGE)
@NotYetImplemented(CHROME)
public void canDragAnElementNotVisibleInTheCurrentViewportDueToAParentOverflow() {
driver.get(pages.dragDropOverflow);

Expand Down

0 comments on commit 851acb7

Please sign in to comment.