Skip to content

Commit 5c2a215

Browse files
committed
Ignoring some tests in Marionette
1 parent b5c968d commit 5c2a215

10 files changed

+42
-18
lines changed

Diff for: java/client/test/org/openqa/selenium/CorrectEventFiringTest.java

+5-2
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949

5050
public class CorrectEventFiringTest extends JUnit4TestBase {
5151

52-
@Ignore(value = {CHROME}, reason = "Webkit bug 22261")
52+
@Ignore(value = {CHROME, MARIONETTE}, reason = "Webkit bug 22261")
5353
@JavascriptEnabled
5454
@Test
5555
public void testShouldFireFocusEventWhenClicking() {
@@ -125,7 +125,7 @@ public void testShouldNotThrowIfEventHandlerThrows() {
125125
}
126126
}
127127

128-
@Ignore(value = {CHROME}, reason = "Webkit bug 22261")
128+
@Ignore(value = {CHROME, MARIONETTE}, reason = "Webkit bug 22261")
129129
@JavascriptEnabled
130130
@Test
131131
public void testShouldFireEventsInTheRightOrder() {
@@ -277,6 +277,7 @@ public void testClearingAnElementShouldCauseTheOnChangeHandlerToFire() {
277277
assertThat(result.getText(), equalTo("Cleared"));
278278
}
279279

280+
@Ignore(MARIONETTE)
280281
@JavascriptEnabled
281282
@Test
282283
public void testSendingKeysToAnotherElementShouldCauseTheBlurEventToFire() {
@@ -290,6 +291,7 @@ public void testSendingKeysToAnotherElementShouldCauseTheBlurEventToFire() {
290291
assertEventFired("blur");
291292
}
292293

294+
@Ignore(MARIONETTE)
293295
@JavascriptEnabled
294296
@Test
295297
public void testSendingKeysToAnElementShouldCauseTheFocusEventToFire() {
@@ -301,6 +303,7 @@ public void testSendingKeysToAnElementShouldCauseTheFocusEventToFire() {
301303
assertEventFired("focus");
302304
}
303305

306+
@Ignore(MARIONETTE)
304307
@JavascriptEnabled
305308
@Test
306309
public void testSendingKeysToAFocusedElementShouldNotBlurThatElement() {

Diff for: java/client/test/org/openqa/selenium/ElementAttributeTest.java

+1
Original file line numberDiff line numberDiff line change
@@ -392,6 +392,7 @@ public void testMultipleAttributeShouldBeTrueWhenSelectHasMultipleWithValueAsSom
392392

393393
@JavascriptEnabled
394394
@Test
395+
@Ignore(MARIONETTE)
395396
public void testGetAttributeOfUserDefinedProperty() {
396397
driver.get(pages.userDefinedProperty);
397398
WebElement element = driver.findElement(By.id("d"));

Diff for: java/client/test/org/openqa/selenium/ElementFindingTest.java

+12-8
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ public void testFindingASingleElementByEmptyClassNameShouldThrow() {
303303
driver.findElement(By.className(""));
304304
}
305305

306-
@Ignore(value = {CHROME}, reason = "throws WebDriverException")
306+
@Ignore(value = {CHROME, MARIONETTE}, reason = "Chrome: throws WebDriverException")
307307
@Test(expected = NoSuchElementException.class)
308308
public void testFindingMultipleElementsByEmptyClassNameShouldThrow() {
309309
driver.get(pages.xhtmlTestPage);
@@ -317,7 +317,7 @@ public void testFindingASingleElementByCompoundClassNameShouldThrow() {
317317
driver.findElement(By.className("a b"));
318318
}
319319

320-
@Ignore(value = {CHROME}, reason = "throws WebDriverException")
320+
@Ignore(value = {CHROME, MARIONETTE}, reason = "Chrome: throws WebDriverException")
321321
@Test(expected = NoSuchElementException.class)
322322
public void testFindingMultipleElementsByCompoundClassNameShouldThrow() {
323323
driver.get(pages.xhtmlTestPage);
@@ -331,7 +331,7 @@ public void testFindingASingleElementByInvalidClassNameShouldThrow() {
331331
driver.findElement(By.className("!@#$%^&*"));
332332
}
333333

334-
@Ignore(value = {CHROME}, reason = "throws InvalidElementStateException")
334+
@Ignore(value = {CHROME, MARIONETTE}, reason = "Chrome: throws InvalidElementStateException")
335335
@Test(expected = NoSuchElementException.class)
336336
public void testFindingMultipleElementsByInvalidClassNameShouldThrow() {
337337
driver.get(pages.xhtmlTestPage);
@@ -522,6 +522,7 @@ public void testShouldBeAbleToFindAnElementByBooleanAttributeUsingCssSelector()
522522
}
523523

524524
@Test
525+
@Ignore(MARIONETTE)
525526
public void testShouldBeAbleToFindAnElementByBooleanAttributeUsingShortCssSelector() {
526527
driver.get(appServer.whereIs("locators_tests/boolean_attribute_selected.html"));
527528
WebElement element = driver.findElement(By.cssSelector("option[selected]"));
@@ -549,29 +550,32 @@ public void testShouldNotFindElementsByCssSelectorWhenThereIsNoSuchElement() {
549550
assertThat(elements.size(), is(0));
550551
}
551552

552-
@Ignore(value = {CHROME}, reason = "Throws WebDriverException")
553+
@Ignore(value = {CHROME, MARIONETTE},
554+
reason = "Chrome: throws WebDriverException, Marionette: throws InvalidElementStateException")
553555
@Test(expected = NoSuchElementException.class)
554556
public void testFindingASingleElementByEmptyCssSelectorShouldThrow() {
555557
driver.get(pages.xhtmlTestPage);
556558
driver.findElement(By.cssSelector(""));
557559
}
558560

559-
@Ignore(value = {CHROME}, reason = "throws WebDriverException")
561+
@Ignore(value = {CHROME, MARIONETTE},
562+
reason = "Chrome: throws WebDriverException, Marionette: throws InvalidElementStateException")
560563
@Test(expected = NoSuchElementException.class)
561564
public void testFindingMultipleElementsByEmptyCssSelectorShouldThrow() {
562565
driver.get(pages.xhtmlTestPage);
563566
driver.findElements(By.cssSelector(""));
564567
}
565568

566-
@Ignore(value = {CHROME}, reason = "throws InvalidElementStateException")
569+
@Ignore(value = {CHROME, MARIONETTE},
570+
reason = "Chrome: throws InvalidElementStateException, Marionette: throws InvalidElementStateException")
567571
@Test(expected = NoSuchElementException.class)
568572
public void testFindingASingleElementByInvalidCssSelectorShouldThrow() {
569573
driver.get(pages.xhtmlTestPage);
570574
driver.findElement(By.cssSelector("//a/b/c[@id='1']"));
571575
}
572576

573-
@Ignore(value = {CHROME},
574-
reason = "Chrome: throws InvalidElementStateException")
577+
@Ignore(value = {CHROME, MARIONETTE},
578+
reason = "Chrome: throws InvalidElementStateException, Marionette: throws InvalidElementStateException")
575579
@Test(expected = NoSuchElementException.class)
576580
public void testFindingMultipleElementsByInvalidCssSelectorShouldThrow() {
577581
assumeFalse("Ignoring test for lack of error in CSS in IE6", TestUtilities.isIe6(driver));

Diff for: java/client/test/org/openqa/selenium/ExecutingJavascriptTest.java

+1
Original file line numberDiff line numberDiff line change
@@ -505,6 +505,7 @@ public void testShouldThrowExceptionIfExecutingOnNoPage() {
505505

506506
@JavascriptEnabled
507507
@Test
508+
@Ignore(MARIONETTE)
508509
public void testShouldBeAbleToCreateAPersistentValue() {
509510
driver.get(pages.formPage);
510511

Diff for: java/client/test/org/openqa/selenium/FormHandlingTest.java

+3
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ public void testSendKeysKeepsCapitalization() {
119119
}
120120

121121
@Test
122+
@Ignore(MARIONETTE)
122123
public void testShouldSubmitAFormUsingTheNewlineLiteral() {
123124
driver.get(pages.formPage);
124125
WebElement nestedForm = driver.findElement(By.id("nested_form"));
@@ -232,6 +233,7 @@ public void testSendingKeyboardEventsShouldAppendTextInInputs() {
232233
}
233234

234235
@Test
236+
@Ignore(MARIONETTE)
235237
public void testSendingKeyboardEventsShouldAppendTextInInputsWithExistingValue() {
236238
driver.get(pages.formPage);
237239
WebElement element = driver.findElement(By.id("inputWithText"));
@@ -242,6 +244,7 @@ public void testSendingKeyboardEventsShouldAppendTextInInputsWithExistingValue()
242244
}
243245

244246
@Test
247+
@Ignore(MARIONETTE)
245248
public void testSendingKeyboardEventsShouldAppendTextInTextAreas() {
246249
driver.get(pages.formPage);
247250
WebElement element = driver.findElement(By.id("withText"));

Diff for: java/client/test/org/openqa/selenium/FrameSwitchingTest.java

+10-3
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ public void testShouldNotAutomaticallySwitchFocusToAnIFrameWhenAPageContainingTh
7474

7575
@Test(timeout = 10000)
7676
@NeedsLocalEnvironment(reason = "it hangs at IE9 and event Test.timeout doesn't help")
77+
@Ignore(MARIONETTE)
7778
public void testShouldOpenPageWithBrokenFrameset() {
7879
driver.get(appServer.whereIs("framesetPage3.html"));
7980

@@ -139,21 +140,23 @@ public void testShouldBeAbleToSwitchToAFrameByItsID() {
139140
}
140141

141142
@Test
143+
@Ignore(MARIONETTE)
142144
public void testShouldBeAbleToSwitchToAnIframeByItsID() {
143145
driver.get(pages.iframePage);
144146
driver.switchTo().frame("iframe1");
145147

146148
assertThat(driver.findElement(By.name("id-name1")).getAttribute("value"), equalTo("name"));
147149
}
148150

149-
@Test
150151
@Ignore({MARIONETTE})
152+
@Test
151153
public void testShouldBeAbleToSwitchToFrameWithNameContainingDot() {
152154
driver.get(pages.framesetPage);
153155
driver.switchTo().frame("sixth.iframe1");
154156
assertThat(driver.findElement(By.tagName("body")).getText(), containsString("Page number 3"));
155157
}
156158

159+
@Ignore({MARIONETTE})
157160
@Test
158161
public void testShouldBeAbleToSwitchToAFrameUsingAPreviouslyLocatedWebElement() {
159162
driver.get(pages.framesetPage);
@@ -163,6 +166,7 @@ public void testShouldBeAbleToSwitchToAFrameUsingAPreviouslyLocatedWebElement()
163166
assertThat(driver.findElement(By.id("pageNumber")).getText(), equalTo("1"));
164167
}
165168

169+
@Ignore(MARIONETTE)
166170
@Test
167171
public void testShouldBeAbleToSwitchToAnIFrameUsingAPreviouslyLocatedWebElement() {
168172
driver.get(pages.iframePage);
@@ -380,6 +384,7 @@ public void testShouldBeAbleToClickInAFrame() {
380384
assertThat(getTextOfGreetingElement(), equalTo("Success!"));
381385
}
382386

387+
@Ignore({MARIONETTE})
383388
@JavascriptEnabled
384389
@Test
385390
public void testShouldBeAbleToClickInAFrameThatRewritesTopWindowLocation() {
@@ -408,6 +413,7 @@ public void testShouldBeAbleToClickInASubFrame() {
408413
assertThat(driver.findElement(By.id("greeting")).getText(), equalTo("Success!"));
409414
}
410415

416+
@Ignore(MARIONETTE)
411417
@Test
412418
public void testShouldBeAbleToFindElementsInIframesByXPath() {
413419
driver.get(pages.iframePage);
@@ -438,7 +444,7 @@ public void testGetCurrentUrl() {
438444
assertThat(driver.getCurrentUrl(), equalTo(url));
439445
}
440446

441-
@Ignore(value = {PHANTOMJS})
447+
@Ignore(value = {PHANTOMJS, MARIONETTE})
442448
@JavascriptEnabled
443449
@Test
444450
public void testShouldBeAbleToSwitchToTheTopIfTheFrameIsDeletedFromUnderUs() {
@@ -491,9 +497,9 @@ public void testShouldReturnWindowTitleInAFrameset() {
491497
assertEquals("Unique title", driver.getTitle());
492498
}
493499

500+
@Ignore(MARIONETTE)
494501
@JavascriptEnabled
495502
@Test
496-
@Ignore(MARIONETTE)
497503
public void testJavaScriptShouldExecuteInTheContextOfTheCurrentFrame() {
498504
JavascriptExecutor executor = (JavascriptExecutor) driver;
499505

@@ -503,6 +509,7 @@ public void testJavaScriptShouldExecuteInTheContextOfTheCurrentFrame() {
503509
assertTrue((Boolean) executor.executeScript("return window != window.top"));
504510
}
505511

512+
@Ignore(MARIONETTE)
506513
@Test
507514
public void testShouldNotSwitchMagicallyToTheTopWindow() {
508515
String baseUrl = appServer.whereIs("frame_switching_tests/");

Diff for: java/client/test/org/openqa/selenium/PageLoadingTest.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ public void testShouldBeAbleToLoadAPageWithFramesetsAndWaitUntilAllFramesAreLoad
250250
assertThat(pageNumber.getText().trim(), equalTo("2"));
251251
}
252252

253-
@Ignore(value = {SAFARI, HTMLUNIT}, issues = {3771},
253+
@Ignore(value = {SAFARI, HTMLUNIT, MARIONETTE}, issues = {3771},
254254
reason = "HtmlUnit: can't execute JavaScript before a page is loaded")
255255
@JavascriptEnabled
256256
@NeedsFreshDriver
@@ -315,7 +315,7 @@ public void testShouldBeAbleToNavigateForwardsInTheBrowserHistory() {
315315
wait.until(titleIs("We Arrive Here"));
316316
}
317317

318-
@Ignore(value = {IE, SAFARI, PHANTOMJS},
318+
@Ignore(value = {IE, SAFARI, PHANTOMJS, MARIONETTE},
319319
reason = "Safari: does not support insecure SSL")
320320
@Test
321321
public void testShouldBeAbleToAccessPagesWithAnInsecureSslCertificate() {

Diff for: java/client/test/org/openqa/selenium/ReferrerTest.java

+4-1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
import static org.openqa.selenium.support.ui.ExpectedConditions.titleIs;
2626
import static org.openqa.selenium.testing.Ignore.Driver.HTMLUNIT;
2727
import static org.openqa.selenium.testing.Ignore.Driver.IE;
28+
import static org.openqa.selenium.testing.Ignore.Driver.MARIONETTE;
2829
import static org.openqa.selenium.testing.Ignore.Driver.PHANTOMJS;
2930
import static org.openqa.selenium.testing.Ignore.Driver.SAFARI;
3031
import static org.openqa.selenium.testing.InProject.locate;
@@ -233,6 +234,7 @@ public void crossDomainHistoryNavigationWithADirectProxy() {
233234
* Tests navigation across multiple domains when the browser is configured to use a proxy that
234235
* redirects the second domain to another host.
235236
*/
237+
@Ignore(MARIONETTE)
236238
@Test
237239
@NeedsLocalEnvironment
238240
public void crossDomainHistoryNavigationWithAProxiedHost() {
@@ -273,6 +275,7 @@ public void crossDomainHistoryNavigationWithAProxiedHost() {
273275
* intercepts requests to a specific host (www.example.com) - all other requests are permitted
274276
* to connect directly to the target server.
275277
*/
278+
@Ignore(MARIONETTE)
276279
@Test
277280
@NeedsLocalEnvironment
278281
public void crossDomainHistoryNavigationWhenProxyInterceptsHostRequests() {
@@ -311,7 +314,7 @@ public void crossDomainHistoryNavigationWhenProxyInterceptsHostRequests() {
311314
* intercepts requests for page 2.
312315
*/
313316
@Ignore(
314-
value = IE,
317+
value = {IE, MARIONETTE},
315318
reason = "IEDriver does not disable automatic proxy caching, causing this test to fail.",
316319
issues = 6629)
317320
@Test

Diff for: java/client/test/org/openqa/selenium/TypingTest.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -725,7 +725,7 @@ public void testShouldBeAbleToTypeOnANumberInputField() {
725725
assertThat(email.getAttribute("value"), equalTo("33"));
726726
}
727727

728-
@Ignore(value = {HTMLUNIT, SAFARI}, reason = "Untested browsers;" +
728+
@Ignore(value = {HTMLUNIT, SAFARI, MARIONETTE}, reason = "Untested browsers;" +
729729
" Safari: cannot type on contentEditable with synthetic events",
730730
issues = {3127})
731731
@Test
@@ -751,7 +751,7 @@ public void testShouldBeAbleToTypeIntoContentEditableElementWithExistingValue()
751751
assertThat(editable.getText(), equalTo(initialText + ", edited"));
752752
}
753753

754-
@Ignore(value = {HTMLUNIT, IE, SAFARI},
754+
@Ignore(value = {HTMLUNIT, IE, SAFARI, MARIONETTE},
755755
reason = "Untested browsers;" +
756756
" Safari: cannot type on contentEditable with synthetic events",
757757
issues = {3127})

Diff for: java/client/test/org/openqa/selenium/logging/PerformanceLogTypeTest.java

+2
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
import static org.junit.Assume.assumeTrue;
2424
import static org.openqa.selenium.testing.Ignore.Driver.HTMLUNIT;
2525
import static org.openqa.selenium.testing.Ignore.Driver.IE;
26+
import static org.openqa.selenium.testing.Ignore.Driver.MARIONETTE;
2627
import static org.openqa.selenium.testing.Ignore.Driver.PHANTOMJS;
2728
import static org.openqa.selenium.testing.Ignore.Driver.SAFARI;
2829
import static org.openqa.selenium.testing.TestUtilities.isChrome;
@@ -56,6 +57,7 @@ public void quitDriver() {
5657
}
5758
}
5859

60+
@Ignore(MARIONETTE)
5961
@Test
6062
public void performanceLogShouldBeDisabledByDefault() {
6163
assumeFalse(isOldChromedriver(driver));

0 commit comments

Comments
 (0)