Skip to content

Commit 28f63e5

Browse files
committed
Unignoring several tests fixed in the latest version of geckodriver (wires)
1 parent 84f264a commit 28f63e5

File tree

6 files changed

+12
-12
lines changed

6 files changed

+12
-12
lines changed

java/client/test/org/openqa/selenium/AlertsTest.java

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ public void setUp() throws Exception {
6464

6565
@JavascriptEnabled
6666
@Test
67+
@NoDriverAfterTest
6768
public void testShouldBeAbleToOverrideTheWindowAlertMethod() {
6869
((JavascriptExecutor) driver).executeScript(
6970
"window.alert = function(msg) { document.getElementById('text').innerHTML = msg; }");
@@ -154,11 +155,11 @@ public void testShouldAllowAUserToDismissAPrompt() {
154155
assertEquals("Testing Alerts", driver.getTitle());
155156
}
156157

157-
@Ignore(MARIONETTE)
158+
@Ignore(value = MARIONETTE, reason = "https://github.com/jgraham/wires/issues/17")
158159
@JavascriptEnabled
159160
@Test
160-
@NotYetImplemented(value = HTMLUNIT,
161-
reason = "HtmlUnit: click()/prompt need to run in different threads.")
161+
@NotYetImplemented(value = {HTMLUNIT},
162+
reason = "HtmlUnit: click()/prompt need to run in different threads")
162163
public void testShouldAllowAUserToSetTheValueOfAPrompt() {
163164
driver.findElement(By.id("prompt")).click();
164165

@@ -169,7 +170,8 @@ public void testShouldAllowAUserToSetTheValueOfAPrompt() {
169170
wait.until(textInElementLocated(By.id("text"), "cheese"));
170171
}
171172

172-
@Ignore({CHROME, MARIONETTE})
173+
@Ignore(value = {CHROME, MARIONETTE},
174+
reason = "Marionette: https://github.com/jgraham/wires/issues/17")
173175
@JavascriptEnabled
174176
@Test
175177
public void testSettingTheValueOfAnAlertThrows() {
@@ -491,8 +493,9 @@ public void testShouldHandleAlertOnWindowClose() {
491493
}
492494

493495
@JavascriptEnabled
494-
@Ignore(value = {CHROME, MARIONETTE})
496+
@Ignore(value = {CHROME})
495497
@Test
498+
@NotYetImplemented(value = MARIONETTE, reason = "https://github.com/jgraham/wires/issues/21")
496499
public void testIncludesAlertTextInUnhandledAlertException() {
497500
driver.findElement(By.id("alert")).click();
498501
wait.until(alertIsPresent());

java/client/test/org/openqa/selenium/ClickTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ public void testShouldSetRelatedTargetForMouseOver() {
175175

176176
@JavascriptEnabled
177177
@NoDriverAfterTest
178-
@Ignore(value = {SAFARI, MARIONETTE}, reason = "Safari: issue 3693")
178+
@Ignore(value = {SAFARI}, reason = "Safari: issue 3693")
179179
@Test
180180
public void testShouldOnlyFollowHrefOnce() {
181181
driver.get(pages.clicksPage);

java/client/test/org/openqa/selenium/FormHandlingTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ public void testEmptyTextBoxesShouldReturnAnEmptyStringNotNull() {
262262
}
263263

264264
@Test
265-
@Ignore(value = {PHANTOMJS, SAFARI, HTMLUNIT},
265+
@Ignore(value = {PHANTOMJS, SAFARI, HTMLUNIT, MARIONETTE},
266266
reason = "HtmlUnit: error; others: untested")
267267
public void handleFormWithJavascriptAction() {
268268
String url = appServer.whereIs("form_handling_js_submit.html");

java/client/test/org/openqa/selenium/FrameSwitchingTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ public void testGetCurrentUrlReturnsTopLevelBrowsingContextUrl() {
424424
assertThat(driver.getCurrentUrl(), equalTo(pages.framesetPage));
425425
}
426426

427-
@Ignore({CHROME, FIREFOX, HTMLUNIT, IE, PHANTOMJS, SAFARI})
427+
@Ignore({CHROME, FIREFOX, HTMLUNIT, IE, PHANTOMJS, SAFARI, MARIONETTE})
428428
@Test
429429
public void testGetCurrentUrlReturnsTopLevelBrowsingContextUrlForIframes() {
430430
driver.get(pages.iframePage);

java/client/test/org/openqa/selenium/PageLoadingTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -388,6 +388,7 @@ public void testShouldNotHangIfDocumentOpenCallIsNeverFollowedByDocumentCloseCal
388388
+ "PHANTOMJS: not tested",
389389
issues = {687})
390390
@NeedsLocalEnvironment
391+
@NoDriverAfterTest
391392
@Test
392393
public void testPageLoadTimeoutCanBeChanged() {
393394
try {

java/client/test/org/openqa/selenium/WindowSwitchingTest.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@
4949

5050
public class WindowSwitchingTest extends JUnit4TestBase {
5151

52-
@Ignore({MARIONETTE})
5352
@NoDriverAfterTest // So that next test never starts with "inside a frame" base state.
5453
@Test
5554
public void testShouldSwitchFocusToANewWindowWhenItIsOpenedAndNotStopFutureOperations() {
@@ -314,7 +313,6 @@ public void testFailingToSwitchToAWindowLeavesTheCurrentWindowAsIs() {
314313
@NeedsFreshDriver
315314
@NoDriverAfterTest
316315
@Test
317-
@Ignore(MARIONETTE)
318316
public void testCanCloseWindowWhenMultipleWindowsAreOpen() {
319317
driver.get(pages.xhtmlTestPage);
320318
Set<String> currentWindowHandles = driver.getWindowHandles();
@@ -337,7 +335,6 @@ public void testCanCloseWindowWhenMultipleWindowsAreOpen() {
337335
@NeedsFreshDriver
338336
@NoDriverAfterTest
339337
@Test
340-
@Ignore(MARIONETTE)
341338
public void testCanCloseWindowAndSwitchBackToMainWindow() {
342339
driver.get(pages.xhtmlTestPage);
343340
Set<String> currentWindowHandles = driver.getWindowHandles();
@@ -363,7 +360,6 @@ public void testCanCloseWindowAndSwitchBackToMainWindow() {
363360
@NeedsFreshDriver
364361
@NoDriverAfterTest
365362
@Test
366-
@Ignore(MARIONETTE)
367363
public void testClosingOnlyWindowShouldNotCauseTheBrowserToHang() {
368364
driver.get(pages.xhtmlTestPage);
369365
driver.close();

0 commit comments

Comments
 (0)