Skip to content

Commit

Permalink
Ignoring tests that don't pass in htmlunit with JS off
Browse files Browse the repository at this point in the history
  • Loading branch information
barancev committed Apr 6, 2017
1 parent d360ccf commit 1e28b3b
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions java/client/test/org/openqa/selenium/AlertsTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -474,6 +474,7 @@ public void testIncludesAlertTextInUnhandledAlertException() {
assertThat(t.getMessage(), containsString("cheese"));
}

@JavascriptEnabled
@NoDriverAfterTest
@Test
public void testCanQuitWhenAnAlertIsPresent() {
Expand Down
2 changes: 2 additions & 0 deletions java/client/test/org/openqa/selenium/ContentEditableTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ public void testShouldBeAbleToTypeIntoContentEditableElementWithExistingValue()
assertThat(editable.getText(), equalTo(initialText + ", edited"));
}

@JavascriptEnabled
@Test
@Ignore(IE)
@Ignore(value = SAFARI, reason = "cannot type on contentEditable with synthetic events, issue 3127")
Expand All @@ -126,6 +127,7 @@ public void testShouldBeAbleToTypeIntoTinyMCE() {
assertThat(editable.getText(), equalTo("cheese"));
}

@JavascriptEnabled
@Test
@Ignore(CHROME)
@Ignore(IE)
Expand Down
2 changes: 2 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.JavascriptEnabled;
import org.openqa.selenium.testing.NotYetImplemented;
import org.openqa.selenium.testing.TestUtilities;

Expand Down Expand Up @@ -266,6 +267,7 @@ public void testEmptyTextBoxesShouldReturnAnEmptyStringNotNull() {
assertEquals(emptyTextBox.getAttribute("value"), "");
}

@JavascriptEnabled
@Test
@Ignore(PHANTOMJS)
@Ignore(SAFARI)
Expand Down
8 changes: 8 additions & 0 deletions java/client/test/org/openqa/selenium/ReferrerTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
import org.openqa.selenium.support.ui.WebDriverWait;
import org.openqa.selenium.testing.Ignore;
import org.openqa.selenium.testing.JUnit4TestBase;
import org.openqa.selenium.testing.JavascriptEnabled;
import org.openqa.selenium.testing.NeedsLocalEnvironment;
import org.openqa.selenium.testing.drivers.WebDriverBuilder;
import org.seleniumhq.jetty9.server.Handler;
Expand Down Expand Up @@ -119,6 +120,7 @@ public static void readPages() throws IOException {
* Tests navigation when all of the files are hosted on the same domain and the browser
* does not have a proxy configured.
*/
@JavascriptEnabled
@Test
@NeedsLocalEnvironment
public void basicHistoryNavigationWithoutAProxy() {
Expand All @@ -141,6 +143,7 @@ public void basicHistoryNavigationWithoutAProxy() {
/**
* Tests navigation across multiple domains when the browser does not have a proxy configured.
*/
@JavascriptEnabled
@Test
@NeedsLocalEnvironment
public void crossDomainHistoryNavigationWithoutAProxy() {
Expand Down Expand Up @@ -171,6 +174,7 @@ public void crossDomainHistoryNavigationWithoutAProxy() {
* Tests navigation when all of the files are hosted on the same domain and the browser is
* configured to use a proxy that permits direct access to that domain.
*/
@JavascriptEnabled
@Test
@NeedsLocalEnvironment
public void basicHistoryNavigationWithADirectProxy() {
Expand Down Expand Up @@ -199,6 +203,7 @@ public void basicHistoryNavigationWithADirectProxy() {
* Tests navigation across multiple domains when the browser is configured to use a proxy that
* permits direct access to those domains.
*/
@JavascriptEnabled
@Test
@NeedsLocalEnvironment
public void crossDomainHistoryNavigationWithADirectProxy() {
Expand Down Expand Up @@ -233,6 +238,7 @@ public void crossDomainHistoryNavigationWithADirectProxy() {
* Tests navigation across multiple domains when the browser is configured to use a proxy that
* redirects the second domain to another host.
*/
@JavascriptEnabled
@Test
@Ignore(MARIONETTE)
@NeedsLocalEnvironment
Expand Down Expand Up @@ -273,6 +279,7 @@ public void crossDomainHistoryNavigationWithAProxiedHost() {
* intercepts requests to a specific host (www.example.com) - all other requests are permitted
* to connect directly to the target server.
*/
@JavascriptEnabled
@Test
@Ignore(MARIONETTE)
@NeedsLocalEnvironment
Expand Down Expand Up @@ -310,6 +317,7 @@ public void crossDomainHistoryNavigationWhenProxyInterceptsHostRequests() {
* Tests navigation on a single domain where the browser is configured to use a proxy that
* intercepts requests for page 2.
*/
@JavascriptEnabled
@Test
@Ignore(value = IE,
reason = "IEDriver does not disable automatic proxy caching, causing this test to fail, issue 6629")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
import org.openqa.selenium.support.ui.WebDriverWait;
import org.openqa.selenium.testing.Ignore;
import org.openqa.selenium.testing.JUnit4TestBase;
import org.openqa.selenium.testing.JavascriptEnabled;
import org.openqa.selenium.testing.NeedsLocalEnvironment;
import org.openqa.selenium.testing.NotYetImplemented;
import org.openqa.selenium.testing.TestUtilities;
Expand Down Expand Up @@ -63,12 +64,14 @@ public void canAcceptUnhandledAlert() {
runScenarioWithUnhandledAlert(UnexpectedAlertBehaviour.ACCEPT, "This is a default value");
}

@JavascriptEnabled
@Test
@Ignore(value = CHROME, reason = "Unstable Chrome behavior")
public void canDismissUnhandledAlert() {
runScenarioWithUnhandledAlert(UnexpectedAlertBehaviour.DISMISS, "null");
}

@JavascriptEnabled
@Test
@Ignore(value = CHROME, reason = "Chrome uses IGNORE mode by default")
public void dismissUnhandledAlertsByDefault() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,7 @@ public void testCombiningShiftAndClickResultsInANewWindow() {
assertEquals("Should not have navigated away.", originalTitle, driver.getTitle());
}

@JavascriptEnabled
@Test
@Ignore(MARIONETTE)
@Ignore(IE)
Expand Down

0 comments on commit 1e28b3b

Please sign in to comment.