Skip to content

Commit 3b117fa

Browse files
committed
[java] Updating test ignorance info for Safari TP 97
1 parent 40049b1 commit 3b117fa

15 files changed

+41
-10
lines changed

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,6 @@ public void testCanQuitWhenAnAlertIsPresent() {
522522
}
523523

524524
@Test
525-
@NotYetImplemented(SAFARI)
526525
public void shouldHandleAlertOnFormSubmit() {
527526
driver.get(appServer.create(new Page().withTitle("Testing Alerts").withBody(
528527
"<form id='theForm' action='javascript:alert(\"Tasty cheese\");'>",

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,6 @@ public void testShouldBeAbleToClickElementInAFrameThatIsOutOfView() {
173173

174174
@SwitchToTopAfterTest
175175
@Test
176-
@NotYetImplemented(SAFARI)
177176
public void testShouldBeAbleToClickElementThatIsOutOfViewInAFrame() {
178177
driver.get(appServer.whereIs("scrolling_tests/page_with_scrolling_frame.html"));
179178
driver.switchTo().frame("scrolling_frame");
@@ -205,7 +204,6 @@ public void testShouldBeAbleToClickElementThatIsOutOfViewInAFrameThatIsOutOfView
205204

206205
@SwitchToTopAfterTest
207206
@Test
208-
@NotYetImplemented(SAFARI)
209207
public void testShouldBeAbleToClickElementThatIsOutOfViewInANestedFrame() {
210208
driver.get(appServer.whereIs("scrolling_tests/page_with_nested_scrolling_frames.html"));
211209
driver.switchTo().frame("scrolling_frame");

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,7 @@ public void testShouldSetRelatedTargetForMouseOut() {
175175
}
176176

177177
@Test
178+
@NotYetImplemented(SAFARI)
178179
public void testClickingLabelShouldSetCheckbox() {
179180
driver.get(pages.formPage);
180181

@@ -208,6 +209,7 @@ public void testCanClickOnALinkThatContainsTextWrappedInASpan() {
208209

209210
@Test
210211
@NotYetImplemented(value = MARIONETTE, reason = "https://github.com/mozilla/geckodriver/issues/653")
212+
@NotYetImplemented(SAFARI)
211213
public void testCanClickOnALinkThatContainsEmbeddedBlockElements() {
212214
driver.findElement(By.id("embeddedBlock")).click();
213215
wait.until(titleIs("XHTML Test Page"));
@@ -259,6 +261,7 @@ public void testCanClickAnImageMapArea() {
259261
@Test
260262
@Ignore(FIREFOX)
261263
@NotYetImplemented(value = MARIONETTE, reason = "https://bugzilla.mozilla.org/show_bug.cgi?id=1422272")
264+
@NotYetImplemented(SAFARI)
262265
public void testShouldBeAbleToClickOnAnElementGreaterThanTwoViewports() {
263266
String url = appServer.whereIs("click_too_big.html");
264267
driver.get(url);

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

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ public void setUp() {
7171
}
7272

7373
@Test
74+
@NotYetImplemented(SAFARI)
7475
public void testShouldGetCookieByName() {
7576
String key = generateUniqueKey();
7677
String value = "set";
@@ -83,6 +84,7 @@ public void testShouldGetCookieByName() {
8384
}
8485

8586
@Test
87+
@NotYetImplemented(SAFARI)
8688
public void testShouldBeAbleToAddCookie() {
8789
String key = generateUniqueKey();
8890
String value = "foo";
@@ -98,6 +100,7 @@ public void testShouldBeAbleToAddCookie() {
98100
}
99101

100102
@Test
103+
@NotYetImplemented(SAFARI)
101104
public void testGetAllCookies() {
102105
String key1 = generateUniqueKey();
103106
String key2 = generateUniqueKey();
@@ -123,6 +126,7 @@ public void testGetAllCookies() {
123126
}
124127

125128
@Test
129+
@NotYetImplemented(SAFARI)
126130
public void testDeleteAllCookies() {
127131
addCookieOnServerSide(new Cookie("foo", "set"));
128132
assertSomeCookiesArePresent();
@@ -136,6 +140,7 @@ public void testDeleteAllCookies() {
136140
}
137141

138142
@Test
143+
@NotYetImplemented(SAFARI)
139144
public void testDeleteCookieWithName() {
140145
String key1 = generateUniqueKey();
141146
String key2 = generateUniqueKey();
@@ -157,6 +162,7 @@ public void testDeleteCookieWithName() {
157162
}
158163

159164
@Test
165+
@NotYetImplemented(SAFARI)
160166
public void testShouldNotDeleteCookiesWithASimilarName() {
161167
String cookieOneName = "fish";
162168
Cookie cookie1 = new Cookie.Builder(cookieOneName, "cod").build();
@@ -177,6 +183,7 @@ public void testShouldNotDeleteCookiesWithASimilarName() {
177183
}
178184

179185
@Test
186+
@NotYetImplemented(SAFARI)
180187
public void testAddCookiesWithDifferentPathsThatAreRelatedToOurs() {
181188
driver.get(domainHelper.getUrlForFirstValidHostname("/common/animals"));
182189
Cookie cookie1 = new Cookie.Builder("fish", "cod").path("/common/animals").build();
@@ -213,6 +220,7 @@ public void testGetCookiesInAFrame() {
213220
}
214221

215222
@Test
223+
@NotYetImplemented(SAFARI)
216224
public void testCannotGetCookiesWithPathDifferingOnlyInCase() {
217225
String cookieName = "fish";
218226
Cookie cookie = new Cookie.Builder(cookieName, "cod").path("/Common/animals").build();
@@ -223,6 +231,7 @@ public void testCannotGetCookiesWithPathDifferingOnlyInCase() {
223231
}
224232

225233
@Test
234+
@NotYetImplemented(SAFARI)
226235
public void testShouldNotGetCookieOnDifferentDomain() {
227236
assumeTrue(domainHelper.checkHasValidAlternateHostname());
228237

@@ -236,6 +245,7 @@ public void testShouldNotGetCookieOnDifferentDomain() {
236245
}
237246

238247
@Test
248+
@NotYetImplemented(SAFARI)
239249
public void testShouldBeAbleToAddToADomainWhichIsRelatedToTheCurrentDomain() {
240250
String cookieName = "name";
241251
assertCookieIsNotPresentWithName(cookieName);
@@ -273,6 +283,7 @@ public void testShouldBeAbleToIncludeLeadingPeriodInDomainName() {
273283
}
274284

275285
@Test
286+
@NotYetImplemented(SAFARI)
276287
public void testShouldBeAbleToSetDomainToTheCurrentDomain() throws Exception {
277288
URI url = new URI(driver.getCurrentUrl());
278289
String host = url.getHost() + ":" + url.getPort();
@@ -286,6 +297,7 @@ public void testShouldBeAbleToSetDomainToTheCurrentDomain() throws Exception {
286297
}
287298

288299
@Test
300+
@NotYetImplemented(SAFARI)
289301
public void testShouldWalkThePathToDeleteACookie() {
290302
Cookie cookie1 = new Cookie.Builder("fish", "cod").build();
291303
driver.manage().addCookie(cookie1);
@@ -314,6 +326,7 @@ public void testShouldWalkThePathToDeleteACookie() {
314326
}
315327

316328
@Test
329+
@NotYetImplemented(SAFARI)
317330
public void testShouldIgnoreThePortNumberOfTheHostWhenSettingTheCookie() throws Exception {
318331
URI uri = new URI(driver.getCurrentUrl());
319332
String host = String.format("%s:%d", uri.getHost(), uri.getPort());
@@ -328,6 +341,7 @@ public void testShouldIgnoreThePortNumberOfTheHostWhenSettingTheCookie() throws
328341
}
329342

330343
@Test
344+
@NotYetImplemented(SAFARI)
331345
public void testCookieEqualityAfterSetAndGet() {
332346
driver.get(domainHelper.getUrlForFirstValidHostname("animals"));
333347

@@ -355,6 +369,7 @@ public void testCookieEqualityAfterSetAndGet() {
355369
}
356370

357371
@Test
372+
@NotYetImplemented(SAFARI)
358373
public void testRetainsCookieExpiry() {
359374
Cookie addedCookie =
360375
new Cookie.Builder("fish", "cod")
@@ -442,6 +457,7 @@ public void testRetainsHttpOnlyFlag() {
442457
}
443458

444459
@Test
460+
@NotYetImplemented(SAFARI)
445461
public void testSettingACookieThatExpiredInThePast() {
446462
long expires = System.currentTimeMillis() - 1000;
447463
Cookie cookie = new Cookie.Builder("expired", "yes").expiresOn(new Date(expires)).build();
@@ -452,6 +468,7 @@ public void testSettingACookieThatExpiredInThePast() {
452468
}
453469

454470
@Test
471+
@NotYetImplemented(SAFARI)
455472
public void testCanSetCookieWithoutOptionalFieldsSet() {
456473
String key = generateUniqueKey();
457474
String value = "foo";
@@ -464,6 +481,7 @@ public void testCanSetCookieWithoutOptionalFieldsSet() {
464481
}
465482

466483
@Test
484+
@NotYetImplemented(SAFARI)
467485
public void testDeleteNotExistedCookie() {
468486
String key = generateUniqueKey();
469487
assertCookieIsNotPresentWithName(key);
@@ -586,6 +604,7 @@ private void addCookieOnServerSide(Cookie cookie) {
586604
}
587605

588606
@Test
607+
@NotYetImplemented(SAFARI)
589608
public void deleteAllCookies() {
590609
assumeTrue(domainHelper.checkHasValidAlternateHostname());
591610

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ public void testShouldFireFocusEventInNonTopmostWindow() {
8484
}
8585

8686
@Test
87+
@NotYetImplemented(SAFARI)
8788
public void testShouldFireClickEventWhenClicking() {
8889
driver.get(pages.javascriptPage);
8990

@@ -93,6 +94,7 @@ public void testShouldFireClickEventWhenClicking() {
9394
}
9495

9596
@Test
97+
@NotYetImplemented(SAFARI)
9698
public void testShouldFireMouseDownEventWhenClicking() {
9799
driver.get(pages.javascriptPage);
98100

@@ -102,6 +104,7 @@ public void testShouldFireMouseDownEventWhenClicking() {
102104
}
103105

104106
@Test
107+
@NotYetImplemented(SAFARI)
105108
public void testShouldFireMouseUpEventWhenClicking() {
106109
driver.get(pages.javascriptPage);
107110

@@ -112,6 +115,7 @@ public void testShouldFireMouseUpEventWhenClicking() {
112115

113116
@Test
114117
@NotYetImplemented(EDGE)
118+
@NotYetImplemented(SAFARI)
115119
public void testShouldFireMouseOverEventWhenClicking() {
116120
driver.get(pages.javascriptPage);
117121

@@ -269,6 +273,7 @@ public void testShouldEmitClickEventWhenClickingOnATextInputElement() {
269273
}
270274

271275
@Test
276+
@NotYetImplemented(SAFARI)
272277
public void testShouldFireTwoClickEventsWhenClickingOnALabel() {
273278
driver.get(pages.javascriptPage);
274279

@@ -349,6 +354,7 @@ public void testSendingKeysToAnElementShouldCauseTheFocusEventToFire() {
349354
}
350355

351356
@Test
357+
@NotYetImplemented(SAFARI)
352358
public void testSendingKeysToAFocusedElementShouldNotBlurThatElement() {
353359
assumeFalse(browserNeedsFocusOnThisOs(driver));
354360

@@ -382,6 +388,7 @@ public void testSendingKeysToAFocusedElementShouldNotBlurThatElement() {
382388
@Test
383389
@NotYetImplemented(HTMLUNIT)
384390
@NotYetImplemented(IE)
391+
@NotYetImplemented(SAFARI)
385392
public void testClickingAnUnfocusableChildShouldNotBlurTheParent() {
386393
assumeFalse(isOldIe(driver));
387394
driver.get(pages.javascriptPage);

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,9 @@ public void testSendKeysKeepsCapitalization() {
120120
}
121121

122122
@Test
123-
@NotYetImplemented(value = MARIONETTE)
123+
@NotYetImplemented(MARIONETTE)
124124
@NotYetImplemented(CHROME)
125+
@NotYetImplemented(SAFARI)
125126
public void testShouldSubmitAFormUsingTheNewlineLiteral() {
126127
driver.get(pages.formPage);
127128
WebElement nestedForm = driver.findElement(By.id("nested_form"));

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ public void testShouldFireOnChangeEventWhenSettingAnElementsValue() {
9292
}
9393

9494
@Test
95+
@NotYetImplemented(SAFARI)
9596
public void testShouldBeAbleToSubmitFormsByCausingTheOnClickEventToFire() {
9697
driver.get(pages.javascriptPage);
9798
WebElement element = driver.findElement(By.id("jsSubmitButton"));
@@ -107,6 +108,7 @@ private void waitForTitleChange(String newTitle) {
107108
}
108109

109110
@Test
111+
@NotYetImplemented(SAFARI)
110112
public void testShouldBeAbleToClickOnSubmitButtons() {
111113
driver.get(pages.javascriptPage);
112114
WebElement element = driver.findElement(By.id("submittingButton"));
@@ -131,6 +133,7 @@ public void testIssue80ClickShouldGenerateClickEvent() {
131133
}
132134

133135
@Test
136+
@NotYetImplemented(SAFARI)
134137
public void testShouldBeAbleToSwitchToFocusedElement() {
135138
driver.get(pages.javascriptPage);
136139

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,13 +73,15 @@ public void testShouldGetCoordinatesOfATransparentElement() {
7373
}
7474

7575
@Test
76+
@NotYetImplemented(SAFARI)
7677
public void testShouldGetCoordinatesOfAHiddenElement() {
7778
driver.get(appServer.whereIs("coordinates_tests/page_with_hidden_element.html"));
7879
assertThat(getLocationInViewPort(By.id("box"))).isEqualTo(new Point(10, 10));
7980
assertThat(getLocationOnPage(By.id("box"))).isEqualTo(new Point(10, 10));
8081
}
8182

8283
@Test
84+
@NotYetImplemented(SAFARI)
8385
public void testShouldGetCoordinatesOfAnInvisibleElement() {
8486
driver.get(appServer.whereIs("coordinates_tests/page_with_invisible_element.html"));
8587
assertThat(getLocationInViewPort(By.id("box"))).isEqualTo(new Point(0, 0));

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ public void testShouldNotCrashWhenQueryingTheAttributeOfAStaleElement() {
5858

5959
@Test
6060
@NotYetImplemented(EDGE)
61+
@NotYetImplemented(SAFARI)
6162
public void testRemovingAnElementDynamicallyFromTheDomShouldCauseAStaleRefException() {
6263
driver.get(pages.javascriptPage);
6364

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
import static org.openqa.selenium.support.ui.ExpectedConditions.not;
2525
import static org.openqa.selenium.support.ui.ExpectedConditions.visibilityOf;
2626
import static org.openqa.selenium.testing.drivers.Browser.HTMLUNIT;
27+
import static org.openqa.selenium.testing.drivers.Browser.SAFARI;
2728

2829
import org.junit.Test;
2930
import org.openqa.selenium.testing.JUnit4TestBase;
@@ -65,6 +66,7 @@ public void testShouldCountElementsAsVisibleIfStylePropertyHasBeenSet() {
6566
}
6667

6768
@Test
69+
@NotYetImplemented(SAFARI)
6870
public void testShouldModifyTheVisibilityOfAnElementDynamically() {
6971
driver.get(pages.javascriptPage);
7072

@@ -107,6 +109,7 @@ public void testShouldNotBeAbleToTypeToAnElementThatIsNotDisplayed() {
107109
}
108110

109111
@Test
112+
@NotYetImplemented(SAFARI)
110113
public void testZeroSizedDivIsShownIfDescendantHasSize() {
111114
driver.get(pages.javascriptPage);
112115

0 commit comments

Comments
 (0)