Skip to content

Commit

Permalink
[java] Updating state of Chrome tests
Browse files Browse the repository at this point in the history
  • Loading branch information
barancev committed Jul 20, 2019
1 parent aa23885 commit 6a0658e
Show file tree
Hide file tree
Showing 10 changed files with 27 additions and 46 deletions.
12 changes: 4 additions & 8 deletions java/client/test/org/openqa/selenium/AlertsTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,6 @@ public void testShouldAllowAUserToSetTheValueOfAPrompt() {
}

@Test
@Ignore(CHROME)
@Ignore(CHROMIUMEDGE)
public void testSettingTheValueOfAnAlertThrows() {
driver.get(alertPage("cheese"));

Expand Down Expand Up @@ -358,8 +356,6 @@ public void testHandlesTwoAlertsFromOneInteraction() {
}

@Test
@Ignore(CHROME)
@Ignore(CHROMIUMEDGE)
public void testShouldHandleAlertOnPageLoad() {
String pageWithOnLoad = appServer.create(new Page()
.withOnLoad("javascript:alert(\"onload\")")
Expand Down Expand Up @@ -391,8 +387,8 @@ public void testShouldHandleAlertOnPageLoadUsingGet() {
}

@Test
@Ignore(CHROME)
@Ignore(CHROMIUMEDGE)
@Ignore(value = CHROME, reason = "Hangs")
@Ignore(value = CHROMIUMEDGE, reason = "Hangs")
@Ignore(FIREFOX)
@Ignore(value = IE, reason = "Fails in versions 6 and 7")
@Ignore(SAFARI)
Expand Down Expand Up @@ -498,8 +494,8 @@ public void testShouldHandleAlertOnWindowClose() {
}

@Test
@Ignore(CHROME)
@Ignore(CHROMIUMEDGE)
@NotYetImplemented(CHROME)
@NotYetImplemented(CHROMIUMEDGE)
@Ignore(value = HTMLUNIT, reason = "https://github.com/SeleniumHQ/htmlunit-driver/issues/57")
@NotYetImplemented(value = MARIONETTE,
reason = "https://bugzilla.mozilla.org/show_bug.cgi?id=1279211")
Expand Down
4 changes: 2 additions & 2 deletions java/client/test/org/openqa/selenium/ClickScrollingTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,8 @@ public void testShouldNotScrollOverflowElementsWhichAreVisible() {
}

@Test
@Ignore(CHROME)
@Ignore(CHROMIUMEDGE)
@NotYetImplemented(CHROME)
@NotYetImplemented(CHROMIUMEDGE)
@NotYetImplemented(MARIONETTE)
@NotYetImplemented(EDGE)
public void testShouldNotScrollIfAlreadyScrolledAndElementIsInView() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
import static org.openqa.selenium.testing.drivers.Browser.ALL;
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.FIREFOX;
import static org.openqa.selenium.testing.drivers.Browser.IE;
import static org.openqa.selenium.testing.drivers.Browser.MARIONETTE;
import static org.openqa.selenium.testing.drivers.Browser.SAFARI;
Expand Down Expand Up @@ -197,8 +196,8 @@ public void testAddCookiesWithDifferentPathsThatAreRelatedToOurs() {

@SwitchToTopAfterTest
@Test
@Ignore(CHROME)
@Ignore(CHROMIUMEDGE)
@NotYetImplemented(CHROME)
@NotYetImplemented(CHROMIUMEDGE)
@Ignore(SAFARI)
@NotYetImplemented(MARIONETTE)
public void testGetCookiesInAFrame() {
Expand Down Expand Up @@ -473,12 +472,7 @@ public void testDeleteNotExistedCookie() {
}

@Test
@Ignore(CHROME)
@Ignore(CHROMIUMEDGE)
@Ignore(FIREFOX)
@Ignore(IE)
@Ignore(SAFARI)
@NotYetImplemented(MARIONETTE)
@Ignore(value = ALL, reason = "Non W3C conformant")
public void testShouldDeleteOneOfTheCookiesWithTheSameName() {
driver.get(domainHelper.getUrlForFirstValidHostname("/common/animals"));
Cookie cookie1 = new Cookie.Builder("fish", "cod")
Expand Down
4 changes: 2 additions & 2 deletions java/client/test/org/openqa/selenium/ElementFindingTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -443,8 +443,8 @@ public void testShouldBeAbleToFindElementByXPathWithNamespace() {
@Test
@Ignore(IE)
@NotYetImplemented(SAFARI)
@Ignore(CHROME)
@Ignore(CHROMIUMEDGE)
@NotYetImplemented(CHROME)
@NotYetImplemented(CHROMIUMEDGE)
@NotYetImplemented(EDGE)
public void testShouldBeAbleToFindElementByXPathInXmlDocument() {
driver.get(pages.simpleXmlDocument);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -485,8 +485,8 @@ public void testShouldThrowAnExceptionWhenArgumentsWithStaleElementPassed() {
}

@Test
@Ignore(CHROME)
@Ignore(CHROMIUMEDGE)
@NotYetImplemented(CHROME)
@NotYetImplemented(CHROMIUMEDGE)
@Ignore(IE)
public void testShouldBeAbleToReturnADateObject() {
driver.get(pages.simpleTestPage);
Expand All @@ -501,8 +501,8 @@ public void testShouldBeAbleToReturnADateObject() {
}

@Test(timeout = 10000)
@Ignore(CHROME)
@Ignore(CHROMIUMEDGE)
@NotYetImplemented(CHROME)
@NotYetImplemented(CHROMIUMEDGE)
@Ignore(IE)
@NotYetImplemented(SAFARI)
@NotYetImplemented(value = MARIONETTE, reason = "https://bugzilla.mozilla.org/show_bug.cgi?id=1502656")
Expand Down
6 changes: 2 additions & 4 deletions java/client/test/org/openqa/selenium/FrameSwitchingTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -453,8 +453,8 @@ public void testShouldBeAbleToSwitchToTheTopIfTheFrameIsDeletedFromUnderUsWithWe
}

@Test
@Ignore(CHROME)
@Ignore(CHROMIUMEDGE)
@NotYetImplemented(value = CHROME, reason = "Throws NoSuchElementException")
@NotYetImplemented(value = CHROMIUMEDGE, reason = "Throws NoSuchElementException")
@Ignore(IE)
@Ignore(value = MARIONETTE, issue = "https://github.com/mozilla/geckodriver/issues/614")
@NotYetImplemented(HTMLUNIT)
Expand Down Expand Up @@ -488,8 +488,6 @@ public void testJavaScriptShouldExecuteInTheContextOfTheCurrentFrame() {
}

@Test
@Ignore(value = CHROME, reason = "Unstable")
@Ignore(value = CHROMIUMEDGE, reason = "Unstable")
public void testShouldNotSwitchMagicallyToTheTopWindow() {
String baseUrl = appServer.whereIs("frame_switching_tests/");
driver.get(baseUrl + "bug4876.html");
Expand Down
16 changes: 8 additions & 8 deletions java/client/test/org/openqa/selenium/PageLoadingTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@ public void testNoneStrategyShouldNotWaitForPageToRefresh() {
}

@Test
@Ignore(CHROME)
@Ignore(CHROMIUMEDGE)
@NotYetImplemented(CHROME)
@NotYetImplemented(CHROMIUMEDGE)
@NeedsLocalEnvironment
@NoDriverBeforeTest
@NoDriverAfterTest
Expand All @@ -127,8 +127,8 @@ public void testEagerStrategyShouldNotWaitForResources() {
}

@Test
@Ignore(CHROME)
@Ignore(CHROMIUMEDGE)
@NotYetImplemented(CHROME)
@NotYetImplemented(CHROMIUMEDGE)
@NeedsLocalEnvironment
@NoDriverBeforeTest
@NoDriverAfterTest
Expand All @@ -154,8 +154,8 @@ public void testEagerStrategyShouldNotWaitForResourcesOnRefresh() {
}

@Test
@Ignore(CHROME)
@Ignore(CHROMIUMEDGE)
@NotYetImplemented(CHROME)
@NotYetImplemented(CHROMIUMEDGE)
@NoDriverBeforeTest
@NoDriverAfterTest
public void testEagerStrategyShouldWaitForDocumentToBeLoaded() {
Expand Down Expand Up @@ -449,8 +449,8 @@ public void testShouldTimeoutIfAPageTakesTooLongToRefresh() {
}

@Test
@Ignore(CHROME)
@Ignore(CHROMIUMEDGE)
@NotYetImplemented(CHROME)
@NotYetImplemented(CHROMIUMEDGE)
@NotYetImplemented(value = SAFARI)
@NotYetImplemented(HTMLUNIT)
@NeedsLocalEnvironment
Expand Down
4 changes: 2 additions & 2 deletions java/client/test/org/openqa/selenium/PositionAndSizeTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,8 @@ public void testShouldCorrectlyIdentifyThatAnElementHasWidthAndHeight() {
// http://ejohn.org/blog/sub-pixel-problems-in-css/
@Test
@Ignore(IE)
@Ignore(value = CHROME, reason = "WebKit bug 28804")
@Ignore(value = CHROMIUMEDGE, reason = "WebKit bug 28804")
@NotYetImplemented(value = CHROME, reason = "WebKit bug 28804")
@NotYetImplemented(value = CHROMIUMEDGE, reason = "WebKit bug 28804")
@NotYetImplemented(SAFARI)
@Ignore(MARIONETTE)
public void testShouldHandleNonIntegerPositionAndSize() {
Expand Down
4 changes: 0 additions & 4 deletions java/client/test/org/openqa/selenium/SvgDocumentTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@

import static org.assertj.core.api.Assertions.assertThat;
import static org.junit.Assume.assumeFalse;
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.HTMLUNIT;
import static org.openqa.selenium.testing.drivers.Browser.SAFARI;
import static org.openqa.selenium.testing.TestUtilities.getFirefoxVersion;
Expand All @@ -35,8 +33,6 @@
public class SvgDocumentTest extends JUnit4TestBase {

@Test
@Ignore(value = CHROME, reason = "chromedriver needs to update atoms for latest SVG support")
@Ignore(value = CHROMIUMEDGE, reason = "msedgedriver needs to update atoms for latest SVG support")
@Ignore(value = HTMLUNIT, reason = "test should enable JavaScript")
@NotYetImplemented(SAFARI)
public void testClickOnSvgElement() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
import static org.junit.Assume.assumeFalse;
import static org.openqa.selenium.WaitingConditions.elementLocationToBe;
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.EDGE;
import static org.openqa.selenium.testing.drivers.Browser.FIREFOX;
import static org.openqa.selenium.testing.drivers.Browser.HTMLUNIT;
Expand Down Expand Up @@ -132,8 +131,6 @@ public void testElementInDiv() {
}

@Test
@Ignore(CHROME)
@Ignore(CHROMIUMEDGE)
@Ignore(FIREFOX)
public void testDragTooFar() {
driver.get(pages.dragAndDropPage);
Expand Down

0 comments on commit 6a0658e

Please sign in to comment.