Skip to content

Commit acb94a2

Browse files
committed
Ignoring cookie related tests in marionette
1 parent e97647b commit acb94a2

File tree

1 file changed

+22
-7
lines changed

1 file changed

+22
-7
lines changed

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

Lines changed: 22 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
import static org.openqa.selenium.testing.Ignore.Driver.FIREFOX;
4646
import static org.openqa.selenium.testing.Ignore.Driver.HTMLUNIT;
4747
import static org.openqa.selenium.testing.Ignore.Driver.IE;
48+
import static org.openqa.selenium.testing.Ignore.Driver.MARIONETTE;
4849
import static org.openqa.selenium.testing.Ignore.Driver.PHANTOMJS;
4950
import static org.openqa.selenium.testing.Ignore.Driver.REMOTE;
5051
import static org.openqa.selenium.testing.Ignore.Driver.SAFARI;
@@ -95,6 +96,7 @@ public void testShouldGetCookieByName() {
9596

9697
@JavascriptEnabled
9798
@Test
99+
@Ignore(MARIONETTE)
98100
public void testShouldBeAbleToAddCookie() {
99101
String key = generateUniqueKey();
100102
String value = "foo";
@@ -110,6 +112,7 @@ public void testShouldBeAbleToAddCookie() {
110112
}
111113

112114
@Test
115+
@Ignore(MARIONETTE)
113116
public void testGetAllCookies() {
114117
String key1 = generateUniqueKey();
115118
String key2 = generateUniqueKey();
@@ -136,6 +139,7 @@ public void testGetAllCookies() {
136139

137140
@JavascriptEnabled
138141
@Test
142+
@Ignore(MARIONETTE)
139143
public void testDeleteAllCookies() {
140144
addCookieOnServerSide(new Cookie("foo", "set"));
141145
assertSomeCookiesArePresent();
@@ -171,6 +175,7 @@ public void testDeleteCookieWithName() {
171175
}
172176

173177
@Test
178+
@Ignore(MARIONETTE)
174179
public void testShouldNotDeleteCookiesWithASimilarName() {
175180
String cookieOneName = "fish";
176181
Cookie cookie1 = new Cookie.Builder(cookieOneName, "cod").build();
@@ -191,6 +196,7 @@ public void testShouldNotDeleteCookiesWithASimilarName() {
191196
}
192197

193198
@Test
199+
@Ignore(MARIONETTE)
194200
public void testAddCookiesWithDifferentPathsThatAreRelatedToOurs() {
195201
driver.get(domainHelper.getUrlForFirstValidHostname("/common/animals"));
196202
Cookie cookie1 = new Cookie.Builder("fish", "cod").path("/common/animals").build();
@@ -208,7 +214,7 @@ public void testAddCookiesWithDifferentPathsThatAreRelatedToOurs() {
208214
assertCookieIsNotPresentWithName(cookie1.getName());
209215
}
210216

211-
@Ignore(value = {CHROME, PHANTOMJS, SAFARI})
217+
@Ignore(value = {CHROME, PHANTOMJS, SAFARI, MARIONETTE})
212218
@NoDriverAfterTest // So that next test never starts with "inside a frame" base state.
213219
@Test
214220
public void testGetCookiesInAFrame() {
@@ -223,7 +229,7 @@ public void testGetCookiesInAFrame() {
223229
assertCookieIsPresentWithName(cookie1.getName());
224230
}
225231

226-
@Ignore({CHROME})
232+
@Ignore({CHROME, MARIONETTE})
227233
@Test
228234
public void testCannotGetCookiesWithPathDifferingOnlyInCase() {
229235
String cookieName = "fish";
@@ -235,6 +241,7 @@ public void testCannotGetCookiesWithPathDifferingOnlyInCase() {
235241
}
236242

237243
@Test
244+
@Ignore(MARIONETTE)
238245
public void testShouldNotGetCookieOnDifferentDomain() {
239246
assumeTrue(domainHelper.checkHasValidAlternateHostname());
240247

@@ -247,7 +254,7 @@ public void testShouldNotGetCookieOnDifferentDomain() {
247254
assertCookieIsNotPresentWithName(cookieName);
248255
}
249256

250-
@Ignore(value = {CHROME}, reason = "Untested browsers.")
257+
@Ignore(value = {CHROME, MARIONETTE})
251258
@Test
252259
public void testShouldBeAbleToAddToADomainWhichIsRelatedToTheCurrentDomain() {
253260
String cookieName = "name";
@@ -272,7 +279,7 @@ public void testsShouldNotGetCookiesRelatedToCurrentDomainWithoutLeadingPeriod()
272279
assertCookieIsNotPresentWithName(cookieName);
273280
}
274281

275-
@Ignore({REMOTE})
282+
@Ignore({REMOTE, MARIONETTE})
276283
@Test
277284
public void testShouldBeAbleToIncludeLeadingPeriodInDomainName() throws Exception {
278285
String cookieName = "name";
@@ -287,6 +294,7 @@ public void testShouldBeAbleToIncludeLeadingPeriodInDomainName() throws Exceptio
287294
}
288295

289296
@Test
297+
@Ignore(MARIONETTE)
290298
public void testShouldBeAbleToSetDomainToTheCurrentDomain() throws Exception {
291299
URI url = new URI(driver.getCurrentUrl());
292300
String host = url.getHost() + ":" + url.getPort();
@@ -300,6 +308,7 @@ public void testShouldBeAbleToSetDomainToTheCurrentDomain() throws Exception {
300308
}
301309

302310
@Test
311+
@Ignore(MARIONETTE)
303312
public void testShouldWalkThePathToDeleteACookie() {
304313
Cookie cookie1 = new Cookie.Builder("fish", "cod").build();
305314
driver.manage().addCookie(cookie1);
@@ -328,6 +337,7 @@ public void testShouldWalkThePathToDeleteACookie() {
328337
}
329338

330339
@Test
340+
@Ignore(MARIONETTE)
331341
public void testShouldIgnoreThePortNumberOfTheHostWhenSettingTheCookie() throws Exception {
332342
URI uri = new URI(driver.getCurrentUrl());
333343
String host = String.format("%s:%d", uri.getHost(), uri.getPort());
@@ -342,6 +352,7 @@ public void testShouldIgnoreThePortNumberOfTheHostWhenSettingTheCookie() throws
342352
}
343353

344354
@Test
355+
@Ignore(MARIONETTE)
345356
public void testCookieEqualityAfterSetAndGet() {
346357
driver.get(domainHelper.getUrlForFirstValidHostname("animals"));
347358

@@ -369,6 +380,7 @@ public void testCookieEqualityAfterSetAndGet() {
369380
}
370381

371382
@Test
383+
@Ignore(MARIONETTE)
372384
public void testRetainsCookieExpiry() {
373385
Cookie addedCookie =
374386
new Cookie.Builder("fish", "cod")
@@ -382,7 +394,7 @@ public void testRetainsCookieExpiry() {
382394
assertEquals(addedCookie.getExpiry(), retrieved.getExpiry());
383395
}
384396

385-
@Ignore(value = {IE, PHANTOMJS, SAFARI})
397+
@Ignore(value = {IE, PHANTOMJS, SAFARI, MARIONETTE})
386398
@Test
387399
public void canHandleSecureCookie() {
388400
driver.get(domainHelper.getSecureUrlForFirstValidHostname("animals"));
@@ -400,7 +412,7 @@ public void canHandleSecureCookie() {
400412
assertNotNull(retrieved);
401413
}
402414

403-
@Ignore(value = {IE, PHANTOMJS, SAFARI})
415+
@Ignore(value = {IE, PHANTOMJS, SAFARI, MARIONETTE})
404416
@Test
405417
public void testRetainsCookieSecure() {
406418
driver.get(domainHelper.getSecureUrlForFirstValidHostname("animals"));
@@ -453,6 +465,7 @@ public void testRetainsHttpOnlyFlag() {
453465
}
454466

455467
@Test
468+
@Ignore(MARIONETTE)
456469
public void testSettingACookieThatExpiredInThePast() {
457470
long expires = System.currentTimeMillis() - 1000;
458471
Cookie cookie = new Cookie.Builder("expired", "yes").expiresOn(new Date(expires)).build();
@@ -464,6 +477,7 @@ public void testSettingACookieThatExpiredInThePast() {
464477
}
465478

466479
@Test
480+
@Ignore(MARIONETTE)
467481
public void testCanSetCookieWithoutOptionalFieldsSet() {
468482
String key = generateUniqueKey();
469483
String value = "foo";
@@ -483,7 +497,7 @@ public void testDeleteNotExistedCookie() {
483497
driver.manage().deleteCookieNamed(key);
484498
}
485499

486-
@Ignore(value = {CHROME, FIREFOX, IE, PHANTOMJS, SAFARI})
500+
@Ignore(value = {CHROME, FIREFOX, IE, PHANTOMJS, SAFARI, MARIONETTE})
487501
@Test
488502
public void testShouldDeleteOneOfTheCookiesWithTheSameName() {
489503
driver.get(domainHelper.getUrlForFirstValidHostname("/common/animals"));
@@ -606,6 +620,7 @@ private void addCookieOnServerSide(Cookie cookie) {
606620
}
607621

608622
@Test
623+
@Ignore(MARIONETTE)
609624
public void deleteAllCookies() throws Exception {
610625
assumeTrue(domainHelper.checkHasValidAlternateHostname());
611626

0 commit comments

Comments
 (0)